From e67b3066c5fba43f00da4875809a1ac267ba3f9d Mon Sep 17 00:00:00 2001 From: waruneeta Date: Fri, 29 Sep 2023 15:08:39 +0700 Subject: [PATCH] =?UTF-8?q?fix=20download=20excel=20=E0=B9=83=E0=B8=99?= =?UTF-8?q?=E0=B8=88=E0=B8=B1=E0=B8=94=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=84?= =?UTF-8?q?=E0=B8=B3=E0=B8=82=E0=B8=AD=E0=B8=82=E0=B8=AD=E0=B8=87=E0=B9=80?= =?UTF-8?q?=E0=B8=84=E0=B8=A3=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=87=E0=B8=A3?= =?UTF-8?q?=E0=B8=B2=E0=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../07_insignia/components/2_Manage/Tab1.vue | 607 ++++-------------- 1 file changed, 136 insertions(+), 471 deletions(-) diff --git a/src/modules/07_insignia/components/2_Manage/Tab1.vue b/src/modules/07_insignia/components/2_Manage/Tab1.vue index af9bac3ae..9f67d4aec 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab1.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab1.vue @@ -347,17 +347,17 @@ const fecthlistperson = async (id: string) => { const clickAdd = async () => { dataPerson.id ? await myForm.value!.validate().then((result: boolean) => { - if (result) { - dialogConfirm( - $q, - async () => { - await addlistperson(dataPerson.id); - }, - "ยืนยันการเพิ่มรายชื่อคนที่ยื่นขอพระราชทานเครื่องราชฯ", - "ต้องการยืนยันการเพิ่มรายชื่อคนที่ยื่นขอพระราชทานเครื่องราชฯ นี้หรือไม่?" - ); - } - }) + if (result) { + dialogConfirm( + $q, + async () => { + await addlistperson(dataPerson.id); + }, + "ยืนยันการเพิ่มรายชื่อคนที่ยื่นขอพระราชทานเครื่องราชฯ", + "ต้องการยืนยันการเพิ่มรายชื่อคนที่ยื่นขอพระราชทานเครื่องราชฯ นี้หรือไม่?" + ); + } + }) : dialogMessageNotify($q, "กรุณาเลือกราชชื่อที่ต้องการเพิ่ม"); }; //เพิ่มราชชื่อข้าราชการ @@ -416,11 +416,10 @@ const downloadFileexcel = async () => { showLoader(); await http .put(config.API.insigniaDowanload(DataStore.requestId), { - responseType: "blob", profileType: DataStore.employeeClass == "all" ? null : DataStore.employeeClass, InsigniaId: DataStore.typeinsignia == "all" ? null : findInsigniaId.id, - }) + }, { responseType: "blob" }) .then(async (res) => { await downloadFile( res, @@ -696,221 +695,100 @@ const clearInsigniaFilters = (name: string) => {
- - + + " @filter="(inputValue: any, + doneFn: Function) => filterSelector(inputValue, doneFn, 'typeinsigniaOptions' + )"> - -
- + " class="cursor-pointer" /> + + +
+
- + ดาวน์โหลด - + เพิ่ม
- + - +
- +
@@ -1096,14 +898,8 @@ const clearInsigniaFilters = (name: string) => { เพิ่มรายชื่อ - + @@ -1112,49 +908,24 @@ const clearInsigniaFilters = (name: string) => { - + - + @@ -1184,71 +948,28 @@ const clearInsigniaFilters = (name: string) => {
- +
- +
- +
- + ]" />
- +
@@ -1270,42 +991,18 @@ const clearInsigniaFilters = (name: string) => { - +
- +
- + บันทึก @@ -1315,59 +1012,27 @@ const clearInsigniaFilters = (name: string) => {
- + - + - + แจ้งเตือน - +
- + - +