From f51acd7623c13f728220ba249c9e81682fa290b5 Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Fri, 23 Feb 2024 16:26:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B5=E5=8E=8B=E6=9A=82=E9=99=8D-=E9=AB=98?= =?UTF-8?q?=E7=BA=A7=E5=88=86=E6=9E=90-=E4=BA=8B=E4=BB=B6=E5=85=B3?= =?UTF-8?q?=E8=81=94=E5=88=86=E6=9E=90=20=E5=BD=B1=E5=93=8D=E8=8C=83?= =?UTF-8?q?=E5=9B=B4=E5=88=86=E6=9E=90=20=20=E8=BF=81=E7=A7=BB=2040%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 + src/api/advance-boot/analyse.ts | 26 +++ src/main.ts | 6 + .../Region/thermodynamicDiagram.vue | 2 - .../analyse/eventCorrelation/index.vue | 162 +++++++++++++++++- .../analyse/eventwaveform/index.vue | 7 + .../voltageSags/analyse/impactscope/index.vue | 149 ++++++++++++++++ 7 files changed, 350 insertions(+), 4 deletions(-) create mode 100644 src/api/advance-boot/analyse.ts create mode 100644 src/views/pms/voltageSags/analyse/eventwaveform/index.vue create mode 100644 src/views/pms/voltageSags/analyse/impactscope/index.vue diff --git a/package.json b/package.json index 604122da..f72be292 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "echarts": "^5.4.3", "echarts4": "npm:echarts@^4.9.0", "element-plus": "^2.5.3", + "exceljs": "^4.4.0", "html2canvas": "^1.4.1", "jquery": "^3.7.1", "lodash-es": "^4.17.21", @@ -34,6 +35,7 @@ "vue-draggable-resizable": "3.0.0-beta.2", "vue-router": "4", "vxe-table": "^4.5.17", + "vxe-table-plugin-export-xlsx": "^4.0.1", "xe-utils": "^3.5.14" }, "devDependencies": { diff --git a/src/api/advance-boot/analyse.ts b/src/api/advance-boot/analyse.ts new file mode 100644 index 00000000..44873d70 --- /dev/null +++ b/src/api/advance-boot/analyse.ts @@ -0,0 +1,26 @@ +import createAxios from '@/utils/request' + +// 分析记录管理 +export function queryRelevantLogPage(data: any) { + return createAxios({ + url: '/advance-boot/process/queryRelevantLogPage', + method: 'post', + data: data + }) +} +// 删除策略 +export function delRelevantLog(data: any) { + return createAxios({ + url: '/advance-boot/process/delRelevantLog', + method: 'get', + params:data, + }) +} +// 影响范围分析 查询 +export function queryEventsAssPage(data: any) { + return createAxios({ + url: '/advance-boot/process/queryEventsAssPage', + method: 'post', + data, + }) +} \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index e5f254ce..0b7b5cb2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -15,7 +15,13 @@ import '@/styles/index.scss' import '@/assets/font/iconfont.css' import { ElDialog } from 'element-plus' import BaiduMap from 'vue-baidu-map-3x' +import ExcelJS from 'exceljs' +import VXETablePluginExportXLSX from 'vxe-table-plugin-export-xlsx' +// 方式1:NPM 安装,注入 ExcelJS 对象 +VXETable.use(VXETablePluginExportXLSX, { + ExcelJS +}) window.XEUtils = XEUtils const app = createApp(App) diff --git a/src/views/pms/Event-boot/Region/thermodynamicDiagram.vue b/src/views/pms/Event-boot/Region/thermodynamicDiagram.vue index b74e2987..c5418c03 100644 --- a/src/views/pms/Event-boot/Region/thermodynamicDiagram.vue +++ b/src/views/pms/Event-boot/Region/thermodynamicDiagram.vue @@ -105,14 +105,12 @@ const map = (res: any) => { if (geoCoordMap.value.lengt > 0) { geoCoordMap.value.map(item => { - console.log("🚀 ~ map ~ item:", item) areaData.push(...new Array(3).fill(item)) }) } let maxNum = 0 let minNum = 0 let num: any = [] - console.log('🚀 ~ map ~ areaData:', areaData) if (areaData.length > 0) { areaData.forEach(item => { diff --git a/src/views/pms/voltageSags/analyse/eventCorrelation/index.vue b/src/views/pms/voltageSags/analyse/eventCorrelation/index.vue index 5a0c645c..d47ecf8f 100644 --- a/src/views/pms/voltageSags/analyse/eventCorrelation/index.vue +++ b/src/views/pms/voltageSags/analyse/eventCorrelation/index.vue @@ -1,3 +1,161 @@ \ No newline at end of file +
+ + + + + + + + + + + + + + + + + + + diff --git a/src/views/pms/voltageSags/analyse/eventwaveform/index.vue b/src/views/pms/voltageSags/analyse/eventwaveform/index.vue new file mode 100644 index 00000000..5e06e641 --- /dev/null +++ b/src/views/pms/voltageSags/analyse/eventwaveform/index.vue @@ -0,0 +1,7 @@ + + + diff --git a/src/views/pms/voltageSags/analyse/impactscope/index.vue b/src/views/pms/voltageSags/analyse/impactscope/index.vue new file mode 100644 index 00000000..bd026cfb --- /dev/null +++ b/src/views/pms/voltageSags/analyse/impactscope/index.vue @@ -0,0 +1,149 @@ + +