From c0008e1c18bc52b639e0f7762798fcc87bcf7489 Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Wed, 17 Apr 2024 11:33:41 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20filter=20=E0=B8=97=E0=B8=B1=E0=B9=89?= =?UTF-8?q?=E0=B8=87=E0=B8=AB=E0=B8=A1=E0=B8=94=20=E0=B8=AA=E0=B8=B2?= =?UTF-8?q?=E0=B8=82=E0=B8=B2=E0=B9=83=E0=B8=AB=E0=B8=8D=E0=B9=88=20?= =?UTF-8?q?=E0=B8=AA=E0=B8=B2=E0=B8=82=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/01_branch-management/MainPage.vue | 64 +++++++++++++-------- 1 file changed, 39 insertions(+), 25 deletions(-) diff --git a/src/pages/01_branch-management/MainPage.vue b/src/pages/01_branch-management/MainPage.vue index ed2bbdb6..ff2c8a35 100644 --- a/src/pages/01_branch-management/MainPage.vue +++ b/src/pages/01_branch-management/MainPage.vue @@ -60,7 +60,7 @@ onMounted(async () => { watch(locale, () => { console.log(locale.value); }); - +const fieldBranch = ref(['all', 'branchHQLabel', 'branchLabel']); const fieldDisplay = ref([ 'branchLabelName', 'branchLabelTel', @@ -69,6 +69,14 @@ const fieldDisplay = ref([ 'branchLabelStatus', ]); const fieldSelected = ref(fieldDisplay.value); +const fieldSelectedBranch = ref<{ + label: string; + value: string; +}>({ + label: 'ทั้งหมด', + value: 'all', +}); + const stats = ref<{ count: number; label: string }[]>([]); const defaultFormData = { @@ -155,16 +163,12 @@ function clearData() {
@@ -186,21 +190,31 @@ function clearData() {