diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index 762c9602d..93535a0de 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -98,6 +98,7 @@ const orders = ref(parseOrder(routeQuery.filter?.order)); const CrudModelRef = ref({}); const showForm = ref(false); const splittedColumns = ref({ columns: [] }); +const columnsVisibilitySkiped = ref(); const tableModes = [ { icon: 'view_column', @@ -117,6 +118,12 @@ onMounted(() => { mode.value = quasar.platform.is.mobile ? DEFAULT_MODE : $props.defaultMode; stateStore.rightDrawer = true; setUserParams(route.query[$props.searchUrl]); + columnsVisibilitySkiped.value = [ + ...splittedColumns.value.columns + .filter((c) => c.visible == false) + .map((c) => c.name), + ...['tableActions'], + ]; }); watch( @@ -137,10 +144,6 @@ const rowClickFunction = computed(() => { }); const isTableMode = computed(() => mode.value == TABLE_MODE); -const columnsVisibilitySkiped = computed(() => [ - ...splittedColumns.value.columns.filter((c) => c.visible == false).map((c) => c.name), - ...['tableActions'], -]); function setUserParams(watchedParams) { if (!watchedParams) return; diff --git a/src/components/ui/VnSubToolbar.vue b/src/components/ui/VnSubToolbar.vue index df6fcbcb7..cfefe98a7 100644 --- a/src/components/ui/VnSubToolbar.vue +++ b/src/components/ui/VnSubToolbar.vue @@ -1,5 +1,5 @@ + + diff --git a/src/pages/Supplier/Card/SupplierSummary.vue b/src/pages/Supplier/Card/SupplierSummary.vue index 9337724b0..43b8964ff 100644 --- a/src/pages/Supplier/Card/SupplierSummary.vue +++ b/src/pages/Supplier/Card/SupplierSummary.vue @@ -1,5 +1,5 @@