From 62f728f97520ff70751056068f6bdca7349bbfdc Mon Sep 17 00:00:00 2001 From: Thanit Konmek Date: Mon, 28 Aug 2023 16:18:26 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82?= =?UTF-8?q?=20=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=87=E0=B8=B2=E0=B8=99?= =?UTF-8?q?=E0=B9=80=E0=B8=84=E0=B8=A3=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=87?= =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/07_insignia/components/report/Report_01.vue | 8 +++++++- src/modules/07_insignia/components/report/Report_02.vue | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/modules/07_insignia/components/report/Report_01.vue b/src/modules/07_insignia/components/report/Report_01.vue index 92e6946ce..ecfb4563e 100644 --- a/src/modules/07_insignia/components/report/Report_01.vue +++ b/src/modules/07_insignia/components/report/Report_01.vue @@ -81,13 +81,17 @@ const fecthlistRound = async () => { }); }; +const updateSelect = () => { + conditionDocument("show"); +}; + const conditionDocument = (type: string) => { myForm.value?.validate().then(async (success: boolean) => { if (success) { if (type == "show") { await downloadReport("pdf", false); } else { - await downloadReport("pdf", false); + // await downloadReport("pdf", false); await downloadReport(type, true); } } @@ -183,6 +187,7 @@ const downloadReport = async ( option-value="id" option-label="name" style="width: 150px" + @update:model-value="updateSelect" /> diff --git a/src/modules/07_insignia/components/report/Report_02.vue b/src/modules/07_insignia/components/report/Report_02.vue index c53a06eff..5a167a25e 100644 --- a/src/modules/07_insignia/components/report/Report_02.vue +++ b/src/modules/07_insignia/components/report/Report_02.vue @@ -85,13 +85,17 @@ const fecthlistRound = async () => { }); }; +const updateSelect = () => { + conditionDocument("show"); +}; + const conditionDocument = (type: string) => { myForm.value?.validate().then(async (success: boolean) => { if (success) { if (type == "show") { await downloadReport("pdf", false); } else { - await downloadReport("pdf", false); + // await downloadReport("pdf", false); await downloadReport(type, true); } } @@ -177,6 +181,7 @@ const downloadReport = async ( option-value="id" option-label="name" style="width: 150px" + @update:model-value="updateSelect" /> -->