l'admin non riesce a cambiare il fido degli utenti...
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.0.11"
|
APP_VERSION="1.0.13"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="13"
|
APP_ID="13"
|
||||||
DIRECTORY_LOCAL="newfreeplanet"
|
DIRECTORY_LOCAL="newfreeplanet"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.0.11"
|
APP_VERSION="1.0.13"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="13"
|
APP_ID="13"
|
||||||
DIRECTORY_LOCAL=newfreeplanet
|
DIRECTORY_LOCAL=newfreeplanet
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.0.11"
|
APP_VERSION="1.0.13"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="13"
|
APP_ID="13"
|
||||||
DIRECTORY_LOCAL=newfreeplanet
|
DIRECTORY_LOCAL=newfreeplanet
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.0.11"
|
APP_VERSION="1.0.13"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="13"
|
APP_ID="13"
|
||||||
DIRECTORY_LOCAL="newfreeplanet"
|
DIRECTORY_LOCAL="newfreeplanet"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.0.11"
|
APP_VERSION="1.0.13"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="13"
|
APP_ID="13"
|
||||||
DIRECTORY_LOCAL=newfreeplanet
|
DIRECTORY_LOCAL=newfreeplanet
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.0.11"
|
APP_VERSION="1.0.13"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="14"
|
APP_ID="14"
|
||||||
DIRECTORY_LOCAL="newfreeplanet"
|
DIRECTORY_LOCAL="newfreeplanet"
|
||||||
|
|||||||
@@ -101,6 +101,17 @@ function getDynamicPages(site: ISites): IListRoutes[] {
|
|||||||
inmenu: true,
|
inmenu: true,
|
||||||
infooter: true,
|
infooter: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
active: site.confpages && site.confpages.enableCircuits,
|
||||||
|
order: 16,
|
||||||
|
path: '/circuits',
|
||||||
|
materialIcon: 'fas fa-coins',
|
||||||
|
name: 'mypages.circuits',
|
||||||
|
component: () => import('@/views/user/mycircuits/mycircuits.vue'),
|
||||||
|
meta: { requiresAuth: true },
|
||||||
|
inmenu: true,
|
||||||
|
infooter: true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
active: true,
|
active: true,
|
||||||
order: 20,
|
order: 20,
|
||||||
@@ -156,17 +167,6 @@ function getDynamicPages(site: ISites): IListRoutes[] {
|
|||||||
inmenu: false,
|
inmenu: false,
|
||||||
infooter: false,
|
infooter: false,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
active: site.confpages && site.confpages.enableCircuits,
|
|
||||||
order: 133,
|
|
||||||
path: '/circuits',
|
|
||||||
materialIcon: 'fas fa-coins',
|
|
||||||
name: 'mypages.circuits',
|
|
||||||
component: () => import('@/views/user/mycircuits/mycircuits.vue'),
|
|
||||||
meta: { requiresAuth: true },
|
|
||||||
inmenu: false,
|
|
||||||
infooter: false,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
active: true,
|
active: true,
|
||||||
order: 136,
|
order: 136,
|
||||||
|
|||||||
@@ -3052,12 +3052,12 @@ export const colTableCircuit = [
|
|||||||
AddCol({
|
AddCol({
|
||||||
name: 'name', label_trans: 'circuit.name',
|
name: 'name', label_trans: 'circuit.name',
|
||||||
required: true,
|
required: true,
|
||||||
maxlength: 30,
|
maxlength: 40,
|
||||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InView
|
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InView
|
||||||
}),
|
}),
|
||||||
AddCol({
|
AddCol({
|
||||||
name: 'path', label_trans: 'circuit.path', required: true,
|
name: 'path', label_trans: 'circuit.path', required: true,
|
||||||
maxlength: 30,
|
maxlength: 40,
|
||||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InView,
|
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InView,
|
||||||
allowchar: costanti.ALLOWCHAR_CODE,
|
allowchar: costanti.ALLOWCHAR_CODE,
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -232,7 +232,7 @@ export const useNotifStore = defineStore('NotifStore', {
|
|||||||
|
|
||||||
return Api.SendReq('/sendnotif', 'POST', data)
|
return Api.SendReq('/sendnotif', 'POST', data)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log('res', res)
|
// console.log('res', res)
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
if (res.data.code === serv_constants.RIS_CODE_OK && res.data.record) {
|
if (res.data.code === serv_constants.RIS_CODE_OK && res.data.record) {
|
||||||
if (res.data.record.dest === userStore.my.username) {
|
if (res.data.record.dest === userStore.my.username) {
|
||||||
|
|||||||
@@ -488,6 +488,7 @@ export const useUserStore = defineStore('UserStore', {
|
|||||||
|
|
||||||
getMyCircuitsInCommonByUser(user: IUserFields): any[] {
|
getMyCircuitsInCommonByUser(user: IUserFields): any[] {
|
||||||
let arrout = []
|
let arrout = []
|
||||||
|
let arrfinale = []
|
||||||
let vuoto = false
|
let vuoto = false
|
||||||
|
|
||||||
const circuitStore = useCircuitStore()
|
const circuitStore = useCircuitStore()
|
||||||
@@ -497,21 +498,30 @@ export const useUserStore = defineStore('UserStore', {
|
|||||||
else
|
else
|
||||||
arrout = tools.getCommon([...this.my.profile.mycircuits], [...user.profile.mycircuits], 'circuitname')
|
arrout = tools.getCommon([...this.my.profile.mycircuits], [...user.profile.mycircuits], 'circuitname')
|
||||||
|
|
||||||
|
// controlla che il circuito sia Abilitato!
|
||||||
|
for (const circuitname of arrout) {
|
||||||
|
const circuit = circuitStore.getCircuitByName(circuitname)
|
||||||
|
if (circuit && circuit.transactionsEnabled) {
|
||||||
|
arrfinale.push(circuitname)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// se non ho neanche 1 circuito in comune, metto il mio preferito
|
// se non ho neanche 1 circuito in comune, metto il mio preferito
|
||||||
if (arrout.length <= 0) {
|
if (arrfinale.length <= 0) {
|
||||||
const circuit = circuitStore.getCircuitByProvince(this.my.profile.resid_province)
|
const circuit = circuitStore.getCircuitByProvince(this.my.profile.resid_province)
|
||||||
if (circuit)
|
if (circuit)
|
||||||
arrout.push(circuit.name)
|
arrfinale.push(circuit.name)
|
||||||
else {
|
else {
|
||||||
if (this.my.profile.mycircuits.length > 0) {
|
if (this.my.profile.mycircuits.length > 0) {
|
||||||
arrout.push(this.my.profile.mycircuits[0].circuitname)
|
arrfinale.push(this.my.profile.mycircuits[0].circuitname)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('arrout', arrout)
|
console.log('arrout', arrfinale)
|
||||||
|
|
||||||
return arrout
|
return arrfinale
|
||||||
},
|
},
|
||||||
|
|
||||||
getMyCircuits(): any[] {
|
getMyCircuits(): any[] {
|
||||||
|
|||||||
@@ -1093,7 +1093,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
|||||||
return Api.SendReq('/settable', 'POST', mydata)
|
return Api.SendReq('/settable', 'POST', mydata)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.serverError = false
|
this.serverError = false
|
||||||
console.log('res', res)
|
// console.log('res', res)
|
||||||
if (res && res.data) {
|
if (res && res.data) {
|
||||||
tools.updateMyData(res.data.ris)
|
tools.updateMyData(res.data.ris)
|
||||||
if (res.data.rec) {
|
if (res.data.rec) {
|
||||||
|
|||||||
Reference in New Issue
Block a user