From ab24770899c0a099fa412ae40193486efc524f18 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 15 Sep 2023 14:34:31 +0700 Subject: [PATCH] =?UTF-8?q?report=20=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7?= =?UTF-8?q?=E0=B8=B1=E0=B8=95=E0=B8=B4=E0=B8=AA=E0=B8=B3=E0=B8=AB=E0=B8=A3?= =?UTF-8?q?=E0=B8=B1=E0=B8=9A=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B9=80=E0=B8=AA?= =?UTF-8?q?=E0=B8=99=E0=B8=AD=E0=B8=82=E0=B8=AD=E0=B8=9E=E0=B8=A3=E0=B8=B0?= =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=97=E0=B8=B2=E0=B8=99=E0=B9=80?= =?UTF-8?q?=E0=B8=AB=E0=B8=A3=E0=B8=B5=E0=B8=A2=E0=B8=8D=E0=B8=88=E0=B8=B1?= =?UTF-8?q?=E0=B8=81=E0=B8=9E=E0=B8=A3=E0=B8=A3=E0=B8=94=E0=B8=B4=E0=B8=A1?= =?UTF-8?q?=E0=B8=B2=E0=B8=A5=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../07_insignia/components/2_Manage/Tab1.vue | 401 ++++++++++++++---- .../components/2_Manage/downloadFile.vue | 96 +++++ .../components/2_Manage/listManage.vue | 3 + .../components/report/ReportView.vue | 4 +- src/modules/07_insignia/store.ts | 4 + 5 files changed, 431 insertions(+), 77 deletions(-) create mode 100644 src/modules/07_insignia/components/2_Manage/downloadFile.vue diff --git a/src/modules/07_insignia/components/2_Manage/Tab1.vue b/src/modules/07_insignia/components/2_Manage/Tab1.vue index 3d0e9f617..30c53cb21 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab1.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab1.vue @@ -11,6 +11,7 @@ import { useRouter } from "vue-router"; import DialogPopupReason from "@/components/Dialogs/PopupReason.vue"; import DialogHeader from "@/components/DialogHeader.vue"; +import btnDownloadFile from "./downloadFile.vue"; const router = useRouter(); const mixin = useCounterMixin(); @@ -569,39 +570,89 @@ const paginationLabel2 = (start: number, end: number, total: number) => { }; const closeModalEdit = () => { - modalEdit.value = false -} + modalEdit.value = false; +}; diff --git a/src/modules/07_insignia/components/2_Manage/downloadFile.vue b/src/modules/07_insignia/components/2_Manage/downloadFile.vue new file mode 100644 index 000000000..54732d227 --- /dev/null +++ b/src/modules/07_insignia/components/2_Manage/downloadFile.vue @@ -0,0 +1,96 @@ + + + + diff --git a/src/modules/07_insignia/components/2_Manage/listManage.vue b/src/modules/07_insignia/components/2_Manage/listManage.vue index c3b4e250a..d86a05ecb 100644 --- a/src/modules/07_insignia/components/2_Manage/listManage.vue +++ b/src/modules/07_insignia/components/2_Manage/listManage.vue @@ -55,8 +55,10 @@ const fecthlistRound = async () => { name: e.period_name, })); if (optionRound.value.length !== 0) { + DataStore.optionRound = optionRound.value; const lastValue = optionRound.value[0]; round.value = lastValue.id.toString(); + DataStore.roundId = round.value; roundName.value = lastValue.name; await fecthStat(round.value); await fecthAgency(); @@ -123,6 +125,7 @@ const fecthType = async () => { }; const changround = async () => { + DataStore.roundId = round.value; fecthStat(round.value); var organization = await (DataStore.agency != null ? DataStore.agency diff --git a/src/modules/07_insignia/components/report/ReportView.vue b/src/modules/07_insignia/components/report/ReportView.vue index 3c8f99beb..fef254874 100644 --- a/src/modules/07_insignia/components/report/ReportView.vue +++ b/src/modules/07_insignia/components/report/ReportView.vue @@ -85,7 +85,7 @@ const nextPage = (type: string, title: string) => { - ประวัติสำหรับการเสนอขอพระราชทานเหรียญจักรพรรดิมาลา - + --> diff --git a/src/modules/07_insignia/store.ts b/src/modules/07_insignia/store.ts index 6890179ff..ebd234f03 100644 --- a/src/modules/07_insignia/store.ts +++ b/src/modules/07_insignia/store.ts @@ -6,6 +6,8 @@ const mixin = useCounterMixin(); const { date2Thai } = mixin; export const useInsigniaDataStore = defineStore("insignia", () => { + const roundId = ref("") + const optionRound = ref([]) const isLock = ref(false) const roleUser = ref("") const requestId = ref("") @@ -112,6 +114,8 @@ export const useInsigniaDataStore = defineStore("insignia", () => { } return { + roundId, + optionRound, optionsTypeOc, mainTab, typeOc,