ver "0.5.8"

Lista movimenti in formato Tabella
This commit is contained in:
Paolo Arena
2022-09-16 19:38:57 +02:00
parent 78a79e1ad5
commit f625278801
15 changed files with 116 additions and 24 deletions

View File

@@ -21,7 +21,7 @@ import { CNotifAtTop } from '@src/components/CNotifAtTop'
import { costanti } from '@costanti'
import { ICity, IFriends, ICircuit, ISearchList, IUserFields, IAccount } from 'model'
import { shared_consts } from '@/common/shared_vuejs'
import { colmyUserPeople, colmyUserCircuit, colmyMovement } from '@store/Modules/fieldsTable'
import { colmyUserPeople, colmyUserCircuit, colmyMovement, colmyMovementTable } from '@store/Modules/fieldsTable'
import { useNotifStore } from '@store/NotifStore'
import { useCircuitStore } from '@store/CircuitStore'
@@ -39,6 +39,9 @@ export default defineComponent({
const $q = useQuasar()
const { t } = useI18n()
const showonlymine = ref(true)
const tabellare = ref(false)
const animation = ref('fade')
const path = computed(() => $route.params.path ? $route.params.path.toString() : '')
@@ -161,13 +164,21 @@ export default defineComponent({
}
}
function extraparams_movs() {
return {
querytype: shared_consts.QUERYTYPE_LIST_MOVEMENTS,
myid: circuit.value ? circuit.value._id : '',
username: userStore.my.username,
const extraparams_movs = (() => {
if (showonlymine.value) {
return {
querytype: shared_consts.QUERYTYPE_LIST_MOVEMENTS,
myid: circuit.value ? circuit.value._id : '',
username: userStore.my.username,
}
} else {
return {
querytype: shared_consts.QUERYTYPE_LIST_ALLMOVEMENTS,
myid: circuit.value ? circuit.value._id : '',
}
}
}
})
function extraparams_refused() {
return {
@@ -209,6 +220,7 @@ export default defineComponent({
filtercustom_rich,
searchList,
colmyMovement,
colmyMovementTable,
colmyUserPeople,
colmyUserCircuit,
extraparams,
@@ -230,6 +242,8 @@ export default defineComponent({
circuitStore,
qtarem,
saldo,
showonlymine,
tabellare,
}
}
})

View File

@@ -107,7 +107,42 @@
<q-tab-panels v-model="tabgrp" animated>
<q-tab-panel name="mov">
<q-toggle v-model="showonlymine" label="Mostra solo i miei movimenti"></q-toggle>
<q-toggle v-model="tabellare" label="Tabella"></q-toggle>
<CGridTableRec
v-if="tabellare"
prop_mytable="movements"
prop_mytitle=""
:prop_mycolumns="colmyMovementTable"
prop_colkey="_id"
col_title="Lista Movimenti"
:vertical="0"
nodataLabel="Nessun Movimento effettuato"
: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"
keyMain=""
:showCol="true"
:showHeaderCol="true"
:extraparams="extraparams_movs()"
extrafield=""
:visufind="costanti.FRIENDS"
>
</CGridTableRec>
<CGridTableRec
v-else
prop_mytable="movements"
prop_mytitle=""
:prop_mycolumns="colmyMovement"
@@ -115,14 +150,14 @@
col_title="Lista Movimenti"
:vertical="costanti.VISUTABLE_LISTA"
nodataLabel="Nessun Movimento effettuato"
:prop_search="false"
hint="Username da trovare"
: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="Username non trovato"
noresultLabel="movimenti non trovati con questa ricerca"
:arrfilters="arrfilterand"
:filtercustom="filtercustom_rich"
:prop_searchList="searchList"