系统总览字段修改

This commit is contained in:
ym1026
2025-09-03 13:53:00 +08:00
parent 6d6d05e18f
commit 1568677c8e
12 changed files with 499 additions and 291 deletions

View File

@@ -15,6 +15,10 @@
export default {
name: '',
props: {
total:{
type:Object,
default:()=>{}
},
deviceInfo: {
type: Array,
default: () => []
@@ -27,7 +31,7 @@ export default {
name: '日光伏设备告警',
key: 'key1',
lineColor: '#22E4FF',
value: 0,
value: 1111,
d: ''
},
{
@@ -62,11 +66,28 @@ export default {
watch: {
deviceInfo: {
handler(n) {
let that=this
this.$nextTick(() => {
this.drawLineChart()
})
}
// immediate: true
},
total:{
handler(n){
if(n){
let that=this
that.curList.forEach((item)=>{
item.value=that.total[item.key]
})
}
},
deep: true, // 深度监听
immediate: true,
}
},
mounted() {},
@@ -166,7 +187,6 @@ export default {
series: this.lineChartData.ydata
}
option && faultChart.setOption(option)
console.log(this.lineChartData, 'this.lineChartData')
window.addEventListener('resize', this.handleResize)
}
}