- aggiornati gli argomenti in base a GM
This commit is contained in:
@@ -11,13 +11,15 @@ import { useUserStore } from '@store/UserStore'
|
||||
|
||||
import { CTitlePage } from '@/components/CTitlePage'
|
||||
import { CGridTableRec } from '@/components/CGridTableRec'
|
||||
import { IColGridTable, IMyBacheca, IMySkill, ISearchList, ISkill } from 'model'
|
||||
import { IColGridTable, IMyBacheca, IMySkill, ISearchList, ISkill, TipoVisu } from 'model'
|
||||
import { shared_consts } from '@/common/shared_vuejs'
|
||||
import { useI18n } from '@/boot/i18n'
|
||||
import { toolsext } from '@store/Modules/toolsext'
|
||||
import { fieldsTable } from '@store/Modules/fieldsTable'
|
||||
import { useQuasar } from 'quasar'
|
||||
|
||||
import { func } from '@src/store/Modules/fieldsTable'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CGridOriz',
|
||||
emits: ['clickButtBar'],
|
||||
@@ -46,6 +48,11 @@ export default defineComponent({
|
||||
required: false,
|
||||
default: true,
|
||||
},
|
||||
prop_modif: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false,
|
||||
},
|
||||
finder: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
@@ -75,6 +82,7 @@ export default defineComponent({
|
||||
const searchList_Events = ref(<ISearchList[]>[])
|
||||
const searchList_Hosp = ref(<ISearchList[]>[])
|
||||
const searchList_Attivita = ref(<ISearchList[]>[])
|
||||
const searchList_Cataloghi = ref(<ISearchList[]>[])
|
||||
|
||||
const search = ref('')
|
||||
const myrecfiltertoggle = ref(tools.FILTER_ALL)
|
||||
@@ -84,6 +92,12 @@ export default defineComponent({
|
||||
const col_footer = ref('idCity')
|
||||
const col_tabfooter = ref('mycities')
|
||||
|
||||
|
||||
function gettablesList() {
|
||||
if (props.table === 'catalogs')
|
||||
return func.gettablesListByTable(props.table)
|
||||
}
|
||||
|
||||
const strextra = ref('')
|
||||
const myoptions = ref(<any>[])
|
||||
|
||||
@@ -181,8 +195,10 @@ export default defineComponent({
|
||||
return searchList_Hosp.value
|
||||
else if (props.table === shared_consts.TABLES_ATTIVITAS)
|
||||
return searchList_Attivita.value
|
||||
else if (props.table === shared_consts.TABLES_CATALOG)
|
||||
return searchList_Cataloghi.value
|
||||
|
||||
return searchList_Servizi.value
|
||||
return searchList_Cataloghi.value
|
||||
})
|
||||
|
||||
const showType = computed(() => {
|
||||
@@ -626,6 +642,24 @@ export default defineComponent({
|
||||
|
||||
]
|
||||
|
||||
searchList_Cataloghi.value = [
|
||||
{
|
||||
visible: true,
|
||||
label: 'Regione',
|
||||
table: 'regions',
|
||||
key: 'idReg',
|
||||
type: costanti.FieldType.select,
|
||||
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'regions', costanti.FILTER_TUTTI),
|
||||
keycookie: '_hosp',
|
||||
addall: true,
|
||||
arrvalue: [],
|
||||
filter: null,
|
||||
useinput: false,
|
||||
icon: 'fas fa-globe-europe'
|
||||
},
|
||||
|
||||
]
|
||||
|
||||
searchList_Hosp.value = [
|
||||
{
|
||||
visible: true,
|
||||
@@ -1135,6 +1169,7 @@ export default defineComponent({
|
||||
mySortFieldsAvailable,
|
||||
clickButtBar,
|
||||
myGridRef,
|
||||
gettablesList,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user