- i filtri non venivano correttamente salvati sui cookies (compariva null e -100)

- aggiunte tabelle accounts e circuits
This commit is contained in:
Paolo Arena
2022-05-08 00:09:38 +02:00
parent 11acac03e5
commit b1fa4c4e2d
19 changed files with 350 additions and 65 deletions

View File

@@ -0,0 +1,35 @@
import { defineComponent, onMounted, ref } from 'vue'
import { CMyPage } from '@/components/CMyPage'
import { CGridTableRec } from '@/components/CGridTableRec'
import { tools } from '@store/Modules/tools'
import { static_data } from '@/db/static_data'
import { fieldsTable } from '@src/store/Modules/fieldsTable'
import { shared_consts } from '@/common/shared_vuejs'
export default defineComponent({
name: 'accountsList',
// @ts-ignore
components: { CGridTableRec, CMyPage },
setup() {
const arrfilterand: any = ref([])
function mounted() {
if (tools.appid() === tools.IDAPP_RISO) {
arrfilterand.value = [
]
}
}
onMounted(mounted)
return {
arrfilterand,
fieldsTable,
}
}
})

View File

@@ -0,0 +1,22 @@
<template>
<CMyPage img="" :title="$t('otherpages.admin.accountsList')" keywords="" description="Lista Conti">
<CGridTableRec
prop_mytable="accounts"
prop_mytitle="Lista Conti"
:prop_mycolumns="fieldsTable.accountslist()"
prop_colkey="_id"
nodataLabel="Nessun Conto"
noresultLabel="Il filtro selezionato non ha trovato nessun risultato"
:arrfilters="arrfilterand">
</CGridTableRec>
</CMyPage>
</template>
<script lang="ts" src="./accountsList.ts">
</script>
<style lang="scss" scoped>
@import './accountsList.scss';
</style>

View File

@@ -0,0 +1 @@
export {default as accountsList} from './accountsList.vue'

View File

@@ -0,0 +1,35 @@
import { defineComponent, onMounted, ref } from 'vue'
import { CMyPage } from '@/components/CMyPage'
import { CGridTableRec } from '@/components/CGridTableRec'
import { tools } from '@store/Modules/tools'
import { static_data } from '@/db/static_data'
import { fieldsTable } from '@src/store/Modules/fieldsTable'
import { shared_consts } from '@/common/shared_vuejs'
export default defineComponent({
name: 'circuitsList',
// @ts-ignore
components: { CGridTableRec, CMyPage },
setup() {
const arrfilterand: any = ref([])
function mounted() {
if (tools.appid() === tools.IDAPP_RISO) {
arrfilterand.value = [
]
}
}
onMounted(mounted)
return {
arrfilterand,
fieldsTable,
}
}
})

View File

@@ -0,0 +1,22 @@
<template>
<CMyPage img="" :title="$t('otherpages.admin.circuitslist')" keywords="" description="Lista Circuiti">
<CGridTableRec
prop_mytable="circuits"
prop_mytitle="Lista Circuiti"
:prop_mycolumns="fieldsTable.circuitslist()"
prop_colkey="_id"
nodataLabel="Nessun Circuito"
noresultLabel="Il filtro selezionato non ha trovato nessun risultato"
:arrfilters="arrfilterand">
</CGridTableRec>
</CMyPage>
</template>
<script lang="ts" src="./circuitsList.ts">
</script>
<style lang="scss" scoped>
@import './circuitsList.scss';
</style>

View File

@@ -0,0 +1 @@
export {default as circuitsList} from './circuitsList.vue'