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 @@