website non si vede
Stato e Contributo non te lo seleziona se clicchi a destra nel toggle Ordinare per ultimo inserito Corretto che Aggiungendo un Record, veniva salvato in anticipo cancellazione Record, Inserimento Record : errori vari
This commit is contained in:
@@ -45,6 +45,8 @@ export default defineComponent({
|
||||
const col_footer = ref('idCity')
|
||||
const col_tabfooter = ref('mycities')
|
||||
|
||||
const mypagination = ref({ sortBy: 'date_created', descending: true, page: 1, rowsNumber: 10, rowsPerPage: 10 })
|
||||
|
||||
const col = ref(<IColGridTable>{})
|
||||
|
||||
const idSector = computed(() => {
|
||||
@@ -288,6 +290,8 @@ export default defineComponent({
|
||||
adType: 1,
|
||||
photos: 1,
|
||||
note: 1,
|
||||
website: 1,
|
||||
//**ADDFIELD_MYSKILL
|
||||
descr: 1,
|
||||
date_created: 1,
|
||||
date_updated: 1,
|
||||
@@ -360,6 +364,7 @@ export default defineComponent({
|
||||
col,
|
||||
toolsext,
|
||||
getdefaultnewrec,
|
||||
mypagination,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
</q-input>
|
||||
</div>
|
||||
|
||||
|
||||
<CGridTableRec
|
||||
v-if="searchList.length > 0"
|
||||
:prop_mytable="table"
|
||||
@@ -34,6 +35,7 @@
|
||||
:col_footer="col_footer"
|
||||
:col_tabfooter="col_tabfooter"
|
||||
:vertical="costanti.VISUTABLE_LISTA"
|
||||
:prop_pagination="mypagination"
|
||||
:showType="costanti.SHOW_MYCARD"
|
||||
:nodataLabel="'Nessuna Competenza trovata'"
|
||||
:prop_search="true"
|
||||
|
||||
5
src/components/CFirstPageApp/CFirstPageApp.scss
Executable file
5
src/components/CFirstPageApp/CFirstPageApp.scss
Executable file
@@ -0,0 +1,5 @@
|
||||
.mybanner {
|
||||
font-weight: bold;
|
||||
font-size: 1.1rem;
|
||||
text-align: center;
|
||||
}
|
||||
44
src/components/CFirstPageApp/CFirstPageApp.ts
Executable file
44
src/components/CFirstPageApp/CFirstPageApp.ts
Executable file
@@ -0,0 +1,44 @@
|
||||
import { useQuasar } from 'quasar'
|
||||
import {
|
||||
defineComponent, onBeforeMount, onBeforeUnmount, onMounted, ref, toRefs, watch, inject, computed,
|
||||
} from 'vue'
|
||||
|
||||
import { tools } from '@store/Modules/tools'
|
||||
|
||||
import { shared_consts } from '@src/common/shared_vuejs'
|
||||
import { useI18n } from '@src/boot/i18n'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { static_data } from '@/db/static_data'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
|
||||
import MixinUsers from '../../mixins/mixin-users'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CFirstPageApp',
|
||||
components: {},
|
||||
props: {},
|
||||
|
||||
setup() {
|
||||
const $q = useQuasar()
|
||||
const { t } = useI18n()
|
||||
const $router = useRouter()
|
||||
|
||||
const userStore = useUserStore()
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
function mounted() {
|
||||
// mounted
|
||||
}
|
||||
|
||||
onMounted(mounted)
|
||||
|
||||
return {
|
||||
tools,
|
||||
static_data,
|
||||
globalStore,
|
||||
t,
|
||||
}
|
||||
},
|
||||
|
||||
})
|
||||
22
src/components/CFirstPageApp/CFirstPageApp.vue
Executable file
22
src/components/CFirstPageApp/CFirstPageApp.vue
Executable file
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<div v-if="tools.isTest()">
|
||||
<q-banner
|
||||
rounded
|
||||
dense
|
||||
class="bg-primary text-white"
|
||||
color="primary q-title"
|
||||
style="text-align: center;">
|
||||
<template v-slot:avatar>
|
||||
<q-icon name="fas fa-exclamation-triangle" color="yellow" size="xs" />
|
||||
</template>
|
||||
<span class="mybanner">Ambiente di Test</span>
|
||||
</q-banner>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" src="./CFirstPageApp.ts">
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import './CFirstPageApp.scss';
|
||||
</style>
|
||||
1
src/components/CFirstPageApp/index.ts
Executable file
1
src/components/CFirstPageApp/index.ts
Executable file
@@ -0,0 +1 @@
|
||||
export { default as CFirstPageApp } from './CFirstPageApp.vue'
|
||||
@@ -37,7 +37,8 @@
|
||||
<q-btn
|
||||
v-if="isInModif"
|
||||
color="primary" @click="apri"
|
||||
:label="$t('gallery.select_image')">
|
||||
icon="fas fa-file-upload"
|
||||
:label="$t('gallery.load_image')">
|
||||
</q-btn>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -878,7 +878,7 @@ export default defineComponent({
|
||||
newRecord.value = props.defaultnewrec()
|
||||
newRecord.value['userId'] = userStore.my._id
|
||||
newRecord.value['idapp'] = process.env.APP_ID
|
||||
globalStore.saveTable(mydata).then(ris => console.log('RISULT', ris))
|
||||
// globalStore.saveTable(mydata).then(ris => console.log('RISULT', ris))
|
||||
newRecordBool.value = true
|
||||
|
||||
}
|
||||
@@ -890,7 +890,7 @@ export default defineComponent({
|
||||
|
||||
console.log('newRecord.value', newRecord.value)
|
||||
|
||||
serverData.value.push(newRecord.value)
|
||||
// serverData.value.push(newRecord.value)
|
||||
pagination.value.rowsNumber++
|
||||
|
||||
loading.value = false
|
||||
@@ -1020,9 +1020,14 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function ActionAfterYes(action: number, item: any, data?: any) {
|
||||
|
||||
if (action === lists.MenuAction.DELETE_RECTABLE) {
|
||||
if ((serverData.value.length > 0) && item) {
|
||||
serverData.value.splice(serverData.value.indexOf(item), 1)
|
||||
console.log('item', item)
|
||||
let indelim = serverData.value.findIndex((rec: any) => rec._id === item._id)
|
||||
console.log('indexof', indelim)
|
||||
if (indelim >= 0)
|
||||
serverData.value.splice(indelim, 1)
|
||||
refresh_arr()
|
||||
}
|
||||
} else if (action === lists.MenuAction.DUPLICATE_RECTABLE) {
|
||||
@@ -1327,7 +1332,7 @@ export default defineComponent({
|
||||
if (indrec >= 0)
|
||||
serverData.value[indrec] = ris
|
||||
else
|
||||
serverData.value.push(ris)
|
||||
serverData.value = [ris, ...serverData.value]
|
||||
|
||||
newRecord.value = null
|
||||
// refresh()
|
||||
@@ -1395,6 +1400,10 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function showColCheck(col: IColGridTable, tipovis: number, visulabel:boolean, value: any = '', record: any = null){
|
||||
|
||||
if (col.isadvanced_field && !showfilteradv.value)
|
||||
return false
|
||||
|
||||
const check = tools.checkIfShowField(col, tipovis, visulabel, value)
|
||||
|
||||
let valuePresent = (colVisib.value.includes(col.field! + col.subfield) || colVisib.value.includes(col.field + '.' + col.subfield))
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
:class="$q.screen.lt.sm ? `` : `row` + ` text-blue `">
|
||||
<span v-for="(item, index) in searchList" :key="index">
|
||||
<div class="text-center q-my-xs" v-if="(item.type === costanti.FieldType.separator)">
|
||||
<q-btn rounded flat size="sm" dense :icon="!showfilteradv ? 'fas fa-arrow-down' : 'fas fa-arrow-up'" label="Filtri Avanzati" @click="showfilteradv = !showfilteradv"></q-btn>
|
||||
<q-btn size="sm" dense :icon="!showfilteradv ? 'fas fa-arrow-down' : 'fas fa-arrow-up'" label="Filtri Avanzati" @click="showfilteradv = !showfilteradv"></q-btn>
|
||||
</div>
|
||||
|
||||
<CMySelect
|
||||
@@ -461,6 +461,7 @@
|
||||
<div
|
||||
class="q-ma-sm q-pa-sm colmodif col-grow popupedit"
|
||||
@click="colclicksel = mycol">
|
||||
|
||||
<CMyPopupEdit
|
||||
:table="mytable"
|
||||
:canEdit="true"
|
||||
@@ -494,6 +495,10 @@
|
||||
<q-card-section class="inset-shadow">
|
||||
<div
|
||||
v-for="col in mycolumns" :key="col.name" class="newrec_fields">
|
||||
|
||||
<div class="text-center q-my-xs" v-if="(col.fieldtype === costanti.FieldType.separator)">
|
||||
<q-btn size="sm" dense :icon="!showfilteradv ? 'fas fa-arrow-down' : 'fas fa-arrow-up'" label="Campi Avanzati" @click="showfilteradv = !showfilteradv"></q-btn>
|
||||
</div>
|
||||
<div
|
||||
v-if="showColCheck(col, tools.TIPOVIS_NEW_RECORD, true, 0, newRecord) && col.foredit ">
|
||||
<div class="">
|
||||
@@ -536,8 +541,11 @@
|
||||
<q-card-section class="inset-shadow">
|
||||
<div
|
||||
v-for="col in mycolumns" :key="col.name">
|
||||
<div class="text-center q-my-xs" v-if="(col.fieldtype === costanti.FieldType.separator)">
|
||||
<q-btn size="sm" dense :icon="!showfilteradv ? 'fas fa-arrow-down' : 'fas fa-arrow-up'" label="Campi Avanzati" @click="showfilteradv = !showfilteradv"></q-btn>
|
||||
</div>
|
||||
<div
|
||||
v-if="showColCheck(col, tools.TIPOVIS_EDIT_RECORD, false) && col.foredit">
|
||||
v-else-if="showColCheck(col, tools.TIPOVIS_EDIT_RECORD, false) && col.foredit">
|
||||
<div>
|
||||
<CMyPopupEdit
|
||||
:table="mytable"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="row q-ma-sm shadow" style="border-radius: 4px;border: 1px solid rgba(0, 0, 0, 0.12);">
|
||||
<div class="row q-ma-sm shadow justify-center" style="border-radius: 4px;border: 1px solid rgba(0, 0, 0, 0.12);">
|
||||
<CBigBtn
|
||||
label="Bacheca" to="/bacheca" icon="fas fa-bullhorn" color="blue">
|
||||
label="Bacheca" to="/bacheca" icon="fas fa-bullhorn" color="indigo">
|
||||
</CBigBtn>
|
||||
<CBigBtn
|
||||
label="Lavoro" to="/work" icon="fas fa-briefcase" color="blue">
|
||||
@@ -24,8 +24,8 @@
|
||||
</CBigBtn>
|
||||
|
||||
</div>
|
||||
<div class="text-center">P.S: Attualmente è attivo solo il bottone <b>Lavoro</b>.<br>
|
||||
Gli altri verranno attivati nei prossimi giorni.</div>
|
||||
<div class="text-center">P.S: Attualmente sono attivi il bottone <b>Bacheca e Lavoro</b>.<br>
|
||||
Gli altri verranno attivati prossimamente .</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -20,7 +20,8 @@
|
||||
</q-field>
|
||||
</div>
|
||||
|
||||
<div :class="` col-grow popupedit `" :style="withBorder() ? `` : ``">
|
||||
<div :class="` col-grow clpopupVisuCard `" :style="withBorder() ? `` : ``">
|
||||
|
||||
<CMyPopupEdit
|
||||
v-bind="$attrs"
|
||||
:isrec="true"
|
||||
|
||||
@@ -4,3 +4,8 @@
|
||||
padding: 2px;
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
|
||||
.clpopupVisuCard{
|
||||
/*border-radius: $generic-border-radius */
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ export default defineComponent({
|
||||
default: '',
|
||||
},
|
||||
id: {
|
||||
type: String,
|
||||
type: [String, Number],
|
||||
required: false,
|
||||
default: '',
|
||||
},
|
||||
|
||||
@@ -32,6 +32,35 @@
|
||||
@update:model-value="Savedb"></q-toggle>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else-if="col.fieldtype === costanti.FieldType.link">
|
||||
<div v-if="isInModif">
|
||||
<q-input
|
||||
v-bind="$attrs"
|
||||
v-model="myvalue"
|
||||
:style="$q.screen.lt.sm ? 'min-width: 300px' : ''"
|
||||
:disable="disable"
|
||||
:readonly="disable"
|
||||
:type="`text`"
|
||||
@keyup.enter.stop
|
||||
@update:model-value="changevalRec"
|
||||
autofocus
|
||||
:label="col.label">
|
||||
</q-input>
|
||||
</div>
|
||||
<div v-else>
|
||||
<div class="q-ma-xs">
|
||||
<q-btn v-if="myvalue"
|
||||
type="a" rounded size="md"
|
||||
:class="{disabled: disable }"
|
||||
color="white" text-color="blue" icon="fas fa-globe"
|
||||
:href="tools.getlinkstd(myvalue)"
|
||||
:label="myvalue"
|
||||
target="_blank"
|
||||
>
|
||||
</q-btn>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else-if="col.fieldtype === costanti.FieldType.username_chip">
|
||||
<div class="q-ma-xs">
|
||||
<q-btn v-if="col.tipovisu === costanti.TipoVisu.LINK && myvalue"
|
||||
@@ -326,7 +355,7 @@
|
||||
<q-item-label>{{ opt[fieldsTable.getLabelByTable(col.jointable)] }}</q-item-label>
|
||||
</q-item-section>
|
||||
<q-item-section side>
|
||||
<q-toggle :model-value="selected" @update:value="toggleOption(opt)"/>
|
||||
<q-toggle :model-value="selected" @update:model-value="toggleOption(opt)"/>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
</template>
|
||||
|
||||
@@ -165,7 +165,7 @@
|
||||
<q-item-label v-if="'hint' in opt" class="hint">{{ opt['hint'] }}</q-item-label>
|
||||
</q-item-section>
|
||||
<q-item-section side>
|
||||
<q-toggle :model-value="selected" @update:value="toggleOption(opt)"/>
|
||||
<q-toggle :model-value="selected" @update:model-value="toggleOption(opt)"/>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
</template>
|
||||
|
||||
@@ -103,6 +103,8 @@ export default defineComponent({
|
||||
adType: 1,
|
||||
photos: 1,
|
||||
note: 1,
|
||||
//**ADDFIELD_MYSKILL
|
||||
website: 1,
|
||||
descr: 1,
|
||||
date_created: 1,
|
||||
date_updated: 1,
|
||||
@@ -136,6 +138,8 @@ export default defineComponent({
|
||||
adType: 1,
|
||||
photos: 1,
|
||||
note: 1,
|
||||
//**ADDFIELD_MYSKILL
|
||||
website: 1,
|
||||
descr: 1,
|
||||
date_created: 1,
|
||||
date_updated: 1,
|
||||
@@ -169,6 +173,8 @@ export default defineComponent({
|
||||
adType: 1,
|
||||
photos: 1,
|
||||
note: 1,
|
||||
//**ADDFIELD_MYSKILL
|
||||
website: 1,
|
||||
descr: 1,
|
||||
date_created: 1,
|
||||
date_updated: 1,
|
||||
|
||||
Reference in New Issue
Block a user