From 77e4294ec50bdd905cc5eacc3a9c16cd8077a6de Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 3 Oct 2023 09:24:29 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82?= =?UTF-8?q?=E0=B8=8A=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B9=84=E0=B8=9F=E0=B8=A5?= =?UTF-8?q?=E0=B9=8C=E0=B8=95=E0=B8=AD=E0=B8=99=20=E0=B9=82=E0=B8=AB?= =?UTF-8?q?=E0=B8=A5=E0=B8=94=E0=B9=84=E0=B8=9F=E0=B8=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/report/Report_02.vue | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/modules/07_insignia/components/report/Report_02.vue b/src/modules/07_insignia/components/report/Report_02.vue index d9fa6f39e..6f066eab5 100644 --- a/src/modules/07_insignia/components/report/Report_02.vue +++ b/src/modules/07_insignia/components/report/Report_02.vue @@ -66,7 +66,7 @@ const fecthlistRound = async () => { year: e.period_year, name: e.period_name, })); - filterOtion.value = optionsList.value + filterOtion.value = optionsList.value; }) .catch((err) => { messageError($q, err); @@ -119,7 +119,10 @@ const downloadReport = async ( }) .then(async (res) => { if (download) { - downloadFile(res, `${titleReport} ${selectList.value.name}.${type}`); + downloadFile( + res, + `${titleReport.value} ${selectList.value.name}.${type}` + ); } else { const url = URL.createObjectURL(new Blob([res.data])); showDocument(url); @@ -135,15 +138,13 @@ const downloadReport = async ( const filterSelector = (val: any, update: Function, name: any) => { update(() => { const needle = val.toLowerCase(); - if (name === 'selectList') { + if (name === "selectList") { filterOtion.value = optionsList.value.filter( - (v: any) => v.name.toLowerCase().indexOf(needle) > -1 - ); + (v: any) => v.name.toLowerCase().indexOf(needle) > -1 + ); } - - } - ) -} + }); +};