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) => {
- + - + - + แจ้งเตือน - +
- + - +