Browse Source

fix:修改单位

temp
zhaohy 3 months ago
parent
commit
91b0ca9fb8
  1. 10
      hx-ai-intelligent/src/view/alarmManagement/energyAlarm/look.vue
  2. 4
      hx-ai-intelligent/src/view/alarmManagement/equipmentAlarm/look.vue

10
hx-ai-intelligent/src/view/alarmManagement/energyAlarm/look.vue

@ -133,7 +133,13 @@
type: 'shadow', type: 'shadow',
}, },
formatter: function (params: any) { formatter: function (params: any) {
let res = params[0].marker + ' ' + params[0].seriesName + ' : ' + params[0].data; let res =
params[0].marker +
' ' +
params[0].seriesName +
' : ' +
params[0].data +
data.unit;
return res; return res;
}, },
}, },
@ -321,7 +327,7 @@
position: 'top', position: 'top',
top: '10', top: '10',
formatter: function (value: any) { formatter: function (value: any) {
return Number(energyAlarm[value.dataIndex]) + 'V'; return Number(energyAlarm[value.dataIndex]) + data.unit;
}, },
}, },
areaStyle: { areaStyle: {

4
hx-ai-intelligent/src/view/alarmManagement/equipmentAlarm/look.vue

@ -134,7 +134,7 @@
}, },
formatter: function (params: any) { formatter: function (params: any) {
let res = let res =
params[0].marker + ' ' + params[0].seriesName + ' : ' + params[0].data + 'V'; params[0].marker + ' ' + params[0].seriesName + ' : ' + params[0].data + data.unit;
return res; return res;
}, },
}, },
@ -210,7 +210,7 @@
axisLabel: { axisLabel: {
show: true, // show: true, //
formatter: function (value: any) { formatter: function (value: any) {
return value + ' V'; // return value + ' ' + data.unit; //
}, },
}, },
}, },

Loading…
Cancel
Save