Lista Tabelle
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<q-card class="my-card text-center">
|
||||
|
||||
<q-img :src="`public/images/` + myop.img" class="myimg">
|
||||
<q-img :src="`images/` + myop.img" class="myimg">
|
||||
<div class="absolute-bottom text-spacetrans text-shadow">
|
||||
<div class="text-h6 text-trans">{{ myop.name }} {{ myop.surname }}</div>
|
||||
<div class="text-subtitle-carica text-trans">{{ myop.qualification }}</div>
|
||||
|
||||
@@ -71,7 +71,7 @@ dark color="white" v-model="globalStore.autoplaydisc" label="Auto Play" class="s
|
||||
<q-carousel-slide
|
||||
v-for="(myrec, index) in myarr"
|
||||
:key="index"
|
||||
:img-src="`public/`+myrec.img_small"
|
||||
:img-src="myrec.img_small"
|
||||
:alt="myrec.label"
|
||||
:name="index">
|
||||
<div class="row q-ma-xs">
|
||||
|
||||
@@ -26,7 +26,7 @@ export default defineComponent({
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
function copytoclip() {
|
||||
tools.copyStringToClipboard(props.texttocopy, true)
|
||||
tools.copyStringToClipboard($q, props.texttocopy, true)
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<template>
|
||||
<q-input
|
||||
:class="data_class" :bg-color="color" :readonly="readonly" :disable="disable" debounce="1000" :dense="dense"
|
||||
:value="getdatestring" stack-label :label="label" @input="changedate" :rounded="rounded"
|
||||
:value="getdatestring" stack-label :label="label" @update:model-value="changedate" :rounded="rounded"
|
||||
mask="##/##/####"
|
||||
fill-mask
|
||||
:outlined="outlined">
|
||||
<template v-slot:append>
|
||||
<q-icon name="event" class="cursor-pointer" :style="mystyleicon">
|
||||
<q-popup-proxy v-if="!readonly" ref="datePicker">
|
||||
<q-date :value="getdateyymmddstring" today-btn @input="changedate"></q-date>
|
||||
<q-date :value="getdateyymmddstring" today-btn @update:model-value="changedate"></q-date>
|
||||
</q-popup-proxy>
|
||||
</q-icon>
|
||||
</template>
|
||||
|
||||
@@ -207,7 +207,7 @@ export default defineComponent({
|
||||
|
||||
function copytoclipboard(rec: any) {
|
||||
const filename = getfullname(rec)
|
||||
tools.copyStringToClipboard(filename, true)
|
||||
tools.copyStringToClipboard($q, filename, true)
|
||||
}
|
||||
|
||||
async function deleteFile(rec: any)
|
||||
|
||||
@@ -105,10 +105,10 @@ export default defineComponent({
|
||||
const newRecord: any = ref({})
|
||||
const savenewRec = ref(false)
|
||||
|
||||
const mytable = toRef(props, 'prop_mytable')
|
||||
const mytitle = toRef(props, 'prop_mytitle')
|
||||
const mycolumns = toRef(props, 'prop_mycolumns')
|
||||
const colkey = toRef(props, 'prop_colkey')
|
||||
const mytable = ref('')
|
||||
const mytitle = ref('')
|
||||
const mycolumns = ref([])
|
||||
const colkey = ref('')
|
||||
const search = ref('')
|
||||
|
||||
const tablesel = ref('')
|
||||
@@ -186,6 +186,8 @@ export default defineComponent({
|
||||
|
||||
params.codeId = mycodeid.value
|
||||
|
||||
console.log('params', params)
|
||||
|
||||
params = { ...params, ...props.extraparams }
|
||||
|
||||
const data = await globalStore.loadTable(params)
|
||||
@@ -208,7 +210,6 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function onRequest() {
|
||||
// console.log('onRequest', 'myfilter = ', myfilter)
|
||||
const { page, rowsPerPage, rowsNumber, sortBy, descending } = mypagination.value
|
||||
const myfilternow = myfilter.value
|
||||
const myfilterandnow = myfilterand.value
|
||||
@@ -218,6 +219,8 @@ export default defineComponent({
|
||||
if (!mytable.value)
|
||||
return
|
||||
|
||||
console.log('onRequest', 'myfilter = ', myfilter.value)
|
||||
|
||||
loading.value = true
|
||||
|
||||
spinner_visible.value = true
|
||||
@@ -231,7 +234,7 @@ export default defineComponent({
|
||||
const startRow = (page - 1) * rowsPerPage
|
||||
const endRow = startRow + fetchCount
|
||||
|
||||
// console.log('startRow', startRow, 'endRow', endRow)
|
||||
console.log('startRow', startRow, 'endRow', endRow)
|
||||
|
||||
serverData.value = []
|
||||
|
||||
@@ -274,6 +277,7 @@ export default defineComponent({
|
||||
|
||||
|
||||
function refresh() {
|
||||
console.log('refresh')
|
||||
serverData.value = []
|
||||
|
||||
search.value = search.value.trim()
|
||||
@@ -285,7 +289,7 @@ export default defineComponent({
|
||||
else
|
||||
myfilter.value = ''
|
||||
|
||||
// console.log('myfilter', myfilter)
|
||||
console.log('myfilter', myfilter.value)
|
||||
|
||||
refresh_table()
|
||||
}
|
||||
@@ -435,7 +439,7 @@ export default defineComponent({
|
||||
async function createNewRecordDialog() {
|
||||
|
||||
const mydata: any = {
|
||||
table: mytable,
|
||||
table: mytable.value,
|
||||
data: function () {
|
||||
return {}
|
||||
}
|
||||
@@ -494,12 +498,20 @@ export default defineComponent({
|
||||
})
|
||||
}
|
||||
|
||||
function created() {
|
||||
mytable.value = props.prop_mytable
|
||||
mytitle.value = props.prop_mytitle
|
||||
mycolumns.value = props.prop_mycolumns
|
||||
colkey.value = props.prop_colkey
|
||||
|
||||
}
|
||||
|
||||
function mounted() {
|
||||
//console.log('GridTable mounted', tablesel)
|
||||
console.log('GridTable mounted', tablesel.value)
|
||||
|
||||
if (!!props.tablesList) {
|
||||
canEdit.value = tools.getCookie(tools.CAN_EDIT, canEdit) === 'true'
|
||||
tablesel.value = tools.getCookie('tablesel', tablesel)
|
||||
tablesel.value = tools.getCookie('tablesel', tablesel.value)
|
||||
}
|
||||
myfilterand.value = props.filterdef
|
||||
// console.log('tablesel', tablesel)
|
||||
@@ -511,7 +523,7 @@ export default defineComponent({
|
||||
tablesel.value = mytable.value
|
||||
}
|
||||
|
||||
// console.log('2) tablesel', tablesel)
|
||||
console.log('2) tablesel', tablesel.value)
|
||||
|
||||
changeTable(false)
|
||||
|
||||
@@ -557,16 +569,17 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function changeTable(mysel: any) {
|
||||
// console.log('changeTable')
|
||||
if (tablesel.value === undefined || tablesel.value === '')
|
||||
return
|
||||
|
||||
// console.log('changeTable mysel=', mysel, 'tablesel', tablesel)
|
||||
// console.log('changeTable mysel=', mysel, 'tablesel', tablesel.value)
|
||||
// console.log('tablesList=')
|
||||
// console.table(tablesList)
|
||||
|
||||
let mytab = null
|
||||
if (props.tablesList) {
|
||||
mytab = props.tablesList.find((rec: any) => rec.value === tablesel.value)
|
||||
mytab = props.tablesList.find((rec: any) => rec.value === mysel)
|
||||
}
|
||||
|
||||
if (mytab === undefined) {
|
||||
@@ -581,9 +594,11 @@ export default defineComponent({
|
||||
if (mytab) {
|
||||
mytitle.value = mytab.label
|
||||
colkey.value = mytab.colkey
|
||||
if (mytab.columns) {
|
||||
// @ts-ignore
|
||||
mycolumns.value = [...mytab.columns]
|
||||
}
|
||||
}
|
||||
|
||||
// console.log('mycolumns')
|
||||
// console.log(mycolumns)
|
||||
@@ -715,7 +730,10 @@ export default defineComponent({
|
||||
return props.labelBtnAddRow !== addRow.value
|
||||
}
|
||||
|
||||
onMounted(mounted)
|
||||
// onMounted(mounted)
|
||||
|
||||
created()
|
||||
mounted()
|
||||
|
||||
|
||||
return {
|
||||
@@ -766,6 +784,8 @@ export default defineComponent({
|
||||
lists,
|
||||
refresh,
|
||||
spinner_visible,
|
||||
tablesel,
|
||||
myfilterand,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
selection="single"
|
||||
v-model:selected="selected">
|
||||
|
||||
|
||||
<template v-slot:header="props">
|
||||
|
||||
<q-tr :props="props">
|
||||
@@ -47,6 +48,7 @@
|
||||
</q-tr>
|
||||
</template>
|
||||
|
||||
|
||||
<template v-slot:top-right>
|
||||
<div class="q-table__title" style="min-width: 150px;">{{ mytitle }}</div>
|
||||
|
||||
@@ -89,21 +91,20 @@
|
||||
map-options
|
||||
:options="mycolumns"
|
||||
option-value="name"
|
||||
º
|
||||
@input="changeCol">
|
||||
@update:model-value="changeCol">
|
||||
|
||||
</q-select>
|
||||
|
||||
<q-select
|
||||
v-if="tablesList"
|
||||
v-model="tablesel"
|
||||
:model-value="tablesel"
|
||||
rounded
|
||||
outlined
|
||||
dense
|
||||
:options="tablesList"
|
||||
:display-value="mytitle"
|
||||
emit-value
|
||||
@input="changeTable"
|
||||
@update:model-value="changeTable"
|
||||
>
|
||||
</q-select>
|
||||
|
||||
@@ -112,6 +113,7 @@
|
||||
<q-spinner-tail size="2em" color="primary"/>
|
||||
</q-inner-loading>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<q-toggle
|
||||
v-for="(filter, index) of arrfilters"
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
</q-toolbar>
|
||||
<q-card-section class="text-center inset-shadow">
|
||||
<div style="width: 200px; float: left;">
|
||||
<q-img :src="`public/images/` + myop.img" class="myimg" :alt="`${myop.name} ${myop.surname}`">
|
||||
<q-img :src="`images/` + myop.img" class="myimg" :alt="`${myop.name} ${myop.surname}`">
|
||||
</q-img>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
- <a :href="urlmap" target="_blank" class="text-black">Apri Mappa</a>
|
||||
</p>
|
||||
<a :href="urlmap" target="_blank">
|
||||
<q-img :src="`public/` + imgmap" class="imgautosize" alt="my map">
|
||||
<q-img :src="`` + imgmap" class="imgautosize" alt="my map">
|
||||
</q-img>
|
||||
|
||||
</a>
|
||||
|
||||
@@ -56,7 +56,7 @@ h4 {
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: -1;
|
||||
//background: #000 url(../../public/images/cover.jpg) 50%;
|
||||
//background: #000 url(../../images/cover.jpg) 50%;
|
||||
|
||||
background-size: cover
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<q-card :class="getmycardcl" v-if="!!myproduct">
|
||||
<q-img :src="`public/` + myproduct.img" :alt="myproduct.name" :class="getclimg"></q-img>
|
||||
<q-card :class="getmycardcl()" v-if="!!myproduct">
|
||||
<q-img :src="`` + myproduct.img" :alt="myproduct.name" :class="getclimg()"></q-img>
|
||||
|
||||
<q-card-section>
|
||||
<q-btn
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="row items-center justify-evenly no-wrap">
|
||||
<div class="col-2 text-h6 ellipsis">
|
||||
<img
|
||||
v-if="true" :src="`public/` + order.product.img" :alt="order.product.name" :class="myimgclass">
|
||||
v-if="true" :src="`` + order.product.img" :alt="order.product.name" :class="myimgclass">
|
||||
</div>
|
||||
<div class="col-4 q-ml-xs">
|
||||
{{ order.product.name }}
|
||||
|
||||
@@ -38,7 +38,7 @@ export default defineComponent({
|
||||
|
||||
watch(path, (to: string, from: string) => {
|
||||
const mymenu = globalStore.getmenu
|
||||
console.log('watch:', mymenu)
|
||||
// console.log('watch:', mymenu)
|
||||
Object.keys(mymenu).forEach((parentName: any) => {
|
||||
console.log('parentName', parentName)
|
||||
// @ts-ignore
|
||||
|
||||
@@ -12,9 +12,9 @@ import { useI18n } from '@/boot/i18n'
|
||||
export default function () {
|
||||
function getImgEvent(event: IEvents) {
|
||||
if (!!event.img)
|
||||
return 'public/' + event.img
|
||||
return event.img
|
||||
else
|
||||
return 'public/images/noimg.png'
|
||||
return 'images/noimg.png'
|
||||
}
|
||||
|
||||
function getStyleByEvent(event: IEvents, visu: boolean) {
|
||||
|
||||
@@ -23,7 +23,7 @@ export default function () {
|
||||
|
||||
function getImgTeacherByUsername(username: string) {
|
||||
const calendarStore = useCalendarStore()
|
||||
return 'public/images/' + calendarStore.getImgTeacherByUsername(username)
|
||||
return 'images/' + calendarStore.getImgTeacherByUsername(username)
|
||||
}
|
||||
|
||||
function getTeacherByUsername(username: string) {
|
||||
|
||||
@@ -12,7 +12,7 @@ export default function () {
|
||||
|
||||
function getImgByUsername(username: string) {
|
||||
const userStore = useUserStore()
|
||||
return `public/${userStore.getImgByUsername(username)}`
|
||||
return `${userStore.getImgByUsername(username)}`
|
||||
}
|
||||
|
||||
function isValidUsername(username: string) {
|
||||
@@ -52,13 +52,13 @@ export default function () {
|
||||
function getImgByMsg(msg: IMessage) {
|
||||
const userStore = useUserStore()
|
||||
// @ts-ignore
|
||||
return `public/${userStore.getImgByUsername(this.getUsernameChatByMsg(msg))}`
|
||||
return `${userStore.getImgByUsername(this.getUsernameChatByMsg(msg))}`
|
||||
}
|
||||
|
||||
function getMyImg() {
|
||||
const userStore = useUserStore()
|
||||
const ris = userStore.getImgByUsername(userStore.my.username)
|
||||
const out = (ris !== '') ? `public/${ris}` : ''
|
||||
const out = (ris !== '') ? `${ris}` : ''
|
||||
console.log('getMyImg = ', out)
|
||||
return out
|
||||
}
|
||||
@@ -66,7 +66,7 @@ export default function () {
|
||||
function getMyImgforIcon() {
|
||||
const userStore = useUserStore()
|
||||
const ris = userStore.getImgByUsername(userStore.my.username)
|
||||
return (ris !== '') ? `img:public/${ris}` : 'fas fa-user'
|
||||
return (ris !== '') ? `img:${ris}` : 'fas fa-user'
|
||||
}
|
||||
|
||||
function getIconCart() {
|
||||
|
||||
@@ -27,7 +27,7 @@ h4 {
|
||||
}
|
||||
|
||||
.landing_background {
|
||||
background: #000 url(../../../public/images/foto1.jpg) no-repeat 50% fixed;
|
||||
background: #000 url(../../../images/foto1.jpg) no-repeat 50% fixed;
|
||||
background-size: cover
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ h4 {
|
||||
background-repeat: no-repeat !important;
|
||||
background-position: top;
|
||||
background-size: contain !important;
|
||||
background-image: url(../../../public/images/landing_first_section.png) !important
|
||||
background-image: url(../../../images/landing_first_section.png) !important
|
||||
}
|
||||
|
||||
.feat-descr {
|
||||
@@ -209,7 +209,7 @@ body.mobile .landing:before {
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: -1;
|
||||
//background: #000 url(../../public/images/cover.jpg) 50%;
|
||||
//background: #000 url(../../images/cover.jpg) 50%;
|
||||
|
||||
background-size: cover
|
||||
}
|
||||
|
||||
@@ -3,9 +3,11 @@ import { defineComponent, ref, onMounted, watch, computed } from 'vue'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { useRoute } from 'vue-router'
|
||||
import MixinMetaTags from '@/mixins/mixin-metatags'
|
||||
import { CMyPage } from '@/components/CMyPage'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'Mypage',
|
||||
components: { CMyPage },
|
||||
setup() {
|
||||
const rec = ref({})
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
<div class="q-ma-sm q-gutter-sm q-pa-xs">
|
||||
<div v-if="!!rec.img1" class="text-center">
|
||||
<q-img :src="`public/`+ rec.img1" class="img"></q-img>
|
||||
<q-img :src="rec.img1" class="img"></q-img>
|
||||
</div>
|
||||
|
||||
<div v-if="!!rec.content" v-html="rec.content"></div>
|
||||
@@ -22,14 +22,14 @@
|
||||
</q-video>
|
||||
|
||||
<div v-if="!!rec.img2" class="text-center">
|
||||
<q-img :src="`public/`+ rec.img2" class="img"></q-img>
|
||||
<q-img :src="rec.img2" class="img"></q-img>
|
||||
</div>
|
||||
|
||||
<div v-if="!!rec.content2" v-html="rec.content2"></div>
|
||||
<q-video v-if="!!rec.video2" :src="rec.video2" :ratio="rec.ratio2"></q-video>
|
||||
|
||||
<div v-if="!!rec.img3" class="text-center">
|
||||
<q-img :src="`public/`+ rec.img2" class="img"></q-img>
|
||||
<q-img :src="rec.img2" class="img"></q-img>
|
||||
</div>
|
||||
|
||||
<div v-if="!!rec.content3" v-html="rec.content3"></div>
|
||||
|
||||
@@ -90,13 +90,13 @@ export default defineComponent({
|
||||
|
||||
if (actiontype.value === shared_consts.TypeMsg_Actions.YESNO) {
|
||||
param.actions = [
|
||||
{ action: 'confirm', title: 'Si', icon: '/public/images/opz1-icon-96x96.jpg' },
|
||||
{ action: 'cancel', title: 'No', icon: '/public/images/opz2-icon-96x96.jpg' }
|
||||
{ action: 'confirm', title: 'Si', icon: '/images/opz1-icon-96x96.jpg' },
|
||||
{ action: 'cancel', title: 'No', icon: '/images/opz2-icon-96x96.jpg' }
|
||||
]
|
||||
} else if (actiontype.value === shared_consts.TypeMsg_Actions.OPZ1_2) {
|
||||
param.actions = [
|
||||
{ action: 'opz1', title: opz1.value, icon: '/public/images/opz1-icon-96x96.jpg' },
|
||||
{ action: 'opz2', title: opz2.value, icon: '/public/images/opz2-icon-96x96.jpg' }
|
||||
{ action: 'opz1', title: opz1.value, icon: '/images/opz1-icon-96x96.jpg' },
|
||||
{ action: 'opz2', title: opz2.value, icon: '/images/opz2-icon-96x96.jpg' }
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<CMyPage img="" :title="$t('otherpages.admin.userlist')" keywords="" description="">
|
||||
<CMyPage img="" :title="$t('otherpages.admin.tableslist')" keywords="" description="">
|
||||
|
||||
<CGridTableRec
|
||||
:prop_mytitle="$t('otherpages.admin.tableslist')"
|
||||
:nodataLabel="$t('grid.nodata')"
|
||||
@@ -8,6 +9,20 @@
|
||||
>
|
||||
|
||||
</CGridTableRec>
|
||||
|
||||
|
||||
<!--
|
||||
<CGridTableRec
|
||||
prop_mytable="sites"
|
||||
prop_mytitle="Lista Siti"
|
||||
:prop_mycolumns="colTableSites"
|
||||
prop_colkey="name"
|
||||
nodataLabel="Nessun Sito"
|
||||
noresultLabel="Il filtro selezionato non ha trovato nessun risultato">
|
||||
|
||||
</CGridTableRec>
|
||||
-->
|
||||
|
||||
</CMyPage>
|
||||
</template>
|
||||
<script lang="ts" src="./tablesList.ts">
|
||||
|
||||
@@ -165,7 +165,11 @@ export const colnewstosent = [
|
||||
AddCol({ name: 'numemail_sent', label_trans: 'newsletter.numemail_sent', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'datestartJob', label_trans: 'newsletter.datestartJob', fieldtype: costanti.FieldType.date }),
|
||||
AddCol({ name: 'datefinishJob', label_trans: 'newsletter.datefinishJob', fieldtype: costanti.FieldType.date }),
|
||||
AddCol({ name: 'lastemailsent_Job', label_trans: 'newsletter.lastemailsent_Job', fieldtype: costanti.FieldType.date }),
|
||||
AddCol({
|
||||
name: 'lastemailsent_Job',
|
||||
label_trans: 'newsletter.lastemailsent_Job',
|
||||
fieldtype: costanti.FieldType.date
|
||||
}),
|
||||
AddCol({ name: 'starting_job', label_trans: 'newsletter.starting_job', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({ name: 'finish_job', label_trans: 'newsletter.finish_job', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({ name: 'processing_job', label_trans: 'newsletter.processing_job', fieldtype: costanti.FieldType.boolean }),
|
||||
@@ -308,7 +312,11 @@ export const colTableIscrittiConacreis = [
|
||||
AddCol({ name: 'born_province', label_trans: 'reg.born_province', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'born_country', label_trans: 'reg.born_country', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'cell_phone', label_trans: 'reg.cell_phone', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'iscrizione_compilata', label_trans: 'reg.iscrizione_compilata', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({
|
||||
name: 'iscrizione_compilata',
|
||||
label_trans: 'reg.iscrizione_compilata',
|
||||
fieldtype: costanti.FieldType.boolean
|
||||
}),
|
||||
AddCol({ name: 'motivazioni', label_trans: 'reg.motivazioni', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'newsletter_on', label_trans: 'reg.newsletter_on', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({
|
||||
@@ -317,7 +325,11 @@ export const colTableIscrittiConacreis = [
|
||||
fieldtype: costanti.FieldType.string,
|
||||
}),
|
||||
AddCol({ name: 'cosa_potrei_offrire', label_trans: 'reg.cosa_potrei_offrire', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'cosa_vorrei_ricevere', label_trans: 'reg.cosa_vorrei_ricevere', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({
|
||||
name: 'cosa_vorrei_ricevere',
|
||||
label_trans: 'reg.cosa_vorrei_ricevere',
|
||||
fieldtype: costanti.FieldType.string
|
||||
}),
|
||||
AddCol({ name: 'altre_comunicazioni', label_trans: 'reg.altre_comunicazioni', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({
|
||||
name: 'come_ci_hai_conosciuto',
|
||||
@@ -361,7 +373,11 @@ export const colTableProducts = [
|
||||
AddCol({ name: 'after_price', label_trans: 'products.after_price' }),
|
||||
AddCol({ name: 'color', label_trans: 'products.color' }),
|
||||
AddCol({ name: 'size', label_trans: 'products.size' }),
|
||||
AddCol({ name: 'quantityAvailable', label_trans: 'products.quantityAvailable', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({
|
||||
name: 'quantityAvailable',
|
||||
label_trans: 'products.quantityAvailable',
|
||||
fieldtype: costanti.FieldType.number
|
||||
}),
|
||||
AddCol({ name: 'canBeShipped', label_trans: 'products.canBeShipped', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({ name: 'canBeBuyOnline', label_trans: 'products.canBeBuyOnline', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({ name: 'weight', label_trans: 'products.weight', fieldtype: costanti.FieldType.number }),
|
||||
@@ -435,7 +451,11 @@ const colnavepersistente = [
|
||||
AddCol({ name: '_id', label_trans: 'others.value' }),
|
||||
AddCol({ name: 'riga', label_trans: 'reg.riga' }),
|
||||
AddCol({ name: 'col', label_trans: 'reg.col' }),
|
||||
AddCol({ name: 'date_gift_chat_open', label_trans: 'dashboard.nave_in_partenza', fieldtype: costanti.FieldType.date }),
|
||||
AddCol({
|
||||
name: 'date_gift_chat_open',
|
||||
label_trans: 'dashboard.nave_in_partenza',
|
||||
fieldtype: costanti.FieldType.date
|
||||
}),
|
||||
AddCol({ name: 'date_start', label_trans: 'dashboard.nave_in_chiusura', fieldtype: costanti.FieldType.date }),
|
||||
AddCol({ name: 'link_chat', label_trans: 'reg.link_chat' }),
|
||||
AddCol({ name: 'provvisoria', label_trans: 'reg.provvisoria', fieldtype: costanti.FieldType.boolean }),
|
||||
@@ -701,7 +721,11 @@ export const fieldsTable = {
|
||||
AddCol({ name: 'deleted', label_trans: 'reg.deleted', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({ name: 'subaccount', label_trans: 'SubAccount', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({ name: 'navinonpresenti', label_trans: 'Navi Non Presenti', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({ name: 'non_voglio_imbarcarmi', label_trans: 'non_voglio_imbarcarmi', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({
|
||||
name: 'non_voglio_imbarcarmi',
|
||||
label_trans: 'non_voglio_imbarcarmi',
|
||||
fieldtype: costanti.FieldType.boolean
|
||||
}),
|
||||
AddCol({ name: 'username', label_trans: 'reg.username_short' }),
|
||||
AddCol({ name: 'name', label_trans: 'reg.name' }),
|
||||
AddCol({ name: 'surname', label_trans: 'reg.surname' }),
|
||||
@@ -1305,6 +1329,12 @@ export const fieldsTable = {
|
||||
export const func = {
|
||||
gettablesList() {
|
||||
const userStore = useUserStore()
|
||||
return fieldsTable.tablesList.filter((rec) => ((rec.onlyAdmin === userStore.isAdmin) || (!rec.onlyAdmin)) && (!rec.noshow))
|
||||
if (fieldsTable.tablesList) {
|
||||
const mylist = fieldsTable.tablesList.filter((rec) => ((rec.onlyAdmin === userStore.isAdmin) || (!rec.onlyAdmin)) && (!rec.noshow))
|
||||
|
||||
return mylist
|
||||
}
|
||||
|
||||
return []
|
||||
},
|
||||
}
|
||||
|
||||
@@ -2600,16 +2600,16 @@ export const tools = {
|
||||
if ('serviceWorker' in navigator) {
|
||||
options = {
|
||||
body: t('notification.subscribed'),
|
||||
icon: '/public/images/android-chrome-192x192.png',
|
||||
image: '/public/images/imglogonotif.png',
|
||||
icon: '/images/android-chrome-192x192.png',
|
||||
image: '/images/imglogonotif.png',
|
||||
dir: 'ltr',
|
||||
lang: 'enUs', // BCP 47,
|
||||
vibrate: [100, 50, 200],
|
||||
badge: '/public/images/android-chrome-192x192.png',
|
||||
badge: '/images/android-chrome-192x192.png',
|
||||
tag: 'confirm-notification',
|
||||
renotify: true, // if it's already sent, will Vibrate anyway
|
||||
actions: [
|
||||
{ action: 'confirm', title: t('dialog.ok'), icon: '/public/images/android-chrome-192x192.png' },
|
||||
{ action: 'confirm', title: t('dialog.ok'), icon: '/images/android-chrome-192x192.png' },
|
||||
// { action: 'cancel', title: 'Cancel', icon: '/statics/images/android-chrome-192x192.png', }
|
||||
],
|
||||
}
|
||||
@@ -2901,9 +2901,9 @@ export const tools = {
|
||||
|
||||
getimgev(ev: IEvents) {
|
||||
if (!!ev.img_small)
|
||||
return 'public/' + ev.img_small
|
||||
return '' + ev.img_small
|
||||
else if (!!ev.img)
|
||||
return 'public/' + ev.img
|
||||
return '' + ev.img
|
||||
else
|
||||
return ''
|
||||
},
|
||||
@@ -3504,7 +3504,7 @@ export const tools = {
|
||||
},
|
||||
|
||||
getpath(myvideo: string) {
|
||||
return 'public/video/' + func_tools.getLocale() + '/' + myvideo
|
||||
return 'video/' + func_tools.getLocale() + '/' + myvideo
|
||||
},
|
||||
mygetarrValDb(keystr: string, serv: boolean) {
|
||||
const globalStore = useGlobalStore()
|
||||
@@ -3574,15 +3574,14 @@ export const tools = {
|
||||
return mystr.replace(/\s+/g, '')
|
||||
},
|
||||
|
||||
copyStringToClipboard(mystr: string, show: boolean) {
|
||||
const $q = useQuasar()
|
||||
copyStringToClipboard(myq: any, mystr: string, show: boolean) {
|
||||
|
||||
copyToClipboard(mystr).then(() => {
|
||||
let msg = t('dialog.copyclipboard')
|
||||
if (show)
|
||||
msg += ' \'' + mystr + '\''
|
||||
|
||||
this.showNotif($q, msg)
|
||||
this.showNotif(myq, msg)
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
@@ -142,7 +142,7 @@ export const toolsext = {
|
||||
if (table === 'users') {
|
||||
if (keystr === 'profile') {
|
||||
if (subkey) {
|
||||
console.log('userStore.my.profile', userStore.my.profile, 'subkey', subkey, )
|
||||
// console.log('userStore.my.profile', userStore.my.profile, 'subkey', subkey, )
|
||||
// @ts-ignore
|
||||
return userStore.my.profile[subkey]
|
||||
}
|
||||
|
||||
@@ -674,7 +674,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
},
|
||||
|
||||
async loadTable(params: IParamsQuery) {
|
||||
// console.log('loadTable', params)
|
||||
console.log('loadTable', params)
|
||||
const userStore = useUserStore()
|
||||
|
||||
return Api.SendReq('/gettable', 'POST', params)
|
||||
|
||||
@@ -1,13 +1,6 @@
|
||||
<template xmlns:v-slot="http://www.w3.org/1999/XSL/Transform">
|
||||
<div class="q-gutter-sm q-pa-xs q-pb-md">
|
||||
|
||||
<CMyFieldDb
|
||||
:title="$t('reg.name')"
|
||||
table="users"
|
||||
mykey="name"
|
||||
:type="costanti.FieldType.string">
|
||||
</CMyFieldDb>
|
||||
|
||||
<CTitleBanner
|
||||
class="q-pa-xs" :title="$t('pages.profile')" bgcolor="bg-primary" clcolor="text-white"
|
||||
myclass="myshad" :canopen="true">
|
||||
|
||||
Reference in New Issue
Block a user