diff --git a/apps/l2/src/views/l2/pdo/components/line.vue b/apps/l2/src/views/l2/pdo/components/line.vue index b720344..9711218 100644 --- a/apps/l2/src/views/l2/pdo/components/line.vue +++ b/apps/l2/src/views/l2/pdo/components/line.vue @@ -36,10 +36,27 @@ export default { }, data() { return { + // 参数列表来源于 DeviceEnum 定义的监测字段 paramFields: [ { label: '带钢速度', value: 'stripSpeed' }, - { label: '张力PorBr1', value: 'tensionPorBr1' }, - { label: '清洗电压', value: 'cleaningVoltage' } + { label: '开卷张力1#', value: 'tensionPorBr1' }, + { label: '开卷张力2#', value: 'tensionPorBr2' }, + { label: '清洗电压', value: 'cleaningVoltage' }, + { label: '清洗电流', value: 'cleaningCurrent' }, + { label: '碱液浓度', value: 'alkaliConcentration' }, + { label: '碱液温度', value: 'alkaliTemperature' }, + { label: 'PH炉出口温度', value: 'phfExitStripTemp' }, + { label: '加热段出口温度', value: 'rtfExitStripTemp' }, + { label: '冷却段出口温度', value: 'jcsExitStripTemp' }, + { label: '均衡段出口温度', value: 'scsExitStripTemp' }, + { label: '锌锅温度', value: 'potTemperature' }, + { label: '锌锅功率', value: 'zincPotPower' }, + { label: '燃气消耗', value: 'gasConsumption' }, + { label: '冷却塔温度', value: 'coolingTowerStripTemp' }, + { label: '光整机张力', value: 'tensionBr5Tm' }, + { label: 'TM出口速度', value: 'stripSpeedTmExit' }, + { label: '拉矫延伸率', value: 'tlElongation' }, + { label: '拉矫张力', value: 'tensionTlBr7' } ], paramField: 'stripSpeed', treeProps: { @@ -155,8 +172,12 @@ export default { drawLineChart() { if (!this.chart) return; + // 清理旧图层,避免“暂无数据”残留 + this.chart.clear(); + const option = { backgroundColor: 'transparent', + graphic: [], // 清除占位/无数据图层 tooltip: { trigger: 'axis', axisPointer: { @@ -281,7 +302,7 @@ export default { ] }; - this.chart.setOption(option); + this.chart.setOption(option, true); }, // 绘制空图表(未选择实绩) diff --git a/apps/l2/src/views/l2/pdo/index.vue b/apps/l2/src/views/l2/pdo/index.vue index 1a5da5d..8ac8980 100644 --- a/apps/l2/src/views/l2/pdo/index.vue +++ b/apps/l2/src/views/l2/pdo/index.vue @@ -25,19 +25,19 @@