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" /> -->