- Migliorata la Notifica degli Eventi su Telegram
- Gli annunci (beni/servizi/ospitalità) ora possono essere visti anche tramite un link, anche per chi non è dentro alla App. - Aggiunto bottone "Aggiorna" per aggiornare il Saldo attuale. - I "Conti Collettivi" ora vengono chiamati Gruppi (o Conto di Gruppo).
This commit is contained in:
@@ -538,6 +538,14 @@
|
||||
></q-btn>
|
||||
<br />
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-btn
|
||||
label="Rimuovi i profile.favorite, bookmark, attend, seen"
|
||||
color="negative"
|
||||
@click="EseguiFunz('removeRecordsFav')"
|
||||
></q-btn>
|
||||
<br />
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts" src="./dbop.ts">
|
||||
</script>
|
||||
|
||||
@@ -51,22 +51,26 @@ export default defineComponent({
|
||||
|
||||
const showsendCoinTo = ref(false)
|
||||
const showrules = ref(false)
|
||||
const showMov = ref(false)
|
||||
|
||||
const animation = ref('fade')
|
||||
|
||||
const path = computed(() => $route.params.path ? $route.params.path.toString() : '')
|
||||
const idnotif = computed(() => $route.query.idnotif ? $route.query.idnotif.toString() : '')
|
||||
|
||||
const circuitpath_loaded = ref('')
|
||||
|
||||
const filtroutente = ref([] as any[])
|
||||
const showPic = ref(false)
|
||||
const loadSaldo = ref(false)
|
||||
|
||||
const circuit = ref({} as ICircuit | null)
|
||||
const account = computed(() => circuit.value ? userStore.getAccountByCircuitId(circuit.value._id) : null)
|
||||
const account = ref(<IAccount | null>null)
|
||||
const mystatus = ref(0 as number)
|
||||
const users_in_circuit = ref([] as IFriends[])
|
||||
|
||||
const qtarem = computed(() => account.value ? circuitStore.getRemainingCoinsToSend(account.value) : 0)
|
||||
const saldo = computed(() => account.value ? account.value.saldo : 0)
|
||||
const qtarem = ref(0)
|
||||
const saldo = ref(0)
|
||||
|
||||
const loading = ref(false)
|
||||
const requestToEnterCircuit = ref(false)
|
||||
@@ -86,215 +90,240 @@ export default defineComponent({
|
||||
|
||||
const cities = ref([] as ICity[])
|
||||
|
||||
const fidoConcesso = computed(() => account.value ? account.value.fidoConcesso : circuit.value!.fido_scoperto_default)
|
||||
const qtaMax = computed(() => account.value ? account.value.qta_maxConcessa : circuit.value!.qta_max_default)
|
||||
const fidoConcesso = ref(<any>0)
|
||||
const qtaMax = ref(<any>0)
|
||||
|
||||
watch(() => path.value, (to: any, from: any) => {
|
||||
loadCircuit()
|
||||
if (circuitpath_loaded.value !== path.value)
|
||||
loadCircuit()
|
||||
})
|
||||
|
||||
watch(() => tabcircuit.value, (to: any, from: any) => {
|
||||
tools.setCookie(tools.COOK_TAB_CIRCUIT + path.value, tabcircuit.value)
|
||||
})
|
||||
|
||||
watch(() => circuit.value, (to: any, from: any) => {
|
||||
if (to) {
|
||||
loadAccount()
|
||||
}
|
||||
})
|
||||
|
||||
function loadAccount() {
|
||||
// console.log('loadAccount')
|
||||
account.value = circuit.value ? userStore.getAccountByCircuitId(circuit.value._id) : null
|
||||
// console.log('saldo', account.value!.saldo)
|
||||
|
||||
fidoConcesso.value = account.value ? account.value.fidoConcesso : (circuit.value ? circuit.value.fido_scoperto_default : 0)
|
||||
qtaMax.value = account.value ? account.value.qta_maxConcessa : (circuit.value ? circuit.value.qta_max_default : 0)
|
||||
qtarem.value = account.value ? circuitStore.getRemainingCoinsToSend(account.value) : 0
|
||||
saldo.value = account.value ? account.value.saldo : 0
|
||||
}
|
||||
|
||||
|
||||
function profile() {
|
||||
return userStore.my.profile
|
||||
}
|
||||
|
||||
async function loadCircuit() {
|
||||
console.log(' *** INIZIO loadCircuit')
|
||||
|
||||
loading.value = true
|
||||
// Carica il profilo di quest'utente
|
||||
if (path.value) {
|
||||
circuit.value = null
|
||||
users_in_circuit.value = []
|
||||
await userStore.loadCircuit(path.value, idnotif.value).then(({ data, status }: { data: any, status: number }) => {
|
||||
console.log('data', data)
|
||||
if (data) {
|
||||
notifStore.setAsRead(idnotif.value)
|
||||
users_in_circuit.value = data.users_in_circuit
|
||||
circuit.value = data.circuit
|
||||
} else {
|
||||
circuit.value = null
|
||||
users_in_circuit.value = []
|
||||
}
|
||||
if (!loading.value) {
|
||||
loading.value = true
|
||||
// Carica il profilo di quest'utente
|
||||
if (path.value) {
|
||||
circuitpath_loaded.value = path.value
|
||||
circuit.value = null
|
||||
users_in_circuit.value = []
|
||||
await userStore.loadCircuit(path.value, idnotif.value).then(({ data, status }: { data: any, status: number }) => {
|
||||
// console.log('data', data)
|
||||
if (data) {
|
||||
notifStore.setAsRead(idnotif.value)
|
||||
users_in_circuit.value = data.users_in_circuit
|
||||
circuit.value = data.circuit
|
||||
} else {
|
||||
circuit.value = null
|
||||
users_in_circuit.value = []
|
||||
}
|
||||
|
||||
mystatus.value = status
|
||||
loadAccount()
|
||||
|
||||
searchList.value = []
|
||||
if (circuit.value) {
|
||||
let addquerysingle = [
|
||||
mystatus.value = status
|
||||
|
||||
];
|
||||
searchList.value = []
|
||||
if (circuit.value) {
|
||||
let addquerysingle = [
|
||||
|
||||
filterextra.value = [{
|
||||
$match: {
|
||||
idapp: process.env.APP_ID,
|
||||
'profile.mycircuits': {
|
||||
$elemMatch: { circuitname: { $eq: circuit.value.name } },
|
||||
];
|
||||
|
||||
filterextra.value = [{
|
||||
$match: {
|
||||
idapp: process.env.APP_ID,
|
||||
'profile.mycircuits': {
|
||||
$elemMatch: { circuitname: { $eq: circuit.value.name } },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
$lookup: {
|
||||
from: 'circuits',
|
||||
as: 'circuit',
|
||||
let: { circuitname: circuit.value.name, idapp: '$idapp' },
|
||||
pipeline: [
|
||||
{
|
||||
$match:
|
||||
{
|
||||
$lookup: {
|
||||
from: 'circuits',
|
||||
as: 'circuit',
|
||||
let: { circuitname: circuit.value.name, idapp: '$idapp' },
|
||||
pipeline: [
|
||||
{
|
||||
$expr:
|
||||
$match:
|
||||
{
|
||||
$and:
|
||||
[
|
||||
{ $eq: ['$name', '$$circuitname'] },
|
||||
{ $eq: ['$idapp', '$$idapp'] },
|
||||
$expr:
|
||||
{
|
||||
$and:
|
||||
[
|
||||
{ $eq: ['$name', '$$circuitname'] },
|
||||
{ $eq: ['$idapp', '$$idapp'] },
|
||||
|
||||
],
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
|
||||
},
|
||||
{ $unwind: '$circuit' },
|
||||
{
|
||||
$project: {
|
||||
username: 1,
|
||||
name: 1,
|
||||
surname: 1,
|
||||
date_reg: 1,
|
||||
profile: 1, idapp: 1, 'circuit.name': 1, 'circuit._id': 1
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
},
|
||||
{ $unwind: '$circuit' },
|
||||
{
|
||||
$project: {
|
||||
username: 1,
|
||||
name: 1,
|
||||
surname: 1,
|
||||
date_reg: 1,
|
||||
profile: 1, idapp: 1, 'circuit.name': 1, 'circuit._id': 1
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
{
|
||||
$lookup: {
|
||||
from: 'accounts',
|
||||
as: 'account',
|
||||
let: { username: '$username', idapp: '$idapp', circuitId: '$circuit._id' },
|
||||
pipeline: [
|
||||
{
|
||||
$match:
|
||||
{
|
||||
$lookup: {
|
||||
from: 'accounts',
|
||||
as: 'account',
|
||||
let: { username: '$username', idapp: '$idapp', circuitId: '$circuit._id' },
|
||||
pipeline: [
|
||||
{
|
||||
$expr:
|
||||
$match:
|
||||
{
|
||||
$and:
|
||||
[
|
||||
{ $eq: ['$$username', '$username'] },
|
||||
{ $eq: ['$$idapp', '$idapp'] },
|
||||
{ $eq: ['$$circuitId', '$circuitId'] },
|
||||
],
|
||||
$expr:
|
||||
{
|
||||
$and:
|
||||
[
|
||||
{ $eq: ['$$username', '$username'] },
|
||||
{ $eq: ['$$idapp', '$idapp'] },
|
||||
{ $eq: ['$$circuitId', '$circuitId'] },
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
{ $unwind: '$account' },
|
||||
]
|
||||
|
||||
filterextra_group.value = [{
|
||||
$match: {
|
||||
idapp: process.env.APP_ID,
|
||||
'mycircuits': {
|
||||
$elemMatch: { circuitname: { $eq: circuit.value.name } },
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
{ $unwind: '$account' },
|
||||
]
|
||||
|
||||
{
|
||||
$lookup: {
|
||||
from: 'circuits',
|
||||
as: 'circuit',
|
||||
let: { circuitname: circuit.value.name, idapp: '$idapp' },
|
||||
pipeline: [
|
||||
{
|
||||
$match:
|
||||
{
|
||||
$expr:
|
||||
{
|
||||
$and:
|
||||
[
|
||||
{ $eq: ['$name', '$$circuitname'] },
|
||||
{ $eq: ['$idapp', '$$idapp'] },
|
||||
|
||||
],
|
||||
},
|
||||
},
|
||||
filterextra_group.value = [{
|
||||
$match: {
|
||||
idapp: process.env.APP_ID,
|
||||
'mycircuits': {
|
||||
$elemMatch: { circuitname: { $eq: circuit.value.name } },
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
},
|
||||
{ $unwind: '$circuit' },
|
||||
{
|
||||
$project: {
|
||||
groupname: 1,
|
||||
title: 1,
|
||||
descr: 1,
|
||||
photos: 1,
|
||||
surname: 1,
|
||||
admins: 1,
|
||||
idapp: 1,
|
||||
'circuit.name': 1, 'circuit._id': 1
|
||||
}
|
||||
},
|
||||
{
|
||||
$lookup: {
|
||||
from: 'accounts',
|
||||
as: 'account',
|
||||
let: { groupname: '$groupname', idapp: '$idapp', circuitId: '$circuit._id' },
|
||||
pipeline: [
|
||||
{
|
||||
$match:
|
||||
{
|
||||
$lookup: {
|
||||
from: 'circuits',
|
||||
as: 'circuit',
|
||||
let: { circuitname: circuit.value.name, idapp: '$idapp' },
|
||||
pipeline: [
|
||||
{
|
||||
$expr:
|
||||
$match:
|
||||
{
|
||||
$and:
|
||||
[
|
||||
{ $eq: ['$groupname', '$$groupname'] },
|
||||
{ $eq: ['$idapp', '$$idapp'] },
|
||||
{ $eq: ['$circuitId', '$$circuitId'] },
|
||||
$expr:
|
||||
{
|
||||
$and:
|
||||
[
|
||||
{ $eq: ['$name', '$$circuitname'] },
|
||||
{ $eq: ['$idapp', '$$idapp'] },
|
||||
|
||||
],
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
|
||||
},
|
||||
{ $unwind: '$circuit' },
|
||||
{
|
||||
$project: {
|
||||
groupname: 1,
|
||||
title: 1,
|
||||
descr: 1,
|
||||
photos: 1,
|
||||
surname: 1,
|
||||
admins: 1,
|
||||
idapp: 1,
|
||||
'circuit.name': 1, 'circuit._id': 1
|
||||
}
|
||||
},
|
||||
{
|
||||
$lookup: {
|
||||
from: 'accounts',
|
||||
as: 'account',
|
||||
let: { groupname: '$groupname', idapp: '$idapp', circuitId: '$circuit._id' },
|
||||
pipeline: [
|
||||
{
|
||||
$match:
|
||||
{
|
||||
$expr:
|
||||
{
|
||||
$and:
|
||||
[
|
||||
{ $eq: ['$groupname', '$$groupname'] },
|
||||
{ $eq: ['$idapp', '$$idapp'] },
|
||||
{ $eq: ['$circuitId', '$$circuitId'] },
|
||||
|
||||
},
|
||||
{
|
||||
$unwind: '$account',
|
||||
},
|
||||
{
|
||||
$match: { 'account.groupname': { $exists: true, $ne: '' } }
|
||||
},
|
||||
]
|
||||
}
|
||||
arrfilterand.value = []
|
||||
filtercustom_rich.value = []
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
if (userStore.my.username && circuit.value)
|
||||
groupsListAdmin.value = userStore.GroupsListWhereIAmAdmin()
|
||||
},
|
||||
{
|
||||
$unwind: '$account',
|
||||
},
|
||||
{
|
||||
$match: { 'account.groupname': { $exists: true, $ne: '' } }
|
||||
},
|
||||
]
|
||||
}
|
||||
arrfilterand.value = []
|
||||
filtercustom_rich.value = []
|
||||
|
||||
// filtroutente.value = [{ userId: userStore.my._id }]
|
||||
})
|
||||
if (userStore.my.username && circuit.value)
|
||||
groupsListAdmin.value = userStore.GroupsListWhereIAmAdmin()
|
||||
|
||||
// filtroutente.value = [{ userId: userStore.my._id }]
|
||||
})
|
||||
|
||||
}
|
||||
loading.value = false
|
||||
console.log(' ___ FINE loadCircuit')
|
||||
}
|
||||
loading.value = false
|
||||
}
|
||||
|
||||
async function mounted() {
|
||||
function mounted() {
|
||||
tabcircuit.value = tools.getCookie(tools.COOK_TAB_CIRCUIT + path.value, 'info')
|
||||
|
||||
|
||||
await loadCircuit()
|
||||
loadCircuit()
|
||||
|
||||
}
|
||||
|
||||
@@ -329,6 +358,7 @@ export default defineComponent({
|
||||
username: 1,
|
||||
name: 1,
|
||||
surname: 1,
|
||||
lang: 1,
|
||||
'profile.img': 1,
|
||||
'profile.mycircuits': 1,
|
||||
'profile.qualifica': 1,
|
||||
@@ -430,7 +460,7 @@ export default defineComponent({
|
||||
function getRegulation(reg: string) {
|
||||
let strreg = reg + ''
|
||||
if (!reg) {
|
||||
const mystringa = t('circuit.regolamento', {nomecircuito: circuit.value!.name})
|
||||
const mystringa = t('circuit.regolamento', { nomecircuito: circuit.value!.name })
|
||||
return mystringa
|
||||
} else {
|
||||
return reg
|
||||
@@ -438,6 +468,13 @@ export default defineComponent({
|
||||
|
||||
}
|
||||
|
||||
async function aggiornaSaldo() {
|
||||
loadSaldo.value = true
|
||||
await circuitStore.aggiornaSaldo(circuit.value!._id);
|
||||
loadAccount()
|
||||
loadSaldo.value = false
|
||||
}
|
||||
|
||||
onMounted(mounted)
|
||||
|
||||
return {
|
||||
@@ -500,6 +537,10 @@ export default defineComponent({
|
||||
getRegulation,
|
||||
fidoConcesso,
|
||||
qtaMax,
|
||||
showMov,
|
||||
loadAccount,
|
||||
aggiornaSaldo,
|
||||
loadSaldo,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -129,6 +129,134 @@
|
||||
>
|
||||
</CSaldo>
|
||||
</div>
|
||||
|
||||
<q-dialog v-model="showMov" :maximized="$q.screen.lt.sm" permanent>
|
||||
<q-card class="dialog_card">
|
||||
<q-bar dense class="bg-primary text-white">
|
||||
{{ t('circuit.movements') }}:
|
||||
<q-space />
|
||||
<q-btn
|
||||
flat
|
||||
round
|
||||
color="white"
|
||||
icon="close"
|
||||
v-close-popup
|
||||
></q-btn>
|
||||
</q-bar>
|
||||
<q-card-section class="inset-shadow">
|
||||
<q-toggle
|
||||
v-model="showonlymine"
|
||||
:label="t('movement.onlymymov')"
|
||||
></q-toggle>
|
||||
<q-toggle v-model="tabellare" label="Tabella"></q-toggle>
|
||||
|
||||
<CGridTableRec
|
||||
v-if="tabellare && !loading"
|
||||
prop_mytable="movements"
|
||||
prop_mytitle=""
|
||||
:prop_mycolumns="colmyMovementTable"
|
||||
prop_colkey="_id"
|
||||
col_title="Lista Movimenti"
|
||||
:vertical="0"
|
||||
nodataLabel="Nessun Movimento effettuato"
|
||||
:prop_search="true"
|
||||
:enableExport="true"
|
||||
hint="nota da trovare (tabella)"
|
||||
:finder="false"
|
||||
:choose_visutype="false"
|
||||
:finder_noNull="false"
|
||||
:options="shared_consts.OPTIONS_SEARCH_USER_ALL_WORDS"
|
||||
:butt_modif_new="false"
|
||||
noresultLabel="movimenti non trovati con questa ricerca"
|
||||
:arrfilters="arrfilterand"
|
||||
:filtercustom="filtercustom_rich"
|
||||
filterextra=""
|
||||
:filterextra2="filterextra2"
|
||||
:prop_searchList="searchList"
|
||||
:prop_pagination="{
|
||||
sortBy: 'transactionDate',
|
||||
descending: true,
|
||||
page: 1,
|
||||
rowsNumber: 0,
|
||||
rowsPerPage: 20,
|
||||
}"
|
||||
:showType="costanti.SHOW_MOVEMENTS"
|
||||
:showCol="true"
|
||||
:showHeaderCol="true"
|
||||
:extraparams="extraparams_movs()"
|
||||
extrafield=""
|
||||
:visufind="costanti.FRIENDS"
|
||||
>
|
||||
</CGridTableRec>
|
||||
<CGridTableRec
|
||||
v-else-if="!loading"
|
||||
prop_mytable="movements"
|
||||
prop_mytitle=""
|
||||
:prop_mycolumns="colmyMovement"
|
||||
prop_colkey="_id"
|
||||
col_title="Lista Movimenti"
|
||||
:vertical="costanti.VISUTABLE_LISTA"
|
||||
nodataLabel="Nessun Movimento effettuato"
|
||||
:enableExport="true"
|
||||
:prop_search="true"
|
||||
hint="nota da trovare"
|
||||
:finder="false"
|
||||
:choose_visutype="false"
|
||||
:finder_noNull="false"
|
||||
:options="shared_consts.OPTIONS_SEARCH_USER_ALL_WORDS"
|
||||
:butt_modif_new="false"
|
||||
noresultLabel="movimenti non trovati con questa ricerca"
|
||||
:arrfilters="arrfilterand"
|
||||
:filtercustom="filtercustom_rich"
|
||||
:prop_searchList="searchList"
|
||||
:prop_pagination="{
|
||||
sortBy: 'transactionDate',
|
||||
descending: true,
|
||||
page: 1,
|
||||
rowsNumber: 20,
|
||||
rowsPerPage: 20,
|
||||
}"
|
||||
:showType="costanti.SHOW_MOVEMENTS"
|
||||
:showCol="false"
|
||||
:showHeaderCol="false"
|
||||
:extraparams="extraparams_movs()"
|
||||
extrafield=""
|
||||
:visufind="costanti.FRIENDS"
|
||||
>
|
||||
</CGridTableRec>
|
||||
</q-card-section>
|
||||
</q-card>
|
||||
</q-dialog>
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<q-spinner
|
||||
v-if="loadSaldo"
|
||||
color="primary"
|
||||
size="3em"
|
||||
:thickness="2"
|
||||
/>
|
||||
</div>
|
||||
<q-btn
|
||||
v-if="account && !loadSaldo"
|
||||
outline
|
||||
rounded
|
||||
dense
|
||||
color="green"
|
||||
icon="fas fa-redo"
|
||||
:label="t('movement.updatewallet')"
|
||||
@click="aggiornaSaldo()"
|
||||
>
|
||||
</q-btn>
|
||||
|
||||
<div class="q-ma-sm text-center">
|
||||
<q-btn
|
||||
v-if="userStore.IsMyCircuitByName(circuit.name)"
|
||||
:label="t('circuit.movements_made')"
|
||||
@click="showMov = !showMov"
|
||||
icon="fas fa-coins"
|
||||
rounded
|
||||
color="primary"
|
||||
></q-btn>
|
||||
</div>
|
||||
|
||||
<q-banner
|
||||
@@ -303,9 +431,9 @@
|
||||
></q-tab>
|
||||
<q-tab
|
||||
v-if="userStore.IsMyCircuitByName(circuit.name)"
|
||||
:label="t('circuit.movements')"
|
||||
name="mov"
|
||||
icon="fas fa-coins"
|
||||
:label="t('circuit.comunitario')"
|
||||
name="comunitario"
|
||||
icon="fas fa-campground"
|
||||
></q-tab>
|
||||
<q-tab
|
||||
v-if="!!circuit.note"
|
||||
@@ -321,6 +449,7 @@
|
||||
style="max-width: 500px"
|
||||
v-if="tools.iCanShowCircuitsMember(circuit)"
|
||||
>
|
||||
<div class="text-h6">{{ t('circuit.contideigruppi') }}:</div>
|
||||
<div class="text-h7 q-mb-sm">
|
||||
<div v-html="$t('circuit.collettivi_info')"></div>
|
||||
</div>
|
||||
@@ -514,7 +643,7 @@
|
||||
prop_colkey="_id"
|
||||
col_title=""
|
||||
:vertical="costanti.VISUTABLE_GROUP_CIRCUIT"
|
||||
nodataLabel="Nessun Conto Collettivo Rifiutato"
|
||||
nodataLabel="Nessun Conto di Gruppo Rifiutato"
|
||||
:prop_search="false"
|
||||
hint="Gruppo da trovare"
|
||||
:finder="false"
|
||||
@@ -522,7 +651,7 @@
|
||||
:finder_noNull="false"
|
||||
:options="shared_consts.OPTIONS_SEARCH_USER_ALL_WORDS"
|
||||
:butt_modif_new="false"
|
||||
noresultLabel="Conto Collettivo non trovato"
|
||||
noresultLabel="Conto di Gruppo non trovato"
|
||||
:arrfilters="arrfilterand"
|
||||
:filtercustom="filtercustom_rich"
|
||||
:filterextra2="filterextra2"
|
||||
@@ -537,88 +666,6 @@
|
||||
</q-tab-panel>
|
||||
</q-tab-panels>
|
||||
</q-tab-panel>
|
||||
<q-tab-panel name="mov">
|
||||
<q-toggle
|
||||
v-model="showonlymine"
|
||||
:label="t('movement.onlymymov')"
|
||||
></q-toggle>
|
||||
<q-toggle v-model="tabellare" label="Tabella"></q-toggle>
|
||||
|
||||
<CGridTableRec
|
||||
v-if="tabellare && !loading"
|
||||
prop_mytable="movements"
|
||||
prop_mytitle=""
|
||||
:prop_mycolumns="colmyMovementTable"
|
||||
prop_colkey="_id"
|
||||
col_title="Lista Movimenti"
|
||||
:vertical="0"
|
||||
nodataLabel="Nessun Movimento effettuato"
|
||||
:prop_search="true"
|
||||
:enableExport="true"
|
||||
hint="nota da trovare (tabella)"
|
||||
:finder="false"
|
||||
:choose_visutype="false"
|
||||
:finder_noNull="false"
|
||||
:options="shared_consts.OPTIONS_SEARCH_USER_ALL_WORDS"
|
||||
:butt_modif_new="false"
|
||||
noresultLabel="movimenti non trovati con questa ricerca"
|
||||
:arrfilters="arrfilterand"
|
||||
:filtercustom="filtercustom_rich"
|
||||
filterextra=""
|
||||
:filterextra2="filterextra2"
|
||||
:prop_searchList="searchList"
|
||||
:prop_pagination="{
|
||||
sortBy: 'transactionDate',
|
||||
descending: true,
|
||||
page: 1,
|
||||
rowsNumber: 20,
|
||||
rowsPerPage: 20,
|
||||
}"
|
||||
:showType="costanti.SHOW_MOVEMENTS"
|
||||
:showCol="true"
|
||||
:showHeaderCol="true"
|
||||
:extraparams="extraparams_movs()"
|
||||
extrafield=""
|
||||
:visufind="costanti.FRIENDS"
|
||||
>
|
||||
</CGridTableRec>
|
||||
<CGridTableRec
|
||||
v-else-if="!loading"
|
||||
prop_mytable="movements"
|
||||
prop_mytitle=""
|
||||
:prop_mycolumns="colmyMovement"
|
||||
prop_colkey="_id"
|
||||
col_title="Lista Movimenti"
|
||||
:vertical="costanti.VISUTABLE_LISTA"
|
||||
nodataLabel="Nessun Movimento effettuato"
|
||||
:enableExport="true"
|
||||
:prop_search="true"
|
||||
hint="nota da trovare"
|
||||
:finder="false"
|
||||
:choose_visutype="false"
|
||||
:finder_noNull="false"
|
||||
:options="shared_consts.OPTIONS_SEARCH_USER_ALL_WORDS"
|
||||
:butt_modif_new="false"
|
||||
noresultLabel="movimenti non trovati con questa ricerca"
|
||||
:arrfilters="arrfilterand"
|
||||
:filtercustom="filtercustom_rich"
|
||||
:prop_searchList="searchList"
|
||||
:prop_pagination="{
|
||||
sortBy: 'transactionDate',
|
||||
descending: true,
|
||||
page: 1,
|
||||
rowsNumber: 20,
|
||||
rowsPerPage: 20,
|
||||
}"
|
||||
:showType="costanti.SHOW_MOVEMENTS"
|
||||
:showCol="false"
|
||||
:showHeaderCol="false"
|
||||
:extraparams="extraparams_movs()"
|
||||
extrafield=""
|
||||
:visufind="costanti.FRIENDS"
|
||||
>
|
||||
</CGridTableRec>
|
||||
</q-tab-panel>
|
||||
<q-tab-panel name="info">
|
||||
<div>
|
||||
<q-card>
|
||||
@@ -876,48 +923,6 @@
|
||||
}}</span>
|
||||
</div>
|
||||
</q-card>
|
||||
<q-card v-if="circuit.name">
|
||||
<q-card-section>
|
||||
<div class="text-h6">{{ t('circuit.contocomunitario') }}:</div>
|
||||
<div class="text-h7 q-mb-sm">
|
||||
{{ $t('circuit.info_contocom') }}
|
||||
</div>
|
||||
</q-card-section>
|
||||
<q-separator />
|
||||
|
||||
<q-card-section>
|
||||
<div class="col-12 text-h7 text-center">
|
||||
<span v-if="checkifShow('descr')">
|
||||
<CSaldo
|
||||
v-if="tools.isUserOk() && circuit.account"
|
||||
:account="circuit.account"
|
||||
:symbol="circuit.symbol"
|
||||
:color="circuit.color"
|
||||
:saldo="circuit.account.saldo"
|
||||
:qtarem="
|
||||
circuit.account
|
||||
? circuitStore.getRemainingCoinsToSend(
|
||||
circuit.account
|
||||
)
|
||||
: 0
|
||||
"
|
||||
>
|
||||
</CSaldo>
|
||||
</span>
|
||||
<div class="">
|
||||
<q-btn
|
||||
icon="fas fa-coins"
|
||||
color="green"
|
||||
size="md"
|
||||
rounded
|
||||
:label="$t('circuit.sendcoins_tocom')"
|
||||
@click="showsendCoinTo = true"
|
||||
>
|
||||
</q-btn>
|
||||
</div>
|
||||
</div>
|
||||
</q-card-section>
|
||||
</q-card>
|
||||
</q-tab-panel>
|
||||
|
||||
<q-tab-panel name="page">
|
||||
@@ -1020,7 +1025,50 @@
|
||||
</q-tab-panel>
|
||||
</q-tab-panels>
|
||||
</q-tab-panel>
|
||||
<q-tab-panel name="mov"> </q-tab-panel>
|
||||
<q-tab-panel name="comunitario">
|
||||
<q-card v-if="circuit.name">
|
||||
<q-card-section>
|
||||
<div class="text-h6">{{ t('circuit.contocomunitario') }}:</div>
|
||||
<div class="text-h7 q-mb-sm">
|
||||
{{ $t('circuit.info_contocom') }}
|
||||
</div>
|
||||
</q-card-section>
|
||||
<q-separator />
|
||||
|
||||
<q-card-section>
|
||||
<div class="col-12 text-h7 text-center">
|
||||
<span v-if="checkifShow('descr')">
|
||||
<CSaldo
|
||||
v-if="tools.isUserOk() && circuit.account"
|
||||
:account="circuit.account"
|
||||
:symbol="circuit.symbol"
|
||||
:color="circuit.color"
|
||||
:saldo="circuit.account.saldo"
|
||||
:qtarem="
|
||||
circuit.account
|
||||
? circuitStore.getRemainingCoinsToSend(
|
||||
circuit.account
|
||||
)
|
||||
: 0
|
||||
"
|
||||
>
|
||||
</CSaldo>
|
||||
</span>
|
||||
<div class="">
|
||||
<q-btn
|
||||
icon="fas fa-coins"
|
||||
color="green"
|
||||
size="md"
|
||||
rounded
|
||||
:label="$t('circuit.sendcoins_tocom')"
|
||||
@click="showsendCoinTo = true"
|
||||
>
|
||||
</q-btn>
|
||||
</div>
|
||||
</div>
|
||||
</q-card-section>
|
||||
</q-card>
|
||||
</q-tab-panel>
|
||||
</q-tab-panels>
|
||||
<div>
|
||||
<CGridTableRec
|
||||
|
||||
@@ -18,21 +18,22 @@
|
||||
<CGridTableRec
|
||||
prop_mytable="users"
|
||||
prop_mytitle=""
|
||||
subtitle="Seleziona una Regione o provincia per vedere la lista degli iscritti:"
|
||||
:prop_mycolumns="colmyUserPeople"
|
||||
prop_colkey="_id"
|
||||
col_title="username"
|
||||
:vertical="costanti.VISUTABLE_LISTA"
|
||||
nodataLabel="Nessuna persona trovata con questo nome, cognome o username"
|
||||
nodataLabel=" "
|
||||
:prop_search="true"
|
||||
:prop_showfilter="true"
|
||||
hint="Scegli una Regione o Provincia oppure digita il nome o Username"
|
||||
hint="Scegli una Regione, Provincia oppure scrivi il nome o Username"
|
||||
:finder="true"
|
||||
:choose_visutype="true"
|
||||
:choose_visutype="false"
|
||||
:finder_noNull="false"
|
||||
:finder_noNullFilters="true"
|
||||
:options="shared_consts.OPTIONS_SEARCH_USER_ALL_WORDS"
|
||||
:butt_modif_new="false"
|
||||
noresultLabel="Username o nome non trovato"
|
||||
noresultLabel="Username, Nome o Cognome non trovato"
|
||||
:arrfilters="arrfilterand"
|
||||
:filtercustom="filtercustom"
|
||||
:prop_searchList="searchList"
|
||||
|
||||
@@ -85,7 +85,7 @@ export default defineComponent({
|
||||
// Carica il profilo di quest'utente
|
||||
if (groupname.value) {
|
||||
await userStore.loadGroup(groupname.value, idnotif.value).then(({ data, status }: { data: any, status: number }) => {
|
||||
console.log('data', data)
|
||||
// console.log('data', data)
|
||||
circuitslist.value = []
|
||||
if (data) {
|
||||
mygrp.value = data.mygroup
|
||||
|
||||
@@ -13,9 +13,6 @@
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
<div v-if="!tools.isLogged()">
|
||||
<CCheckIfIsLogged></CCheckIfIsLogged>
|
||||
</div>
|
||||
<div>
|
||||
<div
|
||||
v-if="mygrp.descr"
|
||||
@@ -541,7 +538,7 @@
|
||||
sortBy: 'transactionDate',
|
||||
descending: true,
|
||||
page: 1,
|
||||
rowsNumber: 20,
|
||||
rowsNumber: 0,
|
||||
rowsPerPage: 20,
|
||||
}"
|
||||
:showType="costanti.SHOW_MOVEMENTS"
|
||||
@@ -667,6 +664,9 @@
|
||||
</q-card>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="!tools.isLogged()">
|
||||
<CCheckIfIsLogged></CCheckIfIsLogged>
|
||||
</div>
|
||||
<q-dialog v-model="showPic" full-height full-width>
|
||||
<img :src="getImgGrp()" :alt="groupname" class="full-width" />
|
||||
</q-dialog>
|
||||
|
||||
@@ -3,16 +3,17 @@
|
||||
imgbackground="images/calendario_eventi.jpg"
|
||||
sizes="max-height: 120px" styleadd="bottom: -20px !important;">
|
||||
|
||||
<div v-if="!tools.isLogged()">
|
||||
<CCheckIfIsLogged></CCheckIfIsLogged>
|
||||
</div>
|
||||
|
||||
<CMyCardService
|
||||
:table="toolsext.TABMYBACHECAS"
|
||||
:nopopup="true"
|
||||
:idRec="idBacheca"
|
||||
>
|
||||
</CMyCardService>
|
||||
|
||||
<div v-if="!tools.isLogged()">
|
||||
<CCheckIfIsLogged></CCheckIfIsLogged>
|
||||
</div>
|
||||
|
||||
<!-- <CMyCardPopup
|
||||
v-if="!!idBacheca"
|
||||
:table="toolsext.TABMYBACHECAS"
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
sizes="max-height: 120px"
|
||||
styleadd="bottom: -20px !important;"
|
||||
>
|
||||
<div v-if="!tools.isLogged()">
|
||||
<CCheckIfIsLogged></CCheckIfIsLogged>
|
||||
</div>
|
||||
|
||||
<CMyCardService
|
||||
v-if="idGood"
|
||||
:table="toolsext.TABMYGOODS"
|
||||
@@ -17,6 +13,10 @@
|
||||
>
|
||||
</CMyCardService>
|
||||
|
||||
<div v-if="!tools.isLogged()">
|
||||
<CCheckIfIsLogged></CCheckIfIsLogged>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
</CMyPage>
|
||||
|
||||
@@ -3,10 +3,6 @@
|
||||
imgbackground="images/calendario_eventi.jpg"
|
||||
sizes="max-height: 120px" styleadd="bottom: -20px !important;">
|
||||
|
||||
<div v-if="!tools.isLogged()">
|
||||
<CCheckIfIsLogged></CCheckIfIsLogged>
|
||||
</div>
|
||||
|
||||
<CMyCardService
|
||||
v-if="!!idHosp"
|
||||
:table="toolsext.TABMYHOSPS"
|
||||
@@ -18,6 +14,10 @@
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<div v-if="!tools.isLogged()">
|
||||
<CCheckIfIsLogged></CCheckIfIsLogged>
|
||||
</div>
|
||||
|
||||
</CMyPage>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -1,18 +1,21 @@
|
||||
<template>
|
||||
<CMyPage
|
||||
:title="username" imgbackground="images/calendario_eventi.jpg"
|
||||
sizes="max-height: 120px" styleadd="bottom: -20px !important;">
|
||||
:title="username"
|
||||
imgbackground="images/calendario_eventi.jpg"
|
||||
sizes="max-height: 120px"
|
||||
styleadd="bottom: -20px !important;"
|
||||
>
|
||||
<CMyCardService
|
||||
v-if="idSkill"
|
||||
:table="toolsext.TABMYSKILLS"
|
||||
:nopopup="true"
|
||||
:idRec="idSkill"
|
||||
>
|
||||
</CMyCardService>
|
||||
|
||||
<div v-if="!tools.isLogged()">
|
||||
<CCheckIfIsLogged></CCheckIfIsLogged>
|
||||
</div>
|
||||
<div v-else>
|
||||
<CMyCardService v-if="idSkill"
|
||||
:table="toolsext.TABMYSKILLS"
|
||||
:nopopup="true"
|
||||
:idRec="idSkill">
|
||||
</CMyCardService>
|
||||
</div>
|
||||
|
||||
<!--
|
||||
<div class="q-ma-sm q-gutter-sm q-pa-xs">
|
||||
@@ -38,11 +41,8 @@
|
||||
</div>
|
||||
-->
|
||||
|
||||
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
</CMyPage>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user