- menu BOT
- verified_by_aportador
This commit is contained in:
0
src/rootgen/admin/bot/bot.scss
Executable file
0
src/rootgen/admin/bot/bot.scss
Executable file
40
src/rootgen/admin/bot/bot.ts
Executable file
40
src/rootgen/admin/bot/bot.ts
Executable file
@@ -0,0 +1,40 @@
|
||||
import { defineComponent, ref, onMounted } from 'vue'
|
||||
|
||||
import { CImgText } from '../../../components/CImgText/index'
|
||||
import { CCard } from '@/components/CCard'
|
||||
import { CMyPage } from '@/components/CMyPage'
|
||||
import { CTitleBanner } from '@/components/CTitleBanner'
|
||||
import { CGridTableRec } from '@/components/CGridTableRec'
|
||||
|
||||
import { colmybot } from '@src/store/Modules/fieldsTable'
|
||||
import MixinMetaTags from '@/mixins/mixin-metatags'
|
||||
import { IMyBot } from 'model'
|
||||
import { shared_consts } from '@/common/shared_vuejs'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'Bot',
|
||||
components: { CImgText, CCard, CMyPage, CTitleBanner, CGridTableRec },
|
||||
setup() {
|
||||
|
||||
const { setmeta } = MixinMetaTags()
|
||||
|
||||
function getdefaultnewrec(): IMyBot {
|
||||
return {
|
||||
page: 1,
|
||||
index: 1,
|
||||
riga: 1,
|
||||
active: false,
|
||||
label: '',
|
||||
type: 0,
|
||||
value: '',
|
||||
visibility: shared_consts.VISIB_ALL,
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
colmybot,
|
||||
setmeta,
|
||||
getdefaultnewrec,
|
||||
}
|
||||
}
|
||||
})
|
||||
24
src/rootgen/admin/bot/bot.vue
Executable file
24
src/rootgen/admin/bot/bot.vue
Executable file
@@ -0,0 +1,24 @@
|
||||
<template>
|
||||
<CMyPage title="Bot" imgbackground="images/bot.jpg" sizes="max-height: 120px">
|
||||
|
||||
<div class="q-ma-sm q-gutter-sm q-pa-xs">
|
||||
<CTitleBanner title="Bot"></CTitleBanner>
|
||||
<CGridTableRec
|
||||
prop_mytable="mybots"
|
||||
prop_mytitle="Configura Bot"
|
||||
:prop_mycolumns="colmybot"
|
||||
prop_colkey="_id"
|
||||
nodataLabel="Nessun Bot Configurato"
|
||||
:defaultnewrec="getdefaultnewrec"
|
||||
noresultLabel="Il filtro selezionato non ha trovato nessun risultato">
|
||||
|
||||
</CGridTableRec>
|
||||
</div>
|
||||
</CMyPage>
|
||||
</template>
|
||||
<script lang="ts" src="./bot.ts">
|
||||
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@import 'bot.scss';
|
||||
</style>
|
||||
@@ -81,7 +81,6 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
watch(idparam, (newval, oldval) => {
|
||||
console.log('$route.params.idparam')
|
||||
tab.value = idparam.value
|
||||
})
|
||||
|
||||
|
||||
@@ -84,6 +84,8 @@ export default defineComponent({
|
||||
return db_fieldsTable().colTableUsers
|
||||
} else if (static_data.functionality.ENABLE_REG_CNM) {
|
||||
return db_fieldsTable().colTableUsersCNM
|
||||
} else if (static_data.functionality.ENABLE_REG_ISP) {
|
||||
return db_fieldsTable().colTableUsersISP
|
||||
} else {
|
||||
return db_fieldsTable().colTableUsersBase
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user