new version Visualizzazione Service

This commit is contained in:
Surya Paolo
2023-04-04 15:27:03 +02:00
parent 0365c58326
commit edcd244397
35 changed files with 841 additions and 55 deletions

View File

@@ -34,9 +34,9 @@ export default defineComponent({
default: null,
},
idRec: {
type: Number,
type: String,
required: false,
default: 0
default: ''
},
nopopup: {
type: Boolean,
@@ -66,7 +66,7 @@ export default defineComponent({
function load() {
// Carica il profilo di quest'utente
if (props.idRec > 0) {
if (props.idRec) {
userStore.loadGeneric(props.table, props.idRec, idnotif.value).then((ris) => {
myrec.value = ris
notifStore.setAsRead(idnotif.value)

View File

@@ -1,6 +1,6 @@
<template>
<q-card class="dialog_card q-mb-lg" v-if="myrec._id">
<q-card class="dialog_card q-mb-lg" v-if="myrec && myrec._id">
<q-footer
v-if="!nopopup"