mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-28 11:19:24 +08:00
系统总览字段修改
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user