From 9c3c545d02d9e4d941429beaaa644f0b81b9fed7 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 27 Nov 2024 09:35:15 +0700 Subject: [PATCH] =?UTF-8?q?fix=20=E0=B8=84=E0=B8=B3=E0=B8=AA=E0=B8=B1?= =?UTF-8?q?=E0=B9=88=E0=B8=87=E0=B9=81=E0=B8=A5=E0=B8=B0=E0=B8=95=E0=B9=89?= =?UTF-8?q?=E0=B8=99=E0=B9=81=E0=B8=9A=E0=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/05_command/views/lists.vue | 41 ++++++++++++++++++-------- 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/src/modules/05_command/views/lists.vue b/src/modules/05_command/views/lists.vue index 93986e71..ef294800 100644 --- a/src/modules/05_command/views/lists.vue +++ b/src/modules/05_command/views/lists.vue @@ -73,6 +73,7 @@ const isEdit = ref(false); //เก็บ true/false เช็คแก const dialogFormCommand = ref(false); // model คำสั่ง const dataTemplateDetail = ref(); +const keyword = ref(""); const page = ref(1); // หน้า const pageSize = ref(13); // จำนวนข้อมูล const maxPage = ref(0); // จำนวนหน้า @@ -88,6 +89,7 @@ async function fetchCommandType() { page: page.value, pageSize: pageSize.value, isActive: isActive.value, + search: keyword.value, }, }) .then(async (res) => { @@ -272,21 +274,34 @@ onMounted(async () => {
-
+ + + + + -
-
- {{ `${isActive ? `ใช้งาน` : `ไม่ใช้งาน`}` }} - -
+
+ {{ + `${isActive ? `ใช้งาน` : `ไม่ใช้งาน`}` + }} +
-
+
+