From 5f4f75d9dd6c645820299442967d1993ed51782d Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Wed, 24 Dec 2025 11:22:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A8=B3=E6=80=81=E5=91=8A?= =?UTF-8?q?=E8=AD=A6=E7=BB=9F=E8=AE=A1=EF=BC=8C=E5=BC=82=E5=B8=B8=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=B8=85=E6=B4=97=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reportForms/statistics/index.vue | 13 +- .../alarmCleaning/components/alarm.vue | 20 +- .../alarmCleaning/components/alarmDetails.vue | 222 +++++++++++++----- .../cleaning/components/anomalyDetails.vue | 91 +++++-- .../components/terminainal/detail.vue | 6 +- src/views/system/reportForms/luckysheet.vue | 2 +- 6 files changed, 270 insertions(+), 84 deletions(-) diff --git a/src/views/pqs/harmonicMonitoring/reportForms/statistics/index.vue b/src/views/pqs/harmonicMonitoring/reportForms/statistics/index.vue index b2df2470..1614b1d3 100644 --- a/src/views/pqs/harmonicMonitoring/reportForms/statistics/index.vue +++ b/src/views/pqs/harmonicMonitoring/reportForms/statistics/index.vue @@ -77,7 +77,7 @@ const TableHeaderRef = ref() const dotList: any = ref({}) const Template: any = ref({}) const reportForm: any = ref('') - +const name = ref('') const templatePolicy: any = ref([]) const reportFormList: any = ref([ { @@ -100,6 +100,7 @@ const tableStore = new TableStore({ beforeSearchFun: () => { tableStore.table.params.tempId = Template.value.id tableStore.table.params.lineId = dotList.value.id + name.value = dotList.value.name }, loadCallback: () => { tableStore.table.data.forEach((item: any) => { @@ -162,7 +163,15 @@ const handleNodeClick = (data: any, node: any) => { } const exportEvent = () => { - exportExcel(luckysheet.getAllSheets(), '统计报表下载') + // 基础获取 + const now = new Date() + const year = now.getFullYear() // 4位年份 + const month = now.getMonth() + 1 // 月份0-11,需+1 + const day = now.getDate() // 日期1-31 + + // 格式化YYYY - MM - DD(补零) + const formattedDate = `${year}${String(month).padStart(2, '0')}${String(day).padStart(2, '0')}` + exportExcel(luckysheet.getAllSheets(), name.value + formattedDate) } const exportReport = () => { loading.value = true diff --git a/src/views/pqs/runManage/alarmCleaning/components/alarm.vue b/src/views/pqs/runManage/alarmCleaning/components/alarm.vue index 2c7c674d..1cece9a3 100644 --- a/src/views/pqs/runManage/alarmCleaning/components/alarm.vue +++ b/src/views/pqs/runManage/alarmCleaning/components/alarm.vue @@ -28,12 +28,7 @@ - + @@ -128,7 +123,7 @@ - + + + 查询 @@ -493,7 +495,7 @@ tableStore.table.params.name = '' provide('tableStore', tableStore) diff --git a/src/views/pqs/runManage/cleaning/components/anomalyDetails.vue b/src/views/pqs/runManage/cleaning/components/anomalyDetails.vue index ebde93d4..66d4b80c 100644 --- a/src/views/pqs/runManage/cleaning/components/anomalyDetails.vue +++ b/src/views/pqs/runManage/cleaning/components/anomalyDetails.vue @@ -1,7 +1,7 @@