From 24e9dbc2a5b58879ae3ac8699ac58d60319a204f Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 12 Oct 2023 18:09:10 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82?= =?UTF-8?q?=20fecth=20=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1=E0=B8=B9?= =?UTF-8?q?=E0=B8=A5=E0=B9=80=E0=B8=A1=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=A5?= =?UTF-8?q?=E0=B9=87=E0=B8=AD=E0=B8=81=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1?= =?UTF-8?q?=E0=B8=B9=E0=B8=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../07_insignia/components/2_Manage/listManage.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/modules/07_insignia/components/2_Manage/listManage.vue b/src/modules/07_insignia/components/2_Manage/listManage.vue index 361ef0c4b..74ae0eb88 100644 --- a/src/modules/07_insignia/components/2_Manage/listManage.vue +++ b/src/modules/07_insignia/components/2_Manage/listManage.vue @@ -95,10 +95,11 @@ const fecthAgency = async () => { await http .get(config.API.insigniaAgency()) .then(async (res) => { - DataStore.agency = res.data.result; loadview.value = true; + DataStore.agency = res.data.result; if (roleDataStore.adminRole) { await fecthType(); // ถ้าไม่มีหนวยงานจะเรียกหน่วยงานทั้งหมด + } else { } }) .catch((err) => { @@ -323,9 +324,9 @@ const backToEditinsignia2Role = async (reason: string) => { }; // ล็อกข้อมูลรอบการเสนอขอ const requestSendNote = async () => { - var organization = await (DataStore.agency != null - ? DataStore.agency - : DataStore.typeOc); + // var organization = await (DataStore.agency != null + // ? DataStore.agency + // : DataStore.typeOc); dialogConfirm($q, async () => { showLoader(); await http @@ -336,7 +337,7 @@ const requestSendNote = async () => { success($q, "บันทึกสำเร็จ"); await fecthInsigniaByOc( round.value, - organization, + DataStore.typeOc, "officer", tab.value ); @@ -399,6 +400,7 @@ const uploadFile = async (event: any) => { +