change(ems): 更新图表显示

- 在记录蒸汽瞬时值和当前蒸汽曲线页面添加监测点名称筛选条件
- 更新当前蒸汽曲线图表,将仪表值改为耗量显示
master
zch 8 months ago
parent 75d54bd308
commit 46c997fdc0

@ -288,6 +288,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
monitorCode: null, monitorCode: null,
monitorName: null,
collectTime: null, collectTime: null,
fluxFlow: null, fluxFlow: null,
steamFlow: null, steamFlow: null,

@ -116,6 +116,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
monitorCode: null, monitorCode: null,
monitorName: null,
instrumentValue: null, instrumentValue: null,
expend: null, expend: null,
recordTime: null, recordTime: null,
@ -259,7 +260,7 @@ export default {
const {data} = await pointSteamInstantList(query) const {data} = await pointSteamInstantList(query)
let option1 = { let option1 = {
title: { title: {
text: this.selectMonitorName + ' 仪表值', text: this.selectMonitorName + ' 耗量',
x: 'center' x: 'center'
}, },
grid: { grid: {
@ -304,7 +305,7 @@ export default {
yAxis: [ yAxis: [
{ {
type: 'value', type: 'value',
name: '仪表值', name: '耗量',
nameTextStyle: { nameTextStyle: {
color: '#000000' color: '#000000'
}, },
@ -330,13 +331,13 @@ export default {
], ],
series: [ series: [
{ {
name: '仪表值', name: '耗量',
type: 'line', type: 'line',
smooth: true, //线 smooth: true, //线
showAllSymbol: true, // showAllSymbol: true, //
symbol: 'circle', // symbol: 'circle', //
symbolSize: 10, // symbolSize: 10, //
data: data.map(e => e.instrumentValue) data: data.map(e => e.expend)
}, },
] ]
} }

Loading…
Cancel
Save