lista ordini aggiornata
This commit is contained in:
0
src/rootgen/admin/settings/settings.scss
Executable file
0
src/rootgen/admin/settings/settings.scss
Executable file
51
src/rootgen/admin/settings/settings.ts
Executable file
51
src/rootgen/admin/settings/settings.ts
Executable file
@@ -0,0 +1,51 @@
|
||||
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 { CMyFieldRec } from '@/components/CMyFieldRec'
|
||||
import { CMyFieldDb } from '@/components/CMyFieldDb'
|
||||
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { costanti } from '@costanti'
|
||||
import { tools } from '@src/store/Modules/tools'
|
||||
|
||||
import { colTableProducer } from '@src/store/Modules/fieldsTable'
|
||||
import MixinMetaTags from '@/mixins/mixin-metatags'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'settings',
|
||||
components: { CImgText, CCard, CMyPage, CTitleBanner, CGridTableRec, CMyFieldRec, CMyFieldDb},
|
||||
setup() {
|
||||
|
||||
const mysite = ref(<any>null)
|
||||
const tab = ref('server')
|
||||
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
const { setmeta } = MixinMetaTags()
|
||||
|
||||
async function mounted() {
|
||||
mysite.value = await globalStore.caricaTabella('sites', process.env.APP_ID!)
|
||||
}
|
||||
|
||||
function save(newval: any) {
|
||||
console.log('ConfSite save')
|
||||
tools.updateFonts(newval)
|
||||
}
|
||||
|
||||
onMounted(mounted)
|
||||
|
||||
return {
|
||||
setmeta,
|
||||
mysite,
|
||||
costanti,
|
||||
tab,
|
||||
tools,
|
||||
save,
|
||||
globalStore,
|
||||
}
|
||||
}
|
||||
})
|
||||
34
src/rootgen/admin/settings/settings.vue
Executable file
34
src/rootgen/admin/settings/settings.vue
Executable file
@@ -0,0 +1,34 @@
|
||||
<template>
|
||||
<span
|
||||
>{{
|
||||
setmeta({
|
||||
title: 'Impostazioni',
|
||||
description: '',
|
||||
keywords: '',
|
||||
})
|
||||
}}
|
||||
</span>
|
||||
|
||||
<div>
|
||||
<div class="q-ma-sm q-gutter-sm q-pa-xs">
|
||||
<div v-if="mysite">
|
||||
<CTitleBanner title="Impostazioni"></CTitleBanner>
|
||||
<CMyFieldDb
|
||||
title="Attiva PreOrdini"
|
||||
table="sites"
|
||||
mykey="ecomm"
|
||||
mysubkey="enablePreOrders"
|
||||
:id="mysite._id"
|
||||
:rec="mysite"
|
||||
:type="costanti.FieldType.boolean"
|
||||
>
|
||||
</CMyFieldDb>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts" src="./settings.ts">
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@import 'settings.scss';
|
||||
</style>
|
||||
Reference in New Issue
Block a user