From 592d795e2b3b333cc2a5a5d37ed990a2560a558e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=B2=E4=B9=88=E4=BA=86?= Date: Mon, 26 Feb 2024 19:17:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E9=99=8D=E5=88=86=E5=B8=83=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/echarts/MyEchart.vue | 94 +---- .../dianyazanjiangbiaojimidu/index.vue | 2 +- .../online/eventStatistics/index.vue | 2 +- .../zanjiangfenbutongji/index.vue | 323 ++++++++++++++++- .../zanjiangfuzhigailvfenbu/index.vue | 333 +++++++++++++++++- 5 files changed, 656 insertions(+), 98 deletions(-) diff --git a/src/components/echarts/MyEchart.vue b/src/components/echarts/MyEchart.vue index 782e68ed..fcb634a0 100644 --- a/src/components/echarts/MyEchart.vue +++ b/src/components/echarts/MyEchart.vue @@ -6,7 +6,7 @@ import { onBeforeUnmount, onMounted, ref, defineExpose, watch } from 'vue' // import echarts from './echarts' import * as echarts from 'echarts' // 全引入 -import 'echarts-gl'; +import 'echarts-gl' import 'echarts/lib/component/dataZoom' const chartRef = ref() @@ -24,90 +24,6 @@ const initChart = () => { chart?.dispose() chart = echarts.init(chartRef.value as HTMLDivElement) - console.log({ - title: { - left: 'center', - textStyle: { - color: '#000', - fontSize: 18 - }, - ...(props.options.title || null) - }, - tooltip: { - trigger: 'axis', - - axisPointer: { - type: 'shadow', - label: { - color: '#fff', - fontSize: 16 - } - }, - textStyle: { - color: '#fff', - fontStyle: 'normal', - opacity: 0.35, - fontSize: 14 - }, - backgroundColor: 'rgba(0,0,0,0.35)', - borderWidth: 0, - ...(props.options.tooltip || null) - }, - legend: { - right: 20, - top: 0, - itemGap: 10, - itemStyle: {}, - textStyle: { - fontSize: 12, - padding: [2, 0, 0, 0] //[上、右、下、左] - }, - itemWidth: 15, - itemHeight: 10, - ...(props.options.legend || null) - }, - grid: { - top: '50px', - left: '10px', - right: '60px', - bottom: props.options.options?.dataZoom === null ? '10px' : '40px', - containLabel: true - }, - xAxis: handlerXAxis(), - yAxis: handlerYAxis(), - dataZoom: [ - { - type: 'inside', - height: 13, - start: 0, - bottom: '20px', - end: 100, - ...(props.options.dataZoom || null) - }, - { - start: 0, - height: 13, - bottom: '20px', - end: 100, - ...(props.options.dataZoom || null) - } - ], - color: [ - ...(props.options.color || ''), - '#07CCCA ', - '#00BFF5', - '#FFBF00', - '#77DA63', - '#D5FF6B', - '#Ff6600', - '#FF9100', - '#5B6E96', - '#66FFCC', - '#B3B3B3' - ], - series: props.options.series, - ...props.options.options - }) chart.setOption({ title: { left: 'center', @@ -157,8 +73,8 @@ const initChart = () => { bottom: props.options.options?.dataZoom === null ? '10px' : '40px', containLabel: true }, - xAxis: handlerXAxis(), - yAxis: handlerYAxis(), + xAxis: props.options.xAxis ? handlerXAxis() : null, + yAxis: props.options.yAxis ? handlerYAxis() : null, dataZoom: [ { type: 'inside', @@ -178,7 +94,7 @@ const initChart = () => { ], color: [ ...(props.options.color || ''), - '#07CCCA ', + '#07CCCA', '#00BFF5', '#FFBF00', '#77DA63', @@ -194,7 +110,7 @@ const initChart = () => { }) setTimeout(() => { chart.resize() - },0) + }, 0) } const handlerYAxis = () => { let temp = { diff --git a/src/views/pms/voltageSags/monitoringPoint/online/eventStatistics/dianyazanjiangbiaojimidu/index.vue b/src/views/pms/voltageSags/monitoringPoint/online/eventStatistics/dianyazanjiangbiaojimidu/index.vue index 9335cbc1..4493784a 100644 --- a/src/views/pms/voltageSags/monitoringPoint/online/eventStatistics/dianyazanjiangbiaojimidu/index.vue +++ b/src/views/pms/voltageSags/monitoringPoint/online/eventStatistics/dianyazanjiangbiaojimidu/index.vue @@ -47,7 +47,7 @@
IEC61000-2-8(公共用电暂降测量统计)
- + diff --git a/src/views/pms/voltageSags/monitoringPoint/online/eventStatistics/index.vue b/src/views/pms/voltageSags/monitoringPoint/online/eventStatistics/index.vue index 37b0860d..2ec49d21 100644 --- a/src/views/pms/voltageSags/monitoringPoint/online/eventStatistics/index.vue +++ b/src/views/pms/voltageSags/monitoringPoint/online/eventStatistics/index.vue @@ -30,7 +30,7 @@ import Zanjiangfenbutongji from './zanjiangfenbutongji/index.vue' import Zanjiangfuzhigailvfenbu from './zanjiangfuzhigailvfenbu/index.vue' import Chixushijiangailvfenbu from './chixushijiangailvfenbu/index.vue' -const activeName = ref('1') +const activeName = ref('5') const height = mainHeight(84) diff --git a/src/views/pms/voltageSags/monitoringPoint/online/eventStatistics/zanjiangfenbutongji/index.vue b/src/views/pms/voltageSags/monitoringPoint/online/eventStatistics/zanjiangfenbutongji/index.vue index 381890af..7f995f97 100644 --- a/src/views/pms/voltageSags/monitoringPoint/online/eventStatistics/zanjiangfenbutongji/index.vue +++ b/src/views/pms/voltageSags/monitoringPoint/online/eventStatistics/zanjiangfenbutongji/index.vue @@ -1,10 +1,325 @@ - + diff --git a/src/views/pms/voltageSags/monitoringPoint/online/eventStatistics/zanjiangfuzhigailvfenbu/index.vue b/src/views/pms/voltageSags/monitoringPoint/online/eventStatistics/zanjiangfuzhigailvfenbu/index.vue index 381890af..e8a462ba 100644 --- a/src/views/pms/voltageSags/monitoringPoint/online/eventStatistics/zanjiangfuzhigailvfenbu/index.vue +++ b/src/views/pms/voltageSags/monitoringPoint/online/eventStatistics/zanjiangfuzhigailvfenbu/index.vue @@ -1,10 +1,337 @@