diff --git a/src/components/cockpit/listOfMainMonitoringPoints/index.vue b/src/components/cockpit/listOfMainMonitoringPoints/index.vue index 1c0bff9..47411d5 100644 --- a/src/components/cockpit/listOfMainMonitoringPoints/index.vue +++ b/src/components/cockpit/listOfMainMonitoringPoints/index.vue @@ -172,7 +172,7 @@ const setEchart = () => { tooltip: { trigger: 'axis', formatter: function (params: any) { - let result = params[0].name + let result = params[0].axisValueLabel params.forEach((item: any) => { if (item.seriesName === indicatorName) { // 对于电能质量指标,格式化Y轴值显示 diff --git a/src/components/cockpit/monitoringPointList/index.vue b/src/components/cockpit/monitoringPointList/index.vue index 32d36cf..326e21e 100644 --- a/src/components/cockpit/monitoringPointList/index.vue +++ b/src/components/cockpit/monitoringPointList/index.vue @@ -156,17 +156,21 @@ const tableStore: any = new TableStore({ 停运: 'danger', 退运: 'danger', 运行: 'success', + 在线: 'success', 中断: 'warning', + 离线: 'danger', 检修: 'warning', 调试: 'warning', null: 'info' }, replaceValue: { 运行: '运行', + 在线: '在线', 退运: '退运', 停运: '停运', 中断: '中断', 检修: '检修', + 离线: '离线', 调试: '调试', null: '/' } @@ -183,7 +187,10 @@ const tableStore: any = new TableStore({ { title: '电压等级', field: 'volGrade', - minWidth: '80' + minWidth: '80', + formatter: (row: any) => { + return row.cellValue==0?'/': row.cellValue+'kV' || '/' + } }, { title: '是否治理', diff --git a/src/components/echarts/rmsboxi.vue b/src/components/echarts/rmsboxi.vue index bf201e2..ea52dd7 100644 --- a/src/components/echarts/rmsboxi.vue +++ b/src/components/echarts/rmsboxi.vue @@ -1,8 +1,8 @@