show table movements
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="0.5.79"
|
APP_VERSION="0.5.80"
|
||||||
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="0.5.79"
|
APP_VERSION="0.5.80"
|
||||||
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="0.5.79"
|
APP_VERSION="0.5.80"
|
||||||
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="0.5.79"
|
APP_VERSION="0.5.80"
|
||||||
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="0.5.79"
|
APP_VERSION="0.5.80"
|
||||||
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="0.5.79"
|
APP_VERSION="0.5.80"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="14"
|
APP_ID="14"
|
||||||
DIRECTORY_LOCAL="newfreeplanet"
|
DIRECTORY_LOCAL="newfreeplanet"
|
||||||
|
|||||||
@@ -910,7 +910,7 @@ export default defineComponent({
|
|||||||
params.codeId = mycodeid.value
|
params.codeId = mycodeid.value
|
||||||
|
|
||||||
// console.log('params', params)
|
// console.log('params', params)
|
||||||
// console.log('props.extraparams', props.extraparams)
|
console.log('props.extraparams', props.extraparams)
|
||||||
|
|
||||||
params = { ...params, ...props.extraparams }
|
params = { ...params, ...props.extraparams }
|
||||||
|
|
||||||
|
|||||||
@@ -1148,7 +1148,8 @@ const msg_it = {
|
|||||||
hidden_descr: 'il Gruppo non sarà visibile nella ricerca',
|
hidden_descr: 'il Gruppo non sarà visibile nella ricerca',
|
||||||
page: 'Pagina',
|
page: 'Pagina',
|
||||||
circuits: 'Circuiti',
|
circuits: 'Circuiti',
|
||||||
groupname: '',
|
groupname: 'Conto Collettivo',
|
||||||
|
contocom: 'Conto Comunitario',
|
||||||
},
|
},
|
||||||
finder: {
|
finder: {
|
||||||
search_skill: 'Cerca una specializzazione'
|
search_skill: 'Cerca una specializzazione'
|
||||||
|
|||||||
@@ -687,12 +687,78 @@ export const colmyMovement = [
|
|||||||
export const colmyMovementTable = [
|
export const colmyMovementTable = [
|
||||||
// AddCol({ name: '_id', label_trans: 'reg.id' }),
|
// AddCol({ name: '_id', label_trans: 'reg.id' }),
|
||||||
AddCol({ name: 'transactionDate', label_trans: 'movement.transactionDate', fieldtype: costanti.FieldType.date }),
|
AddCol({ name: 'transactionDate', label_trans: 'movement.transactionDate', fieldtype: costanti.FieldType.date }),
|
||||||
AddCol({ name: 'userfrom.username', field: 'userfrom', subfield: 'username', label_trans: 'movement.accountFromId', fieldtype: costanti.FieldType.string, required: true }),
|
AddCol({
|
||||||
AddCol({ name: 'groupfrom.groupname', field: 'groupfrom', subfield: 'groupname', label_trans: 'movement.accountFromCollId', fieldtype: costanti.FieldType.string, required: true }),
|
name: 'userfrom.username',
|
||||||
AddCol({ name: 'contocomfrom.path', field: 'contocomfrom', subfield: 'path', label_trans: 'movement.accountFromComId', fieldtype: costanti.FieldType.string, required: true }),
|
label_trans: 'reg.username',
|
||||||
AddCol({ name: 'userto.username', field: 'userto', subfield: 'username', label_trans: 'movement.accountToId', fieldtype: costanti.FieldType.string, required: true }),
|
field: 'userfrom',
|
||||||
AddCol({ name: 'groupto.groupname', field: 'groupto', subfield: 'groupname', label_trans: 'movement.accountToCollId', fieldtype: costanti.FieldType.string, required: true }),
|
subfield: 'username',
|
||||||
AddCol({ name: 'contocomto.path', field: 'contocomto', subfield: 'path', label_trans: 'movement.accountToComId', fieldtype: costanti.FieldType.string, required: true }),
|
tipovisu: costanti.TipoVisu.LINK,
|
||||||
|
fieldtype: costanti.FieldType.username_chip,
|
||||||
|
link: '/my/userfrom.username',
|
||||||
|
tipoconto: costanti.AccountType.USER,
|
||||||
|
required: true,
|
||||||
|
}),
|
||||||
|
AddCol({
|
||||||
|
name: 'groupfrom.groupname',
|
||||||
|
label_trans: 'movement.accountFromCollId',
|
||||||
|
field: 'groupfrom',
|
||||||
|
subfield: 'groupname',
|
||||||
|
foredit: false,
|
||||||
|
tipovisu: costanti.TipoVisu.LINK,
|
||||||
|
fieldtype: costanti.FieldType.username_chip,
|
||||||
|
link: '/grp/groupfrom.groupname',
|
||||||
|
tipoconto: costanti.AccountType.COLLECTIVE_ACCOUNT,
|
||||||
|
required: true,
|
||||||
|
}),
|
||||||
|
AddCol({
|
||||||
|
name: 'contocomfrom.path',
|
||||||
|
label_trans: 'movement.accountFromComId',
|
||||||
|
field: 'contocomfrom',
|
||||||
|
subfield: 'path',
|
||||||
|
foredit: false,
|
||||||
|
tipovisu: costanti.TipoVisu.LINK,
|
||||||
|
fieldtype: costanti.FieldType.username_chip,
|
||||||
|
link: '/circuits/contocomfrom.path',
|
||||||
|
tipoconto: costanti.AccountType.COMMUNITY_ACCOUNT,
|
||||||
|
required: true,
|
||||||
|
}),
|
||||||
|
AddCol({
|
||||||
|
name: 'userto.username',
|
||||||
|
label_trans: 'reg.username',
|
||||||
|
field: 'userto',
|
||||||
|
subfield: 'username',
|
||||||
|
foredit: false,
|
||||||
|
tipovisu: costanti.TipoVisu.LINK,
|
||||||
|
fieldtype: costanti.FieldType.username_chip,
|
||||||
|
link: '/my/userto.username',
|
||||||
|
tipoconto: costanti.AccountType.USER,
|
||||||
|
required: true,
|
||||||
|
}),
|
||||||
|
|
||||||
|
AddCol({
|
||||||
|
name: 'groupto.groupname',
|
||||||
|
label_trans: 'movement.accountToCollId',
|
||||||
|
field: 'groupto',
|
||||||
|
subfield: 'groupname',
|
||||||
|
foredit: false,
|
||||||
|
tipovisu: costanti.TipoVisu.LINK,
|
||||||
|
fieldtype: costanti.FieldType.username_chip,
|
||||||
|
link: '/grp/groupto.groupname',
|
||||||
|
tipoconto: costanti.AccountType.COLLECTIVE_ACCOUNT,
|
||||||
|
required: true,
|
||||||
|
}),
|
||||||
|
AddCol({
|
||||||
|
name: 'contocomfto.path',
|
||||||
|
label_trans: 'movement.accountToComId',
|
||||||
|
field: 'contocomto',
|
||||||
|
subfield: 'path',
|
||||||
|
foredit: false,
|
||||||
|
tipovisu: costanti.TipoVisu.LINK,
|
||||||
|
fieldtype: costanti.FieldType.username_chip,
|
||||||
|
link: '/circuits/contocomto.path',
|
||||||
|
tipoconto: costanti.AccountType.COMMUNITY_ACCOUNT,
|
||||||
|
required: true,
|
||||||
|
}),
|
||||||
|
|
||||||
AddCol({
|
AddCol({
|
||||||
name: 'amount', label_trans: 'movement.amount',
|
name: 'amount', label_trans: 'movement.amount',
|
||||||
|
|||||||
@@ -47,12 +47,14 @@ export default defineComponent({
|
|||||||
const filtroutente = ref(<any[]>[])
|
const filtroutente = ref(<any[]>[])
|
||||||
const showPic = ref(false)
|
const showPic = ref(false)
|
||||||
|
|
||||||
|
const tabcircuit = ref('info')
|
||||||
|
|
||||||
const mygrp = ref(<IMyGroup | null>{})
|
const mygrp = ref(<IMyGroup | null>{})
|
||||||
const mystatus = ref(<number>0)
|
const mystatus = ref(<number>0)
|
||||||
const users_in_group = ref(<IFriends[]>[])
|
const users_in_group = ref(<IFriends[]>[])
|
||||||
|
|
||||||
const showonlymine = ref(true)
|
|
||||||
const tabellare = ref(false)
|
const tabellare = ref(false)
|
||||||
|
const circuitIndex = ref(0)
|
||||||
|
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
|
|
||||||
@@ -68,6 +70,7 @@ export default defineComponent({
|
|||||||
const cities = ref(<ICity[]>[])
|
const cities = ref(<ICity[]>[])
|
||||||
|
|
||||||
const circuitslist = ref(<ICircuit[]>[])
|
const circuitslist = ref(<ICircuit[]>[])
|
||||||
|
const circuitslistOpt = ref(<any[]>[])
|
||||||
|
|
||||||
function profile() {
|
function profile() {
|
||||||
return userStore.my.profile
|
return userStore.my.profile
|
||||||
@@ -93,10 +96,12 @@ export default defineComponent({
|
|||||||
if (mygrp.value)
|
if (mygrp.value)
|
||||||
circuitslist.value = circuitStore.getCircuitsListByGroup(mygrp.value)
|
circuitslist.value = circuitStore.getCircuitsListByGroup(mygrp.value)
|
||||||
|
|
||||||
/*if (mygrp.value && tools.iAmAdminGroup(groupname.value)) {
|
/*if (mygrp.value && tools.iAmAdminGroup(groupname.value)) {
|
||||||
}*/
|
}*/
|
||||||
if (circuitslist.value) {
|
if (circuitslist.value) {
|
||||||
|
circuitslistOpt.value = []
|
||||||
for (let i = 0; i < circuitslist.value.length; i++) {
|
for (let i = 0; i < circuitslist.value.length; i++) {
|
||||||
|
circuitslistOpt.value.push({label: circuitslist.value[i].name, value: i })
|
||||||
let myc = data.mygroup.mycircuits.find((circ: IMyCircuit) => circ.circuitname === circuitslist.value[i].name)
|
let myc = data.mygroup.mycircuits.find((circ: IMyCircuit) => circ.circuitname === circuitslist.value[i].name)
|
||||||
if (myc) {
|
if (myc) {
|
||||||
circuitslist.value[i].account = myc.account
|
circuitslist.value[i].account = myc.account
|
||||||
@@ -225,19 +230,11 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function getExtraparams_movs_grp (circuit: ICircuit): any {
|
function getExtraparams_movs_grp(circuit: ICircuit): any {
|
||||||
if (showonlymine.value) {
|
return {
|
||||||
return {
|
querytype: shared_consts.QUERYTYPE_LIST_MOVEMENTS_GROUPNAME,
|
||||||
querytype: shared_consts.QUERYTYPE_LIST_MOVEMENTS_GROUPNAME,
|
myid: circuit ? circuit._id : '',
|
||||||
myid: circuit ? circuit._id : '',
|
groupname: mygrp.value ? mygrp.value.groupname : '',
|
||||||
groupname: mygrp.value ? mygrp.value.groupname : '',
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return {
|
|
||||||
querytype: shared_consts.QUERYTYPE_LIST_ALLMOVEMENTS,
|
|
||||||
myid: circuit ? circuit._id : '',
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -283,10 +280,12 @@ export default defineComponent({
|
|||||||
circuitslist,
|
circuitslist,
|
||||||
circuitStore,
|
circuitStore,
|
||||||
getExtraparams_movs_grp,
|
getExtraparams_movs_grp,
|
||||||
showonlymine,
|
|
||||||
tabellare,
|
tabellare,
|
||||||
colmyMovementTable,
|
colmyMovementTable,
|
||||||
colmyMovement,
|
colmyMovement,
|
||||||
|
tabcircuit,
|
||||||
|
circuitIndex,
|
||||||
|
circuitslistOpt,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -488,6 +488,42 @@
|
|||||||
</q-tab-panels>
|
</q-tab-panels>
|
||||||
</q-tab-panel>
|
</q-tab-panel>
|
||||||
<q-tab-panel name="circuits">
|
<q-tab-panel name="circuits">
|
||||||
|
<q-select
|
||||||
|
v-model="circuitIndex"
|
||||||
|
:options="circuitslistOpt"
|
||||||
|
emit-value
|
||||||
|
map-options
|
||||||
|
:behavior="$q.platform.is.ios === true ? 'dialog' : 'menu'"
|
||||||
|
>
|
||||||
|
<template v-slot:prepend>
|
||||||
|
<q-icon :name="iconsel" />
|
||||||
|
</template>
|
||||||
|
<template v-slot:option="scope">
|
||||||
|
<q-item v-bind="scope.itemProps">
|
||||||
|
<q-item-section>
|
||||||
|
<q-item-label>{{ scope.opt.label }}</q-item-label>
|
||||||
|
</q-item-section>
|
||||||
|
</q-item>
|
||||||
|
</template>
|
||||||
|
</q-select>
|
||||||
|
|
||||||
|
<q-tabs v-model="tabcircuit" class="text-blue" no-caps>
|
||||||
|
<q-tab
|
||||||
|
:label="t('shared.info1')"
|
||||||
|
name="info"
|
||||||
|
icon="fas fa-info"
|
||||||
|
></q-tab>
|
||||||
|
<q-tab
|
||||||
|
:label="t('circuit.movements')"
|
||||||
|
name="mov"
|
||||||
|
icon="fas fa-coins"
|
||||||
|
></q-tab>
|
||||||
|
</q-tabs>
|
||||||
|
</q-tab-panel>
|
||||||
|
</q-tab-panels>
|
||||||
|
|
||||||
|
<q-tab-panels v-model="tabcircuit" animated>
|
||||||
|
<q-tab-panel name="info" style="max-width: 500px">
|
||||||
<div v-for="(circuit, ind) of circuitslist" :key="ind">
|
<div v-for="(circuit, ind) of circuitslist" :key="ind">
|
||||||
<div class="circuit_name">{{ circuit.name }}:</div>
|
<div class="circuit_name">{{ circuit.name }}:</div>
|
||||||
<CInfoAccount
|
<CInfoAccount
|
||||||
@@ -496,11 +532,10 @@
|
|||||||
:account="circuit.account"
|
:account="circuit.account"
|
||||||
:admin="tools.iAmAdminCircuit(circuit.name)"
|
:admin="tools.iAmAdminCircuit(circuit.name)"
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
<q-toggle
|
</q-tab-panel>
|
||||||
v-model="showonlymine"
|
<q-tab-panel name="mov">
|
||||||
:label="t('movement.onlymymov')"
|
<div v-if="circuitslist && circuitslist.length > 0">
|
||||||
></q-toggle>
|
|
||||||
<q-toggle v-model="tabellare" label="Tabella"></q-toggle>
|
<q-toggle v-model="tabellare" label="Tabella"></q-toggle>
|
||||||
|
|
||||||
<CGridTableRec
|
<CGridTableRec
|
||||||
@@ -532,7 +567,7 @@
|
|||||||
:showType="costanti.SHOW_MOVEMENTS"
|
:showType="costanti.SHOW_MOVEMENTS"
|
||||||
:showCol="true"
|
:showCol="true"
|
||||||
:showHeaderCol="true"
|
:showHeaderCol="true"
|
||||||
:extraparams="getExtraparams_movs_grp(circuit)"
|
:extraparams="getExtraparams_movs_grp(circuitslist[circuitIndex])"
|
||||||
extrafield=""
|
extrafield=""
|
||||||
:visufind="costanti.FRIENDS"
|
:visufind="costanti.FRIENDS"
|
||||||
>
|
>
|
||||||
@@ -565,7 +600,7 @@
|
|||||||
:showType="costanti.SHOW_MOVEMENTS"
|
:showType="costanti.SHOW_MOVEMENTS"
|
||||||
:showCol="false"
|
:showCol="false"
|
||||||
:showHeaderCol="false"
|
:showHeaderCol="false"
|
||||||
:extraparams="getExtraparams_movs_grp(circuit)"
|
:extraparams="getExtraparams_movs_grp(circuitslist[circuitIndex])"
|
||||||
extrafield=""
|
extrafield=""
|
||||||
:visufind="costanti.FRIENDS"
|
:visufind="costanti.FRIENDS"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user