From e65561195498e0f5e809a610ce8325d3235428f0 Mon Sep 17 00:00:00 2001
From: sjl <1716605279@qq.com>
Date: Wed, 12 Nov 2025 16:10:46 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pollutionReport/SubstationTab.vue | 23 +++++++++++++++++--
1 file changed, 21 insertions(+), 2 deletions(-)
diff --git a/src/views/pqs/harmonicMonitoring/detailed/pollutionReport/SubstationTab.vue b/src/views/pqs/harmonicMonitoring/detailed/pollutionReport/SubstationTab.vue
index be437d39..dfe5b14c 100644
--- a/src/views/pqs/harmonicMonitoring/detailed/pollutionReport/SubstationTab.vue
+++ b/src/views/pqs/harmonicMonitoring/detailed/pollutionReport/SubstationTab.vue
@@ -92,7 +92,11 @@
width="80%"
>
+
+ 导出
+
+
@@ -137,7 +142,7 @@ const options = dictData.getBasicData('Pollution_Calc')
const tableHeight = ref(500)
const tableRef = ref()
const tableHeaderRef = ref()
-
+const detailTableRef = ref()
const selectedArea = ref()
const areOptions: any = dictData.state.area
const allData = ref([])
@@ -169,6 +174,7 @@ const loadDetailData = async (row) => {
const detailList: PollutionItem[] = []
originalItem.powerFlagPollutionList.forEach((point: any) => {
detailList.push({
+
lineName: processNullValue(point.lineName),
devName: processNullValue(point.devName),
devType: processNullValue(point.devType),
@@ -403,7 +409,20 @@ const exportEvent = () => {
})
}
-
+// 导出详情数据的方法
+const exportDetailEvent = () => {
+ detailTableRef.value.exportData({
+ filename: detailDialogTitle.value,
+ sheetName: 'Sheet1',
+ type: 'xlsx',
+ useStyle: true,
+ data: detailData.value,
+ columnFilterMethod({ column }) {
+ // 导出所有列,包括隐藏列
+ return true;
+ }
+ })
+}
onMounted(() => {
if (props.active) {