- sistemato timeout corto
- corretto errori sulla generazione del PDF - corretto alcune directory - corretto fs.promise - corretto CORS !
This commit is contained in:
@@ -237,9 +237,8 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
return null;
|
||||
},
|
||||
|
||||
sovrascriviPaginaDefaultFromTemplate:
|
||||
sovrascriviPaginaDefaultFromTemplate:
|
||||
(state: IGlobalState) => (idTemplate: string, origDimensioni: IDimensioni) => {
|
||||
|
||||
const myfindelem = state.myelems.find((myelem: IMyElem) => myelem._id === idTemplate);
|
||||
|
||||
const linkIdTemplate = origDimensioni.linkIdTemplate;
|
||||
@@ -261,27 +260,25 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
return null;
|
||||
},
|
||||
|
||||
sovrascriviAreadistampaFromTemplate:
|
||||
(state: IGlobalState) => (idTemplate: string, optCatalogo: IOptCatalogo) => {
|
||||
sovrascriviAreadistampaFromTemplate: (state: IGlobalState) => (idTemplate: string, optCatalogo: IOptCatalogo) => {
|
||||
const myfindelem = state.myelems.find((myelem: IMyElem) => myelem._id === idTemplate);
|
||||
|
||||
const myfindelem = state.myelems.find((myelem: IMyElem) => myelem._id === idTemplate);
|
||||
const linkIdTemplate = optCatalogo.print_linkIdTemplate;
|
||||
|
||||
const linkIdTemplate = optCatalogo.print_linkIdTemplate;
|
||||
if (myfindelem) {
|
||||
const myelemtocopy = tools.jsonCopy(myfindelem);
|
||||
|
||||
if (myfindelem) {
|
||||
const myelemtocopy = tools.jsonCopy(myfindelem);
|
||||
if (myelemtocopy) {
|
||||
// myelemtocopy.scheda._id = origScheda.scheda?._id;
|
||||
myelemtocopy.catalogo.print_isTemplate = false;
|
||||
myelemtocopy.catalogo.print_linkIdTemplate = linkIdTemplate;
|
||||
|
||||
if (myelemtocopy) {
|
||||
// myelemtocopy.scheda._id = origScheda.scheda?._id;
|
||||
myelemtocopy.catalogo.print_isTemplate = false;
|
||||
myelemtocopy.catalogo.print_linkIdTemplate = linkIdTemplate;
|
||||
|
||||
return myelemtocopy.catalogo;
|
||||
}
|
||||
return myelemtocopy.catalogo;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
},
|
||||
return null;
|
||||
},
|
||||
|
||||
// conta: (state: IGlobalState) => { state.conta },
|
||||
// listatodo: (state: IGlobalState) => { state.listatodo },
|
||||
@@ -1451,6 +1448,19 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
return error;
|
||||
});
|
||||
},
|
||||
async loadPageTestLungo(timeout) {
|
||||
console.log('loadPageTestLungo');
|
||||
|
||||
const obj = { test: 'OK! Versione Client: ' + tools.getvers(), timeout };
|
||||
|
||||
return Api.SendReq('/api/test-lungo', 'POST', obj, false, false, 0, 5000, null, null, { timeout })
|
||||
.then((res) => {
|
||||
return res;
|
||||
})
|
||||
.catch((error) => {
|
||||
throw error;
|
||||
});
|
||||
},
|
||||
|
||||
async saveTable(mydata: any) {
|
||||
// console.log('saveTable', mydata)
|
||||
@@ -2523,7 +2533,6 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
areadistampa: tools.resetRecIAreaDiStampa(null),
|
||||
print_isTemplate: false,
|
||||
print_linkIdTemplate: '',
|
||||
|
||||
};
|
||||
},
|
||||
createRaccoltaCataloghiVuoto(): IOptCatalogo {
|
||||
|
||||
Reference in New Issue
Block a user