ver 1.1.20:
- corretto campo foto che non compariva più. - sistemato i campi aggiuntivi e i richiesti. - migliorato la barra in alto di selezione. - aggiunto alcune icone.
This commit is contained in:
@@ -14,7 +14,7 @@ import { CProductCard } from '@src/components/CProductCard'
|
||||
import { CMySelect } from '@src/components/CMySelect'
|
||||
import { CContainerCatalogoCard } from '@src/components/CContainerCatalogoCard'
|
||||
import { CSelectUserActive } from '@src/components/CSelectUserActive'
|
||||
import { ICatalogo, IDimensioni, IFilterCatalogo, IMyScheda, IProdView, IProduct, ISchedaSingola, ISearchList } from 'model'
|
||||
import { IOptCatalogo, IDimensioni, IFilterCatalogo, IMyScheda, IProdView, IProduct, ISchedaSingola, ISearchList } from 'model'
|
||||
|
||||
|
||||
import { fieldsTable } from '@store/Modules/fieldsTable'
|
||||
@@ -25,7 +25,7 @@ export default defineComponent({
|
||||
emits: ['update:modelValue', 'updateCatalogo'],
|
||||
props: {
|
||||
modelValue: {
|
||||
type: Object as PropType<ICatalogo>,
|
||||
type: Object as PropType<IOptCatalogo>,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
@@ -42,7 +42,7 @@ export default defineComponent({
|
||||
|
||||
const pdfContent = ref(null);
|
||||
|
||||
const optcatalogo = ref(<ICatalogo>{ ...props.modelValue });
|
||||
const optcatalogo = ref(<IOptCatalogo>{ ...props.modelValue });
|
||||
|
||||
function updateCatalogoPadre() {
|
||||
console.log('catalogo.ts PADRE')
|
||||
@@ -51,7 +51,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
// Metodo per aggiornare optcatalogo
|
||||
const updateOptCatalogo = <K extends keyof ICatalogo>(key: K, value: ICatalogo[K]) => {
|
||||
const updateOptCatalogo = <K extends keyof IOptCatalogo>(key: K, value: IOptCatalogo[K]) => {
|
||||
optcatalogo.value[key] = value;
|
||||
updateCatalogoPadre()
|
||||
}
|
||||
@@ -780,14 +780,14 @@ export default defineComponent({
|
||||
function groupedPages(recscheda: ISchedaSingola) {
|
||||
return recscheda.arrProdToShow
|
||||
}
|
||||
function generateStyleCatalogo(optcatalogo: ICatalogo) {
|
||||
function generateStyleCatalogo(optcatalogo: IOptCatalogo) {
|
||||
|
||||
return {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
function generateStylePageScheda(optcatalogo: ICatalogo, scheda: IMyScheda) {
|
||||
function generateStylePageScheda(optcatalogo: IOptCatalogo, scheda: IMyScheda) {
|
||||
const marginTop = scheda.dimensioni?.pagina?.dimensioni?.margini?.top ? tools.adjustSize(optcatalogo, scheda.dimensioni?.pagina?.dimensioni?.margini?.top) : (tools.adjustSize(optcatalogo, optcatalogo.dimensioni_def?.pagina?.margini?.top) || '')
|
||||
const marginBottom = scheda.dimensioni?.pagina?.dimensioni?.margini?.bottom ? tools.adjustSize(optcatalogo, scheda.dimensioni?.pagina?.dimensioni?.margini?.bottom) : (tools.adjustSize(optcatalogo, optcatalogo.dimensioni_def?.pagina?.margini?.bottom) || '')
|
||||
const marginLeft = scheda.dimensioni?.pagina?.dimensioni?.margini?.left ? tools.adjustSize(optcatalogo, scheda.dimensioni?.pagina?.dimensioni?.margini?.left) : (tools.adjustSize(optcatalogo, optcatalogo.dimensioni_def?.pagina?.margini?.left) || '')
|
||||
@@ -835,7 +835,7 @@ export default defineComponent({
|
||||
};
|
||||
}
|
||||
|
||||
function generateStyleByPageDim(optcatalogo: ICatalogo, mypage: IDimensioni) {
|
||||
function generateStyleByPageDim(optcatalogo: IOptCatalogo, mypage: IDimensioni) {
|
||||
const marginTop = mypage!.margini?.top ? tools.adjustSize(optcatalogo, mypage!.margini?.top) : (tools.adjustSize(optcatalogo, optcatalogo.dimensioni_def?.pagina?.margini?.top) || '')
|
||||
const marginBottom = mypage!.margini?.bottom ? tools.adjustSize(optcatalogo, mypage!.margini?.bottom) : (tools.adjustSize(optcatalogo, optcatalogo.dimensioni_def?.pagina?.margini?.bottom) || '')
|
||||
const marginLeft = mypage!.margini?.left ? tools.adjustSize(optcatalogo, mypage!.margini?.left) : (tools.adjustSize(optcatalogo, optcatalogo.dimensioni_def?.pagina?.margini?.left) || '')
|
||||
@@ -883,10 +883,10 @@ export default defineComponent({
|
||||
};
|
||||
}
|
||||
|
||||
function getWidthPagina(optcatalogo: ICatalogo, scheda: IMyScheda) {
|
||||
function getWidthPagina(optcatalogo: IOptCatalogo, scheda: IMyScheda) {
|
||||
return scheda.dimensioni?.pagina?.dimensioni?.size?.width ? tools.adjustSize(optcatalogo, scheda.dimensioni?.pagina?.dimensioni?.size?.width) : (tools.adjustSize(optcatalogo, optcatalogo.dimensioni_def?.pagina?.size?.width) ?? '')
|
||||
}
|
||||
function getHeightPagina(optcatalogo: ICatalogo, scheda: IMyScheda) {
|
||||
function getHeightPagina(optcatalogo: IOptCatalogo, scheda: IMyScheda) {
|
||||
return scheda.dimensioni?.pagina?.dimensioni?.size?.height ? tools.adjustSize(optcatalogo, scheda.dimensioni?.pagina?.dimensioni?.size?.height) : (tools.adjustSize(optcatalogo, optcatalogo.dimensioni_def?.pagina?.size?.height) ?? '')
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
<div v-if="isDebugOn" class="bg-red text-white">
|
||||
<span v-if="!!tools.isLogged()">Logged: {{ tools.isLogged() }}</span> -
|
||||
<span v-if="!!tools.isUserOk()">UserOk: {{ tools.isUserOk() }}</span> -
|
||||
<span>tools.isEmailVerified(): {{ tools.isEmailVerified() }}</span> -
|
||||
<span>tools.getLinkUserTelegramByUser(): {{ tools.getLinkUserTelegramByUser(userStore.userprofile) }}</span> -
|
||||
<span v-if="caricato">caricato: {{ caricato }}</span> -
|
||||
<span v-if="userStore.userprofile"
|
||||
>userStore.userprofile: {{ userStore.userprofile.username }}</span
|
||||
@@ -827,12 +829,12 @@
|
||||
v-if="userStore.isFacilitatore || userStore.isAdmin"
|
||||
color="green"
|
||||
:icon="
|
||||
userStore.userprofile.profile.da_contattare
|
||||
userStore.userprofile.profile && userStore.userprofile.profile.da_contattare
|
||||
? 'fas fa-user-slash'
|
||||
: 'fas fa-comment'
|
||||
"
|
||||
:label="
|
||||
userStore.userprofile.profile.da_contattare
|
||||
userStore.userprofile.profile && userStore.userprofile.profile.da_contattare
|
||||
? $t('profile.togli_da_contattare')
|
||||
: $t('profile.da_contattare')
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user