corretto altre cose (workbox mancante)
This commit is contained in:
@@ -107,6 +107,8 @@ export default defineComponent({
|
||||
|
||||
const allColumns = ref([]);
|
||||
|
||||
const isVisibleEditBtn = ref(false)
|
||||
|
||||
// Colonne della tabella
|
||||
const allColumns_Raccolta = ref([
|
||||
{ name: 'pos', label: 'Ind', field: 'pos', align: 'left', style: 'width: 50px', notsortable: true },
|
||||
@@ -208,8 +210,10 @@ export default defineComponent({
|
||||
|
||||
if (props.table === 'products') {
|
||||
allColumns.value = allColumns_Catalog.value;
|
||||
isVisibleEditBtn.value = true
|
||||
} else if (props.table === 'catalogs') {
|
||||
allColumns.value = allColumns_Raccolta.value;
|
||||
isVisibleEditBtn.value = false
|
||||
}
|
||||
|
||||
optionscatalogo.value = {
|
||||
@@ -783,6 +787,10 @@ export default defineComponent({
|
||||
return image;
|
||||
}
|
||||
|
||||
function isProduct() {
|
||||
return props.table === 'products'
|
||||
}
|
||||
|
||||
onMounted(mounted);
|
||||
|
||||
return {
|
||||
@@ -825,6 +833,8 @@ export default defineComponent({
|
||||
exportToCSV,
|
||||
isSortable,
|
||||
getImageByElement,
|
||||
isVisibleEditBtn,
|
||||
isProduct,
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user