From 56e45b97efd16e8f3978e42daa836df303994476 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E4=BA=91=E9=B9=8F?= Date: Fri, 17 Jan 2025 12:41:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=86=E5=8F=B2=E6=95=B0=E6=8D=AE=EF=BC=9A?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E5=AF=BC=E5=87=BA=E6=A0=B9=E6=8D=AE=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E5=90=AB=E6=9C=89=E9=AB=98=E9=A2=91=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/dasadmin/src/views/backend/historyData/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/dasadmin/src/views/backend/historyData/index.vue b/ui/dasadmin/src/views/backend/historyData/index.vue index d74a0f12..8c7e6103 100644 --- a/ui/dasadmin/src/views/backend/historyData/index.vue +++ b/ui/dasadmin/src/views/backend/historyData/index.vue @@ -910,11 +910,13 @@ const exportExcel = () => { let title = '' const highSpeedColumnArr: string[] = [] const columnArr: string[] = [] + let existHighSpeed = false tableColumn.value.forEach((item: any, index: number) => { if (index > 1) { if (item.highSpeed === 1) { highSpeedTitle += item.label + '\t,' highSpeedColumnArr.push(item.prop) + existHighSpeed = true } else { title += item.label + '\t,' columnArr.push(item.prop) @@ -946,7 +948,9 @@ const exportExcel = () => { document.body.removeChild(link) } downloadData(columnArr, title) - downloadData(highSpeedColumnArr, highSpeedTitle, '高频') + if( existHighSpeed){ + downloadData(highSpeedColumnArr, highSpeedTitle, '高频') + } } const selectToTable = () => { selectRowList.value.forEach((item: selectData) => {