From 51782b09c252c2622e7525c57d465a9690438a08 Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Mon, 6 Jan 2025 21:01:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B2=BB=E7=90=86=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.zl | 2 + package.json | 2 + src/components/echarts/rmsboxi.vue | 69 +++++++++---------- src/components/echarts/shushiboxi.vue | 10 ++- src/components/tree/device.vue | 36 +++++++++- src/components/tree/index.vue | 36 +++++++++- src/views/govern/analyze/APF/index.vue | 2 +- src/views/govern/analyze/DVR/index.vue | 58 +++++++++++----- src/views/govern/manage/factory.vue | 7 +- .../govern/reportCore/statisticsWx/index.vue | 12 ++-- 10 files changed, 166 insertions(+), 68 deletions(-) create mode 100644 .env.zl diff --git a/.env.zl b/.env.zl new file mode 100644 index 0000000..e7acd50 --- /dev/null +++ b/.env.zl @@ -0,0 +1,2 @@ +NODE_ENV = zl +VITE_NAME="zl" diff --git a/package.json b/package.json index bbfb112..78ca122 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "type": "module", "scripts": { "dev": "vite", + "dev:zl": "vite --mode zl", "build": "vite build", + "build:zl": "vite build --mode zl", "preview": "vite preview" }, "dependencies": { diff --git a/src/components/echarts/rmsboxi.vue b/src/components/echarts/rmsboxi.vue index 1b84115..db2a968 100644 --- a/src/components/echarts/rmsboxi.vue +++ b/src/components/echarts/rmsboxi.vue @@ -26,6 +26,7 @@ import { mainHeight } from '@/utils/layout' // url2: ("@/assets/dw.png"), import url from '@/assets/img/point.png'; import url2 from '@/assets/img/dw.png'; +const VITE_FLAG = import.meta.env.VITE_NAME == 'zl' export default { props: { value: { @@ -190,38 +191,39 @@ export default { //根据后台查询的数据,清洗数据 initWaves() { if (null != this.wp) { - if (this.boxoList.systemType == "pms") { + if (this.boxoList.systemType == 'pms') { this.titles = - "变电站名称:" + + '变电站名称:' + this.boxoList.powerStationName + - " 监测点名称:" + + ' 监测点名称:' + this.boxoList.measurementPointName + - " 发生时刻:" + + ' 发生时刻:' + this.boxoList.startTime + - " 暂降(骤升)幅值:" + + ' 暂降(骤升)幅值:' + (this.boxoList.featureAmplitude * 100).toFixed(0) + - "% 持续时间:" + + '% 持续时间:' + this.boxoList.duration + - "s"; - } else if (this.boxoList.systemType == "ZL") { + 's' + } else if (this.boxoList.systemType == 'ZL') { this.titles = // "变电站名称:" + // this.boxoList.equipmentName + - " 监测点名称:" + - this.boxoList.equipmentName + - " 发生时刻:" + + ' 监测点名称:' + + this.boxoList.lineName + + ' 发生时刻:' + this.boxoList.startTime + - " 暂降(骤升)幅值:" + + ' 暂降(骤升)幅值:' + this.boxoList.evtParamVVaDepth + - " 持续时间:" + + ' 持续时间:' + this.boxoList.evtParamTm + - "s"; - } else if (this.boxoList.systemType == 'WX') { - + 's' + } + else if (this.boxoList.systemType == 'WX') { let featureAmplitude = this.boxoList.featureAmplitude + '' ? this.boxoList.featureAmplitude.toFixed(2) : '/' if (String(this.boxoList.featureAmplitude).split('.')[1] == '00') { this.boxoList.featureAmplitude = String(this.boxoList.featureAmplitude).split('.')[0] } + this.titles = ' 监测点名称:' + @@ -231,21 +233,21 @@ export default { ' 暂降(骤升)幅值:' + (featureAmplitude) + '% 持续时间:' + - (this.boxoList.persistTime ? this.boxoList.persistTime.toFixed(2) : '-') + + (this.boxoList.persistTime || this.boxoList.evtParamTm || '-') + 's' } else { this.titles = - "变电站名称:" + + '变电站名称:' + this.boxoList.subName + - " 监测点名称:" + + ' 监测点名称:' + this.boxoList.lineName + - " 发生时刻:" + + ' 发生时刻:' + this.boxoList.startTime + - " 暂降(骤升)幅值:" + + ' 暂降(骤升)幅值:' + (this.boxoList.featureAmplitude * 100).toFixed(0) + - "% 持续时间:" + + '% 持续时间:' + this.boxoList.duration + - "s"; + 's' } // this.eventValue = this.boxoList.eventValue; @@ -848,7 +850,7 @@ export default { unit = "A"; } //把剩余的DIV先拼接好 - for (var step = 1; step < waveDatas.length; step++) { + for (var step = waveDatas.length - 1; 0 < step && step < waveDatas.length; step--) { var rmsId = "rms" + step; var newDivRms = $( `