- i filtri non venivano correttamente salvati sui cookies (compariva null e -100)
- aggiunte tabelle accounts e circuits
This commit is contained in:
0
src/rootgen/admin/accountsList/accountsList.scss
Executable file
0
src/rootgen/admin/accountsList/accountsList.scss
Executable file
35
src/rootgen/admin/accountsList/accountsList.ts
Executable file
35
src/rootgen/admin/accountsList/accountsList.ts
Executable 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,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
22
src/rootgen/admin/accountsList/accountsList.vue
Executable file
22
src/rootgen/admin/accountsList/accountsList.vue
Executable 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>
|
||||
|
||||
|
||||
1
src/rootgen/admin/accountsList/index.ts
Executable file
1
src/rootgen/admin/accountsList/index.ts
Executable file
@@ -0,0 +1 @@
|
||||
export {default as accountsList} from './accountsList.vue'
|
||||
0
src/rootgen/admin/circuitsList/circuitsList.scss
Executable file
0
src/rootgen/admin/circuitsList/circuitsList.scss
Executable file
35
src/rootgen/admin/circuitsList/circuitsList.ts
Executable file
35
src/rootgen/admin/circuitsList/circuitsList.ts
Executable 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,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
22
src/rootgen/admin/circuitsList/circuitsList.vue
Executable file
22
src/rootgen/admin/circuitsList/circuitsList.vue
Executable 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>
|
||||
|
||||
|
||||
1
src/rootgen/admin/circuitsList/index.ts
Executable file
1
src/rootgen/admin/circuitsList/index.ts
Executable file
@@ -0,0 +1 @@
|
||||
export {default as circuitsList} from './circuitsList.vue'
|
||||
Reference in New Issue
Block a user