From f395ae40d6c952125031a1fea880cc854ec9723c Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 2 Sep 2024 14:48:23 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=AD=E0=B8=AD=E0=B8=81=E0=B8=84=E0=B8=B3?= =?UTF-8?q?=E0=B8=AA=E0=B8=B1=E0=B9=88=E0=B8=87=20=3D=3D>=20=E0=B8=9B?= =?UTF-8?q?=E0=B8=A3=E0=B8=B1=E0=B8=9A=20route.meta.Key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Dialogs/DialogOrgSelectOneStep.vue | 1 - .../10_order/components/step/step03.vue | 42 +++++++------------ src/modules/10_order/router.ts | 6 +-- 3 files changed, 17 insertions(+), 32 deletions(-) diff --git a/src/components/Dialogs/DialogOrgSelectOneStep.vue b/src/components/Dialogs/DialogOrgSelectOneStep.vue index 12e44f743..6fbf932c1 100644 --- a/src/components/Dialogs/DialogOrgSelectOneStep.vue +++ b/src/components/Dialogs/DialogOrgSelectOneStep.vue @@ -234,7 +234,6 @@ async function getActive() { .get(config.API.activeOrganization) .then(async (res) => { const data = res.data.result; - formActive.activeId = data.activeId; formActive.activeName = data.activeName; formActive.draftId = data.draftId; diff --git a/src/modules/10_order/components/step/step03.vue b/src/modules/10_order/components/step/step03.vue index 58ffe69a2..d9996cef3 100644 --- a/src/modules/10_order/components/step/step03.vue +++ b/src/modules/10_order/components/step/step03.vue @@ -47,7 +47,9 @@ const mixin = useCounterMixin(); //เรียกฟังก์ชันกล const { dialogRemove, messageError, showLoader, hideLoader, success } = mixin; const route = useRoute(); -const checkRoutePermisson = ref(route.name == "disciplineOrderDatailOnly"); +const checkRoutePermisson = ref( + route.name == "disciplineOrderDatailOnly" +); const myForm = ref(null); const filterRef = ref(); const filter = ref(""); @@ -256,7 +258,6 @@ const clickClose = async () => { }; // เปิด popup เพิ่มข้อมูล const clickAdd = async () => { - await nodeTree(); selected.value = ""; rowsModal.value = []; selectedModal.value = []; @@ -269,29 +270,7 @@ const clickAdd = async () => { const clickDelete = (id: string) => { dialogRemove($q, () => deleteData(id)); }; -// โหลดโครงสร้าง tree -const nodeTree = async () => { - showLoader(); - await http - .get(config.API.profileOrganizRoot) - .then((res) => { - const data = res.data.result; - nodesTree.value = data; - if (data.length > 0) { - expanded.value = [data[0].id]; - } - }) - .catch((e) => { - messageError($q, e); - }) - .finally(() => { - hideLoader(); - }); -}; -// เลือกหน่วยงาน -const onSelected = async (id: string) => { - await listModal(id); -}; + // ลบข้อมูลรายชื่อ const deleteData = async (id: string) => { await http @@ -365,7 +344,14 @@ const fetchOrder = async (id: string) => {
- + เพิ่มข้อมูล @@ -429,7 +415,7 @@ const fetchOrder = async (id: string) => { { - +