- L'utente entra direttamente sul circuito, con fido a zero.
++Abilitazione Fido utente (per admin).
This commit is contained in:
@@ -59,6 +59,16 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function clickOpenSendCoin() {
|
||||||
|
if (!userStore.my.profile.resid_province) {
|
||||||
|
// showProvinceToSelect.value = true
|
||||||
|
} else {
|
||||||
|
showsendCoinTo.value = true
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
tools,
|
tools,
|
||||||
userStore,
|
userStore,
|
||||||
@@ -68,6 +78,7 @@ export default defineComponent({
|
|||||||
getLinkWebSite,
|
getLinkWebSite,
|
||||||
myusername,
|
myusername,
|
||||||
showingtooltip,
|
showingtooltip,
|
||||||
|
clickOpenSendCoin,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ export default defineComponent({
|
|||||||
setup(props, { emit }) {
|
setup(props, { emit }) {
|
||||||
const $q = useQuasar()
|
const $q = useQuasar()
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
const show = ref(false)
|
const showpage = ref(false)
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
const circuitStore = useCircuitStore()
|
const circuitStore = useCircuitStore()
|
||||||
|
|
||||||
@@ -67,6 +67,8 @@ export default defineComponent({
|
|||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const bothcircuits = ref(<any>[])
|
const bothcircuits = ref(<any>[])
|
||||||
|
|
||||||
|
const showProvinceToSelect = ref(false)
|
||||||
|
|
||||||
const groupSel = ref(<IMyGroup | null | undefined>null)
|
const groupSel = ref(<IMyGroup | null | undefined>null)
|
||||||
|
|
||||||
const datasaved = ref(<any>null)
|
const datasaved = ref(<any>null)
|
||||||
@@ -122,11 +124,11 @@ export default defineComponent({
|
|||||||
|
|
||||||
watch(() => props.showprop, (newval, oldval) => {
|
watch(() => props.showprop, (newval, oldval) => {
|
||||||
console.log('props.showprop', props.showprop, newval)
|
console.log('props.showprop', props.showprop, newval)
|
||||||
show.value = newval
|
showpage.value = newval
|
||||||
})
|
})
|
||||||
|
|
||||||
async function aggiorna() {
|
async function aggiorna() {
|
||||||
loading.value = true
|
|
||||||
groupSel.value = null
|
groupSel.value = null
|
||||||
from_contocom.value = ''
|
from_contocom.value = ''
|
||||||
accountloaded.value = null
|
accountloaded.value = null
|
||||||
@@ -135,6 +137,7 @@ export default defineComponent({
|
|||||||
circuittoload.value = circuitStore.listcircuits.find((rec: ICircuit) => rec.name === circuitsel.value)
|
circuittoload.value = circuitStore.listcircuits.find((rec: ICircuit) => rec.name === circuitsel.value)
|
||||||
|
|
||||||
if (circuittoload.value) {
|
if (circuittoload.value) {
|
||||||
|
loading.value = true
|
||||||
await userStore.loadCircuit(circuittoload.value.path, '').then(({ data, status }: { data: any, status: number }) => {
|
await userStore.loadCircuit(circuittoload.value.path, '').then(({ data, status }: { data: any, status: number }) => {
|
||||||
datasaved.value = data
|
datasaved.value = data
|
||||||
})
|
})
|
||||||
@@ -166,7 +169,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
groupsListAdmin.value = userStore.GroupsListWhereIAmAdminInTheCircuit(circuitloaded.value.name)
|
groupsListAdmin.value = userStore.GroupsListWhereIAmAdminInTheCircuit(circuitloaded.value.name)
|
||||||
console.log('groupsListAdmin.value', groupsListAdmin.value)
|
// console.log('groupsListAdmin.value', groupsListAdmin.value)
|
||||||
|
|
||||||
arrGroupsList.value = []
|
arrGroupsList.value = []
|
||||||
|
|
||||||
@@ -264,7 +267,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
aggiorna()
|
aggiorna()
|
||||||
|
|
||||||
show.value = true
|
showpage.value = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if (props.to_group) {
|
if (props.to_group) {
|
||||||
@@ -282,7 +285,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
aggiorna()
|
aggiorna()
|
||||||
|
|
||||||
show.value = true
|
showpage.value = true
|
||||||
}
|
}
|
||||||
if (props.to_contocom) {
|
if (props.to_contocom) {
|
||||||
bothcircuits.value = userStore.getMyCircuits()
|
bothcircuits.value = userStore.getMyCircuits()
|
||||||
@@ -295,7 +298,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
aggiorna()
|
aggiorna()
|
||||||
|
|
||||||
show.value = true
|
showpage.value = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -334,7 +337,7 @@ export default defineComponent({
|
|||||||
tools.sendCoinsByCircuit($q, circuitloaded.value, myrecsendcoin)
|
tools.sendCoinsByCircuit($q, circuitloaded.value, myrecsendcoin)
|
||||||
.then((ris: any) => {
|
.then((ris: any) => {
|
||||||
if (ris) {
|
if (ris) {
|
||||||
show.value = false
|
showpage.value = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -342,13 +345,12 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
onMounted(mounted)
|
onMounted(mounted)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
t,
|
t,
|
||||||
tools,
|
tools,
|
||||||
show,
|
showpage,
|
||||||
bothcircuits,
|
bothcircuits,
|
||||||
from_username,
|
from_username,
|
||||||
circuitsel,
|
circuitsel,
|
||||||
@@ -375,6 +377,7 @@ export default defineComponent({
|
|||||||
from_contocom,
|
from_contocom,
|
||||||
arrTypesAccounts,
|
arrTypesAccounts,
|
||||||
loading,
|
loading,
|
||||||
|
showProvinceToSelect,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user