- Il circuito viene creato in automatico, quando scegli una provincia.
This commit is contained in:
@@ -3102,7 +3102,7 @@ export const colTableCircuit = [
|
||||
fieldtype: costanti.FieldType.currency, visulabel: true,
|
||||
showWhen: costanti.showWhen.InPage + costanti.showWhen.InView,
|
||||
}),
|
||||
AddCol({ name: 'regulation', label_trans: 'circuit.regulation', fieldtype: costanti.FieldType.html, required: true }),
|
||||
AddCol({ name: 'regulation', label_trans: 'circuit.regulation', fieldtype: costanti.FieldType.html, required: false }),
|
||||
AddCol({ name: 'deperimento', label_trans: 'circuit.deperimento', fieldtype: costanti.FieldType.boolean, disable: true }),
|
||||
AddCol({ name: 'transactionsEnabled', label_trans: 'circuit.transactionsEnabled', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({
|
||||
|
||||
@@ -5592,7 +5592,7 @@ export const tools = {
|
||||
const circuitStore = useCircuitStore()
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
// console.log('OUT', res)
|
||||
// console.log('updateMyData: ', res)
|
||||
|
||||
if (res && res.userprofile) {
|
||||
// console.log('updateMyData', res.userprofile)
|
||||
@@ -5600,6 +5600,7 @@ export const tools = {
|
||||
|
||||
if (res.listcircuits) {
|
||||
circuitStore.listcircuits = res.listcircuits
|
||||
// console.log('circuitStore.listcircuits', circuitStore.listcircuits)
|
||||
}
|
||||
if (res.mygroups) {
|
||||
globalStore.mygroups = res.mygroups
|
||||
@@ -7115,7 +7116,7 @@ export const tools = {
|
||||
ris = 'profile.born_city_id'
|
||||
}
|
||||
if (tablejoin === 'provinces') {
|
||||
ris = 'profile.born_province'
|
||||
ris = 'profile.resid_province'
|
||||
}
|
||||
if (tablejoin === 'regions') {
|
||||
ris = ''
|
||||
|
||||
@@ -200,7 +200,7 @@ export const useNotifStore = defineStore('NotifStore', {
|
||||
this.last_notifs = []
|
||||
}
|
||||
this.updateArrNotif()
|
||||
tools.updateMyData(res.data)
|
||||
tools.updateMyData(res.data.ris)
|
||||
return true
|
||||
})
|
||||
.catch((error) => {
|
||||
|
||||
@@ -837,6 +837,19 @@ export const useUserStore = defineStore('UserStore', {
|
||||
async execDbOp(paramquery: any) {
|
||||
return Api.SendReq('/users/dbop', 'POST', paramquery)
|
||||
.then((res) => {
|
||||
|
||||
return res.data
|
||||
}).catch((error) => {
|
||||
return false
|
||||
})
|
||||
},
|
||||
|
||||
async execDbOpUser(paramquery: any) {
|
||||
return Api.SendReq('/users/dbopuser', 'POST', paramquery)
|
||||
.then((res) => {
|
||||
|
||||
tools.updateMyData(res.data.ris)
|
||||
|
||||
return res.data
|
||||
}).catch((error) => {
|
||||
return false
|
||||
@@ -850,7 +863,9 @@ export const useUserStore = defineStore('UserStore', {
|
||||
value: step,
|
||||
}
|
||||
this.my.profile.stepTutorial = step
|
||||
return await this.execDbOp({mydata})
|
||||
const ris = await this.execDbOpUser({mydata})
|
||||
|
||||
return ris
|
||||
},
|
||||
async savenoNameSurname(val: boolean) {
|
||||
const mydata = {
|
||||
@@ -860,7 +875,7 @@ export const useUserStore = defineStore('UserStore', {
|
||||
}
|
||||
if (this.my.profile.noNameSurname !== val) {
|
||||
this.my.profile.noNameSurname = val
|
||||
return await this.execDbOp({mydata})
|
||||
return await this.execDbOpUser({mydata})
|
||||
}
|
||||
},
|
||||
async savenoFoto(val: boolean) {
|
||||
@@ -871,7 +886,7 @@ export const useUserStore = defineStore('UserStore', {
|
||||
}
|
||||
if (this.my.profile.noFoto !== val) {
|
||||
this.my.profile.noFoto = val
|
||||
return await this.execDbOp({mydata})
|
||||
return await this.execDbOpUser({mydata})
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user