PASSAGGIO A VITE !
AGG. 1.1.23
This commit is contained in:
@@ -1,20 +1,22 @@
|
||||
import { defineComponent, onMounted, PropType, ref, watch, computed } from 'vue'
|
||||
import type { PropType } from 'vue';
|
||||
import { defineComponent, onMounted, ref, watch, computed } from 'vue'
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
import { ICatalog, IImgGallery, IOptGrid, IUserFields, IUserProfile } from 'model'
|
||||
import type { ICatalog, IOptGrid, IUserFields } from 'model';
|
||||
import { IImgGallery, IUserProfile } from 'model'
|
||||
import { costanti } from '@costanti'
|
||||
import { shared_consts } from '@/common/shared_vuejs'
|
||||
import { shared_consts } from '@src/common/shared_vuejs'
|
||||
import { fieldsTable } from '@store/Modules/fieldsTable'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { tools } from '@tools'
|
||||
import { toolsext } from '@store/Modules/toolsext'
|
||||
import { useQuasar } from 'quasar'
|
||||
import { useI18n } from '@/boot/i18n'
|
||||
import { CLabel } from '@/components/CLabel'
|
||||
import { CMyCardPopup } from '@/components/CMyCardPopup'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { CLabel } from '@src/components/CLabel'
|
||||
import { CMyCardPopup } from '@src/components/CMyCardPopup'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { useCalendarStore } from '@src/store/CalendarStore'
|
||||
import { useGlobalStore } from '@src/store/globalStore'
|
||||
|
||||
import { ICatProd, ICollana, IPublisher } from "@src/model/Products"
|
||||
import type { ICatProd, ICollana, IPublisher } from "@src/model/Products"
|
||||
import { useProducts } from '@src/store/Products'
|
||||
|
||||
export default defineComponent({
|
||||
@@ -44,7 +46,9 @@ export default defineComponent({
|
||||
opt: {
|
||||
type: Object as PropType<IOptGrid>,
|
||||
required: false,
|
||||
default: {},
|
||||
default: () => {
|
||||
return {}
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -79,9 +83,9 @@ export default defineComponent({
|
||||
|
||||
let linkpage = ''
|
||||
|
||||
let idpag = myrec.value.idPageAssigned
|
||||
const idpag = myrec.value.idPageAssigned
|
||||
if (idpag) {
|
||||
let mypage = globalStore.getPageById(idpag)
|
||||
const mypage = globalStore.getPageById(idpag)
|
||||
if (mypage)
|
||||
linkpage = mypage.path!
|
||||
}
|
||||
@@ -103,7 +107,7 @@ export default defineComponent({
|
||||
|
||||
collanestr.value = ''
|
||||
if (myrec.value.idCollane) {
|
||||
for (const idcollana of myrec.value.idCollane!) {
|
||||
for (const idcollana of myrec.value.idCollane) {
|
||||
const reccoll: ICollana = products.collane!.find((coll: ICollana) => coll.idCollana === idcollana)
|
||||
collanestr.value += reccoll.title + ' '
|
||||
}
|
||||
@@ -111,8 +115,8 @@ export default defineComponent({
|
||||
argomentistr.value = ''
|
||||
if (myrec.value.argomenti) {
|
||||
numprodtot.value = 0
|
||||
for (const arg of myrec.value.argomenti!) {
|
||||
const recargomento: ICatProd = products.catprods!.find((catprod: ICatProd) => catprod._id === arg)
|
||||
for (const arg of myrec.value.argomenti) {
|
||||
const recargomento: ICatProd = products.catprods.find((catprod: ICatProd) => catprod._id === arg)
|
||||
if (recargomento)
|
||||
argomentistr.value += recargomento.name + ' '
|
||||
numprodtot.value += products.getTotaliProdottiByIdCatProd(arg)
|
||||
@@ -122,9 +126,9 @@ export default defineComponent({
|
||||
|
||||
editorestr.value = ''
|
||||
if (myrec.value.editore) {
|
||||
for (const receditore of myrec.value.editore!) {
|
||||
const rectrovato: IPublisher = products.publishers!.find((editore: IPublisher) => editore._id === receditore)
|
||||
editorestr.value += rectrovato!.name + ' '
|
||||
for (const receditore of myrec.value.editore) {
|
||||
const rectrovato: IPublisher = products.publishers.find((editore: IPublisher) => editore._id === receditore)
|
||||
editorestr.value += rectrovato.name + ' '
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user