CGridTableRec + fields + page
pagine: - Siti Web - Operazioni - Push...
This commit is contained in:
@@ -28,7 +28,7 @@ export default function () {
|
||||
}
|
||||
|
||||
function getValDb(keystr: string, serv: boolean, def?: any, table?: string, subkey?: any, id?: any, idmain?: any) {
|
||||
console.log('getValDb')
|
||||
// console.log('getValDb')
|
||||
return toolsext.getValDb(keystr, serv, def, table, subkey, id, idmain)
|
||||
}
|
||||
|
||||
@@ -39,14 +39,14 @@ export default function () {
|
||||
return ris
|
||||
}
|
||||
|
||||
async function setValDb(key: string, value: any, type: any, serv: boolean, table?: string, subkey?: string, id?: any) {
|
||||
async function setValDb($q: any, key: string, value: any, type: any, serv: boolean, table?: string, subkey?: string, id?: any) {
|
||||
const userStore = useUserStore()
|
||||
const globalStore = useGlobalStore()
|
||||
const $q = useQuasar()
|
||||
const { t } = useI18n()
|
||||
|
||||
console.log('setValDb', key, value, serv, table, subkey)
|
||||
let mydatatosave: IDataPass | null = null
|
||||
|
||||
if (table === 'users') {
|
||||
const myid = userStore.my._id
|
||||
|
||||
@@ -169,10 +169,7 @@ export default function () {
|
||||
// console.log('myval', myval)
|
||||
try {
|
||||
if (myval) {
|
||||
const myrec: any = JSON.parse(myval)
|
||||
// console.log('*************** getarrValDb')
|
||||
// console.table(myrec)
|
||||
return myrec
|
||||
return JSON.parse(myval)
|
||||
}
|
||||
return []
|
||||
} catch (e) {
|
||||
|
||||
@@ -4,31 +4,36 @@ import {
|
||||
import { IMetaTags } from '@model'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { useQuasar } from 'quasar'
|
||||
import { useMeta } from 'quasar'
|
||||
|
||||
|
||||
// You can declare a mixin as the same style as components.
|
||||
export default defineComponent({
|
||||
name: 'MixinMetaTags',
|
||||
setup() {
|
||||
const mymeta = ref<IMetaTags>({ title: '', description: '', keywords: '' })
|
||||
export default function () {
|
||||
|
||||
const $q = useQuasar()
|
||||
function setmeta(mym: IMetaTags) {
|
||||
|
||||
function setmeta(mym: IMetaTags) {
|
||||
mymeta.value = mym
|
||||
}
|
||||
//++Todo META TAGS!
|
||||
/*
|
||||
useMeta(() => {
|
||||
return {
|
||||
title: mym.title,
|
||||
description: mym.description,
|
||||
keywords: mym.keywords,
|
||||
}
|
||||
})
|
||||
|
||||
function getsrcbyimg(myimg: string) {
|
||||
// return src
|
||||
const filefull = tools.getimgFullpathbysize(myimg)
|
||||
*/
|
||||
}
|
||||
|
||||
return tools.getimgbysize(filefull.path, filefull.file)
|
||||
}
|
||||
function getsrcbyimg(myimg: string) {
|
||||
// return src
|
||||
const filefull = tools.getimgFullpathbysize(myimg)
|
||||
|
||||
return {
|
||||
$q,
|
||||
setmeta,
|
||||
getsrcbyimg,
|
||||
}
|
||||
},
|
||||
return tools.getimgbysize(filefull.path, filefull.file)
|
||||
}
|
||||
|
||||
})
|
||||
return {
|
||||
setmeta,
|
||||
getsrcbyimg,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user