From 069ea1002cba8bb21fcdf0cac2c6c6a8fca8df9c Mon Sep 17 00:00:00 2001 From: Viet An Date: Thu, 11 Jun 2026 11:50:11 +0700 Subject: [PATCH] changes --- app/components/TopMenu.vue | 6 +- .../application/ApplicationImage.vue | 20 -- app/components/datatable/ContextMenu.vue | 27 +-- app/components/datatable/CreateTemplate.vue | 58 +++-- app/components/datatable/DataTable.vue | 8 +- app/components/datatable/DataView.vue | 7 +- app/components/datatable/FormatOption.vue | 24 +- app/components/datatable/ModelInfo.vue | 221 ------------------ app/components/datatable/NewField.vue | 5 +- app/components/datatable/PivotDataView.vue | 6 +- app/components/datatable/ScrollBox.vue | 120 ---------- app/components/datatable/TableOption.vue | 7 +- app/components/datatable/TableSetting.vue | 6 +- app/components/parameter/ImportData.vue | 6 +- app/layouts/default.vue | 10 +- app/plugins/00-datatable.js | 17 -- app/plugins/02-connection.js | 14 +- app/plugins/03-api-loader.js | 19 +- app/plugins/04-components.js | 2 - app/stores/index.js | 3 +- 20 files changed, 112 insertions(+), 474 deletions(-) delete mode 100644 app/components/application/ApplicationImage.vue delete mode 100644 app/components/datatable/ModelInfo.vue diff --git a/app/components/TopMenu.vue b/app/components/TopMenu.vue index 8cbadfe..d35a92b 100644 --- a/app/components/TopMenu.vue +++ b/app/components/TopMenu.vue @@ -128,6 +128,7 @@ const emit = defineEmits(["changeTab"]); const { $find, $filter, $store, $snackbar } = useNuxtApp(); const lang = computed(() => $store.lang); const menu = $filter($store.common, { category: "topmenu" }); +const submenus = $filter($store.common, { category: "submenu" }); // if($store.rights.length>0) { // menu = menu.filter(v=>$findIndex($store.rights, {setting: v.id})>=0) // } @@ -185,8 +186,9 @@ function openProfile() { title: $store.lang === "vi" ? "Thông tin cá nhân" : "User profile", }); } -const found = route.query.tab && $find(menu, { code: route.query.tab }); -if (found || currentTab.value) changeTab(found || currentTab.value); +const foundTab = route.query.tab && $find(menu, { code: route.query.tab }); +const foundSub = route.query.subtab && $find(submenus, { code: route.query.subtab }); +if (foundTab || currentTab.value) changeTab(foundTab || currentTab.value, foundSub); onMounted(() => { if (!$store.login) return; diff --git a/app/components/application/ApplicationImage.vue b/app/components/application/ApplicationImage.vue deleted file mode 100644 index 801548c..0000000 --- a/app/components/application/ApplicationImage.vue +++ /dev/null @@ -1,20 +0,0 @@ - - - diff --git a/app/components/datatable/ContextMenu.vue b/app/components/datatable/ContextMenu.vue index ff73ea2..b790e0e 100644 --- a/app/components/datatable/ContextMenu.vue +++ b/app/components/datatable/ContextMenu.vue @@ -1,5 +1,5 @@