Se aggiungo un campo nuovo, non viene visualizzato il campo, sistemare il cookie come viene gestito

Aggiungere campo Offro/Cerco
Aggiungere HOME con pulsantoni grandi
Aggiunto Link per condividere la APP ai propri Amici
This commit is contained in:
paoloar77
2022-02-12 17:02:10 +01:00
parent b21a7d1885
commit 02048b58ad
37 changed files with 483 additions and 25 deletions

View File

@@ -2,6 +2,7 @@ import { IColGridTable } from '@model'
import { useUserStore } from '@store/UserStore'
import { lists } from './lists'
import { costanti } from './costanti'
import { useGlobalStore } from '@store/globalStore'
const DeleteRec = {
name: 'deleterec',
@@ -531,14 +532,14 @@ export const colmySkills = [
// AddCol({ name: 'subTitle', label_trans: 'event.title', fieldtype: costanti.FieldType.string,
// showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit , maxlength: 70, noshowlabel: true }),
AddCol({
name: 'adTypes',
name: 'adType',
label_trans: 'adTypes.name',
fieldtype: costanti.FieldType.select,
required: true,
jointable: 'adtypes',
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit,
icon: 'fas fa-bullhorn',
noshowlabel: true,
icon: 'grading',
}),
AddCol({ name: 'descr', label_trans: 'proj.shortdescr', fieldtype: costanti.FieldType.string,
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, noshowlabel: true, maxlength: 200 }),
@@ -1068,6 +1069,15 @@ export const fieldsTable = {
}
return 'label'
},
getValByTabAndId(table: string, field: string, idvalue: any) {
const globalStore = useGlobalStore()
const col = fieldsTable.getColByTable(table, field)
if (col) {
return globalStore.getValueByTable(col, idvalue)
}
return ''
},
getTitleByTable(mytable: string): string {
const myrec = this.getrecTableList(mytable)
if (myrec) return myrec.label