diff --git a/src/modules/02_organizationalNew/components/listView.vue b/src/modules/02_organizationalNew/components/listView.vue index d0b0a938c..365ad22db 100644 --- a/src/modules/02_organizationalNew/components/listView.vue +++ b/src/modules/02_organizationalNew/components/listView.vue @@ -26,13 +26,16 @@ const store = useOrganizational(); const $q = useQuasar(); const { showLoader, hideLoader, messageError } = useCounterMixin(); -const nodeTree = ref(); // ข้อมูล Tree +/** props*/ const historyId = defineModel("historyId", { required: true }); // id ประวัติโครงสร้าง const count = defineModel("count", { required: true }); + +const nodeTree = ref(); // ข้อมูล Tree const nodeId = ref(""); // id ของ Tree const orgLevel = ref(0); // levelTree const isLoad = ref(false); // loadTable const selected = ref(""); + const reqMaster = reactive({ id: "", type: 0, @@ -51,7 +54,6 @@ const posMaster = ref([]); */ async function fetchDataTree(id: string) { showLoader(); - await http .get(config.API.orgByid(id.toString())) .then((res) => { @@ -119,6 +121,7 @@ async function fetchDataTable(id: string, level: number, action: boolean) { }); } +/** funcion ค้นหาข้อมูลใน Table*/ async function filterKeyword() { reqMaster.page = 1; action1.value === false && @@ -155,6 +158,7 @@ watch( } ); +/** callblck function ทำการ fetch ข้อมูล Table เมื่อมีการเปลี่ยนหน้า*/ watch( [() => reqMaster.page, () => reqMaster.pageSize, () => reqMaster.isAll], () => { @@ -197,45 +201,49 @@ watch(
- - -
-
ตำแหน่งทั้งหมด
- - -
-
-
ตำแหน่งที่มีคนครอง
- - -
-
-
ตำแหน่งว่าง
- - -
-
+ + +
+
ตำแหน่งทั้งหมด
+ + +
+
+
ตำแหน่งที่มีคนครอง
+ + +
+
+
ตำแหน่งว่าง
+ + +
+
- +
- +

กรุณาเลือกโครงสร้าง

diff --git a/src/modules/02_organizationalNew/components/mainTree.vue b/src/modules/02_organizationalNew/components/mainTree.vue index e20abcf03..156b02ce6 100644 --- a/src/modules/02_organizationalNew/components/mainTree.vue +++ b/src/modules/02_organizationalNew/components/mainTree.vue @@ -1,26 +1,34 @@