@@ -175,6 +175,8 @@ const bxcontrast = () => {
} else {
}
}
+
+
// 波形分析
const source = () => {
queryEventDetailByAssId(form.value).then(res => {
@@ -230,25 +232,35 @@ const exportEvent = () => {
pageSize: tableStore.table.total
}).then(res => {
tableRef.value.getRef().exportData({
- filename: '影响范围分析', // 文件名字
+ filename: '事件波形分析', // 文件名字
sheetName: 'Sheet1',
type: 'xlsx', //导出文件类型 xlsx 和 csv
useStyle: true,
data: res.data.records, // 数据源 // 过滤那个字段导出
columnFilterMethod: function (column, $columnIndex) {
- return !(column.$columnIndex === 0)
+ return !(column.$columnIndex === 0 || column.$columnIndex === 4)
}
})
})
}
// 导出波形分析
const positioningexport = () => {
+ const selectedRecords = positioningtableRef.value.getCheckboxRecords();
+
+ if (selectedRecords.length === 0) {
+ ElMessage({
+ message: '请先选择要导出的数据!',
+ type: 'warning'
+ });
+ return;
+ }
+
positioningtableRef.value.exportData({
- filename: '事件波形分析', // 文件名字
+ filename: '事件分析', // 文件名字
sheetName: 'Sheet1',
type: 'xlsx', //导出文件类型 xlsx 和 csv
useStyle: true,
- data: dialogAnalysis.value, // 数据源 // 过滤那个字段导出
+ data: selectedRecords, // 数据源 // 过滤那个字段导出
columnFilterMethod: function (column, $columnIndex) {
return !(column.$columnIndex === 0)
}
diff --git a/src/views/pqs/voltageSags/analyse/impactscope/index.vue b/src/views/pqs/voltageSags/analyse/impactscope/index.vue
index 06025849..0c86d878 100644
--- a/src/views/pqs/voltageSags/analyse/impactscope/index.vue
+++ b/src/views/pqs/voltageSags/analyse/impactscope/index.vue
@@ -1,7 +1,7 @@