From 9ac9fa6322d0ff4dbe207f121720542d2eed26ff Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 12 Sep 2024 16:50:52 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82?= =?UTF-8?q?=E0=B8=84=E0=B8=B3=E0=B8=9C=E0=B8=B4=E0=B8=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/05_command/views/lists.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/modules/05_command/views/lists.vue b/src/modules/05_command/views/lists.vue index cf0ef852..56d7cb98 100644 --- a/src/modules/05_command/views/lists.vue +++ b/src/modules/05_command/views/lists.vue @@ -59,13 +59,13 @@ const tabs = ref([ }, ]); -const dataCategory = ref([]); //ข้อมูล หมดหมู่ -const categoryOP = ref([]); // options หมดหมู่ +const dataCategory = ref([]); //ข้อมูล หมวดหมู่ +const categoryOP = ref([]); // options หมวดหมู่ const idOrder = ref(""); // Id คำสั่ง const activeOrderId = ref(""); // Id คำสั่งที่เลือก const name = ref(""); // ชื่อคำสั่ง -const category = ref(""); // หมดหมู่ +const category = ref(""); // หมวดหมู่ const listOrder = ref([]); // list คำสั่ง const status = ref(false); // สถานะ const isEdit = ref(false); //เก็บ true/false เช็คแก้ไข @@ -158,6 +158,11 @@ async function fetchOrderType() { }); } +/** + * ฟังก์ชั่นค้นหาข้อมูลใน Select หมวดหมู่ + * @param val คำค้นหา + * @param update ฟังก์ชั่นค้นหา + */ function filterSelector(val: string, update: Function) { update(() => { category.value = val ? "" : category.value;