From 4511137cc7e74388caddda692b112ac9350edca6 Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Fri, 5 Jul 2024 11:46:50 +0700 Subject: [PATCH] =?UTF-8?q?refactor:=20=E0=B9=80=E0=B8=9E=E0=B8=B4?= =?UTF-8?q?=E0=B9=88=E0=B8=A1=20filter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/01_branch-management/MainPage.vue | 54 ++++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/src/pages/01_branch-management/MainPage.vue b/src/pages/01_branch-management/MainPage.vue index 74791a1f..21b3bc20 100644 --- a/src/pages/01_branch-management/MainPage.vue +++ b/src/pages/01_branch-management/MainPage.vue @@ -909,7 +909,43 @@ watch(locale, () => { { 'app-text-muted': props.row.status === 'INACTIVE', }" :props="props" + @click=" + () => { + if (props.row.isHeadOffice) { + fieldSelectedBranch.value = ''; + inputSearch = ''; + currentHq = { + id: props.row.id, + code: props.row.code, + }; + beforeBranch = { + id: '', + code: '', + }; + } + } + " >