From b7d9555b87fddef24238dda69dc6857c5b4f72c6 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Fri, 6 Feb 2026 17:05:13 +0700 Subject: [PATCH 1/5] add code show salary history --- src/modules/04_registryPerson/stores/salary.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/04_registryPerson/stores/salary.ts b/src/modules/04_registryPerson/stores/salary.ts index a5a9d64a8..834504cd0 100644 --- a/src/modules/04_registryPerson/stores/salary.ts +++ b/src/modules/04_registryPerson/stores/salary.ts @@ -5,7 +5,7 @@ import type { DataOption } from "@/modules/04_registryPerson/interface/index/Mai export const useSalaryDataStore = defineStore("salatyDataStore", () => { // commandCode ขอตำแหน่ง - const salaryCode = ref([5, 6, 7]); + const salaryCode = ref([5, 6, 7, 19]); const commandCodeData = ref([]); const posTypeData = ref([]); //รายการประเภทตำแหน่ง | กลุ่มงาน From 34217aff118305de7d34358469def7a872e4d80a Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Fri, 6 Feb 2026 17:33:38 +0700 Subject: [PATCH 2/5] fix --- src/modules/04_registryPerson/views/detailView.vue | 1 - src/modules/22_issues/interface/Main.ts | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/modules/04_registryPerson/views/detailView.vue b/src/modules/04_registryPerson/views/detailView.vue index e8f22dc1f..7e8c150aa 100644 --- a/src/modules/04_registryPerson/views/detailView.vue +++ b/src/modules/04_registryPerson/views/detailView.vue @@ -22,7 +22,6 @@ import type { DataOptionSys, } from "@/modules/04_registryPerson/interface/index/Main"; import type { ResponseObject } from "@/modules/04_registryPerson/interface/response/Profile"; -import { s } from "@fullcalendar/core/internal-common"; /** importComponents*/ const CardNotPermission = defineAsyncComponent( diff --git a/src/modules/22_issues/interface/Main.ts b/src/modules/22_issues/interface/Main.ts index 56c4b46de..8e6fc9a3f 100644 --- a/src/modules/22_issues/interface/Main.ts +++ b/src/modules/22_issues/interface/Main.ts @@ -1,5 +1,3 @@ -import type { D } from "@fullcalendar/core/internal-common"; - interface Options { label: string; value: string; From 188d12f34b76600a530054091f36d8188466aefd Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Fri, 6 Feb 2026 20:44:14 +0700 Subject: [PATCH 3/5] =?UTF-8?q?=E0=B9=80=E0=B8=9B=E0=B8=B4=E0=B8=94?= =?UTF-8?q?=E0=B8=9B=E0=B8=B8=E0=B9=88=E0=B8=A1=E0=B9=81=E0=B8=81=E0=B9=89?= =?UTF-8?q?=E0=B9=84=E0=B8=82=E0=B9=80=E0=B8=9B=E0=B9=89=E0=B8=B2=E0=B8=A1?= =?UTF-8?q?=E0=B8=B2=E0=B8=A2=E0=B8=95=E0=B8=B2=E0=B8=A1=E0=B9=81=E0=B8=9C?= =?UTF-8?q?=E0=B8=99=20=E0=B8=82=E0=B8=AD=E0=B8=87=E0=B8=9C=E0=B8=B9?= =?UTF-8?q?=E0=B9=89=E0=B9=80=E0=B8=81=E0=B8=B5=E0=B9=88=E0=B8=A2=E0=B8=A7?= =?UTF-8?q?=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=87=E0=B8=AA=E0=B9=88=E0=B8=A7?= =?UTF-8?q?=E0=B8=99=E0=B8=82=E0=B8=AD=E0=B8=87=E0=B9=82=E0=B8=84=E0=B8=A3?= =?UTF-8?q?=E0=B8=87=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=B0=E0=B8=9A=E0=B8=9A?= =?UTF-8?q?=E0=B8=9E=E0=B8=B1=E0=B8=92=E0=B8=99=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/15_development/components/Target.vue | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/modules/15_development/components/Target.vue b/src/modules/15_development/components/Target.vue index f5a33abbd..94b2ac791 100644 --- a/src/modules/15_development/components/Target.vue +++ b/src/modules/15_development/components/Target.vue @@ -791,9 +791,7 @@ onMounted(() => { { v-if="!checkRoutePermission" round flat - color="primary" - icon="mdi-pencil-outline" + color="edit" + icon="edit" size="14px" @click=" () => { @@ -971,8 +969,8 @@ onMounted(() => { v-if="!checkRoutePermission" round flat - color="primary" - icon="mdi-pencil-outline" + color="edit" + icon="edit" size="14px" @click=" () => { From 8c6751ee55daf20dd82beeec2d900979c7ea043e Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Fri, 6 Feb 2026 20:57:56 +0700 Subject: [PATCH 4/5] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=82?= =?UTF-8?q?=E0=B9=89=E0=B8=AD=E0=B8=84=E0=B8=A7=E0=B8=B2=E0=B8=A1=E0=B8=A2?= =?UTF-8?q?=E0=B8=B7=E0=B8=99=E0=B8=A2=E0=B8=B1=E0=B8=99=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B8=9A=E0=B8=A3=E0=B8=A3=E0=B8=88=E0=B8=B8=E0=B9=81?= =?UTF-8?q?=E0=B8=A5=E0=B9=89=E0=B8=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/05_placement/components/PersonalList/Table.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/05_placement/components/PersonalList/Table.vue b/src/modules/05_placement/components/PersonalList/Table.vue index 499af6acd..9a4e8836b 100644 --- a/src/modules/05_placement/components/PersonalList/Table.vue +++ b/src/modules/05_placement/components/PersonalList/Table.vue @@ -937,8 +937,8 @@ function onUpdateStatus(id: string) { hideLoader(); } }, - "ยืนยันการส่งบรรจุ", - "ต้องการยืนยันการส่งบรรจุนี้ใช่หรือไม่ ?" + "ยืนยันการเปลี่ยนสถานะเป็นบรรจุแล้ว", + "ต้องการเปลี่ยนสถานะรายชื่อนี้เป็นบรรจุแล้วใช่หรือไม่ ?" ); } From 021b12ea8deb296aa03fa3c4e81d1fbe9820d5a0 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 9 Feb 2026 17:16:51 +0700 Subject: [PATCH 5/5] fix:genReport --- src/plugins/genreport.ts | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/src/plugins/genreport.ts b/src/plugins/genreport.ts index 94c685bbb..6c751ff76 100644 --- a/src/plugins/genreport.ts +++ b/src/plugins/genreport.ts @@ -29,25 +29,32 @@ async function genReport( responseType: "arraybuffer", }) .then((res) => { - const data = res.data; - if (data) { - // สร้าง Blob จาก array buffer - const blob = new Blob([data], { - type: "application/vnd.openxmlformats-officedocument.wordprocessingml.document", - }); + const responseData = res.data; + if (responseData) { + // --- ส่วนที่ปรับปรุง 1: กำหนด MIME Type ให้ตรงกับไฟล์ที่รับมาจริง --- + const mimeType = + type === "docx" + ? "application/vnd.openxmlformats-officedocument.wordprocessingml.document" + : "application/pdf"; - // สร้าง URL สำหรับไฟล์ Blob + const blob = new Blob([responseData], { type: mimeType }); const url = URL.createObjectURL(blob); - // สร้างลิงก์เพื่อดาวน์โหลดไฟล์ + // --- ส่วนที่ปรับปรุง 2: จัดการชื่อไฟล์ (ป้องกันนามสกุลซ้อน) --- + const baseName = fileName.trim(); + const extension = type === "docx" ? "docx" : "pdf"; + const link = document.createElement("a"); link.href = url; - link.download = `${fileName}.${type === "docx" ? "docx" : "pdf"}`; // กำหนดชื่อไฟล์ที่จะดาวน์โหลด + link.download = `${baseName}.${extension}`; document.body.appendChild(link); link.click(); - // ลบ URL ที่สร้างขึ้นหลังจากใช้งาน - URL.revokeObjectURL(url); + // หน่วงเวลาเล็กน้อยก่อนลบ element และ revoke URL เพื่อให้ Browser ทำงานเสร็จ + setTimeout(() => { + document.body.removeChild(link); + URL.revokeObjectURL(url); + }, 100); } }) .catch((err) => {