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