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 ? `ใช้งาน` : `ไม่ใช้งาน`}` + }} +
-
+
+