- CMyPopupEdit

- CMyEditor
 - MySkills
This commit is contained in:
Paolo Arena
2021-10-28 00:37:48 +02:00
parent 48128235f8
commit 57cda99f9c
66 changed files with 4831 additions and 247 deletions

View File

@@ -347,6 +347,19 @@ export const colmySkills = [
fieldtype: costanti.FieldType.multiselect,
jointable: 'statusSkills',
}),
AddCol({
name: 'idCity',
label_trans: 'skill.city',
fieldtype: costanti.FieldType.multiselect,
jointable: 'cities',
}),
AddCol({
name: 'photos',
label_trans: 'skill.photos',
fieldtype: costanti.FieldType.listimages,
jointable: '',
}),
AddCol({ name: 'subTitle', label_trans: 'event.title' }),
AddCol({ name: 'note', label_trans: 'proj.longdescr', fieldtype: costanti.FieldType.html }),
AddCol(DeleteRec),
AddCol(DuplicateRec),
@@ -760,6 +773,11 @@ export const fieldsTable = {
if (myrec) return myrec.label
return ''
},
getTitleImgByTable(mytable: string): string {
const myrec = this.getrecTableList(mytable)
if (myrec) return myrec.label
return ''
},
getIconByTable(mytable: string): string {
const myrec: any = this.getrecTableList(mytable)
if (myrec) return ((myrec.icon) ? myrec.icon : '')
@@ -1102,9 +1120,8 @@ export const fieldsTable = {
label_trans: 'reg.consiglio',
fieldtype: costanti.FieldType.boolean,
}),
AddCol({
name: 'profile.motivazioni', field: 'profile', subfield: 'motivazioni', label_trans: 'reg.motivazioni',
}),
AddCol({ name: 'profile.motivazioni', field: 'profile', subfield: 'motivazioni', label_trans: 'reg.motivazioni', }),
AddCol({ name: 'profile.biografia', field: 'profile', subfield: 'biografia', label_trans: 'reg.biografia', }),
AddCol({
name: 'profile.competenze_professionalita',
field: 'profile',
@@ -1216,6 +1233,10 @@ export const fieldsTable = {
AddCol({ name: 'notes', label_trans: 'reg.note' }),
],
tableForUsers: [
'myskills'
],
tablesList: [
{
value: 'operators',
@@ -1454,7 +1475,7 @@ export const fieldsTable = {
collabel: 'descr',
},
{
value: 'citys',
value: 'cities',
label: 'Città',
columns: colCitys,
colkey: '_id',

View File

@@ -2645,8 +2645,7 @@ export const tools = {
maxh2 = 500
return maxh2
}
,
},
myheight_imgtitle(myheight?: number, myheightmobile?: number) {
let maxheight = 0
@@ -3357,7 +3356,13 @@ export const tools = {
}
},
geturlupload() {
return process.env.MONGODB_HOST + '/upload'
return process.env.MONGODB_HOST + `/uploadnew/${this.getvers()}/`
},
escapeslash(mystr: string) {
return mystr.replace(/\//g, '-');
},
geturlrelativeprofile() {
return 'upload/profile'
},
getvers() {
return process.env.APP_VERSION

View File

@@ -1,6 +1,6 @@
import { defineStore } from 'pinia'
import {
ICfgServer,
ICfgServer, ICity,
IColGridTable,
IConfig,
IDataToSet,
@@ -120,6 +120,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
skills: [],
statusSkills: [],
sectors: [],
cities: [],
}),
getters: {
@@ -181,7 +182,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
},
getListByTable: (state: IGlobalState) => (table: string): any => {
let ris = null
let ris: any = []
const calendarStore = useCalendarStore()
const userStore = useUserStore()
@@ -229,6 +230,8 @@ export const useGlobalStore = defineStore('GlobalStore', {
return state.statusSkills
else if (table === 'sectors')
return state.sectors
else if (table === 'cities')
return state.cities
else return ris
return ris
@@ -1128,6 +1131,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
this.skills = (res.data.skills) ? [...res.data.skills] : []
this.statusSkills = (res.data.statusSkills) ? [...res.data.statusSkills] : []
this.sectors = (res.data.sectors) ? [...res.data.sectors] : []
this.cities = (res.data.cities) ? [...res.data.cities] : []
// console.log('res.data.cart', res.data.cart)