From 2c955de9001f0aee992746726cb0886ade2f2ffe Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Fri, 12 Jul 2024 13:35:15 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B9=81=E0=B8=81=E0=B9=89=20=20layout?= =?UTF-8?q?=20=E0=B8=AB=E0=B8=99=E0=B9=89=E0=B8=B2=E0=B8=AA=E0=B8=B4?= =?UTF-8?q?=E0=B8=99=E0=B8=84=E0=B9=89=E0=B8=B2=E0=B9=81=E0=B8=A5=E0=B8=B0?= =?UTF-8?q?=E0=B8=9A=E0=B8=A3=E0=B8=B4=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B9=83?= =?UTF-8?q?=E0=B8=AB=E0=B8=A1=E0=B9=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/04_product-service/MainPage.vue | 2730 +++++++++++---------- 1 file changed, 1447 insertions(+), 1283 deletions(-) diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index 2767ceb5..cf41e589 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -105,11 +105,12 @@ const stat = ref< color: 'pink' | 'purple' | 'green' | 'orange'; }[] >([ - { + { icon: 'mdi-folder', - count: 0, label: 'productAndService', + count: 0, + label: 'productAndService', mode: 'group', - color: 'pink' + color: 'pink', }, { icon: 'mdi-folder-table', @@ -118,18 +119,19 @@ const stat = ref< mode: 'type', color: 'purple', }, - { - icon: 'mdi-server-network', - count: 0, label: 'service', - mode: 'service', - color: 'orange' - + { + icon: 'mdi-server-network', + count: 0, + label: 'service', + mode: 'service', + color: 'orange', }, - { - icon: 'mdi-folder', - count: 0, label: 'product', - mode: 'product', - color: 'green' + { + icon: 'mdi-folder', + count: 0, + label: 'product', + mode: 'product', + color: 'green', }, ]); @@ -144,6 +146,7 @@ const drawerInfo = ref(false); const isEdit = ref(false); const modeView = ref(false); +const splitterModel = ref(25); const dialogInputForm = ref(false); const dialogProduct = ref(false); @@ -1154,9 +1157,6 @@ onMounted(async () => { text: 'manage', handler: () => { productMode.value = 'group'; - - - }, }, ]; @@ -1175,7 +1175,7 @@ watch(productMode, () => { text: 'manage', handler: () => { productMode.value = 'group'; - filterStat.value = [] + filterStat.value = []; }, }, ]; @@ -1188,7 +1188,7 @@ watch(productMode, () => { productMode.value = 'type'; filterStat.value = filterStat.value.filter((item) => { return item !== 'type'; - }) + }); }, }); } @@ -1295,66 +1295,213 @@ watch(inputSearchProductAndService, async () => { > -
-
- +
+ {{ $t('dataSum') }} + +
-
- +
+
+
+ -
-
- {{ $t('dataSum') }} - -
+ + - -
-
+ - -
-
-
-
- {{ $t('showing') }} -
-
- - - - - {{ v }} - - - - + + {{ v }} + + + + +
-
-
- {{ - $t('recordsPage', { - resultcurrentPage: - productAndServiceTab === 'product' - ? product?.length - : service?.length, - total: total, - }) - }} -
-
- +
+ {{ + $t('recordsPage', { + resultcurrentPage: + productAndServiceTab === 'product' + ? product?.length + : service?.length, + total: total, + }) + }} +
+
+ +
-
-
+ +