@@ -51,8 +51,21 @@ export default { | |||||
chart: null | chart: null | ||||
}; | }; | ||||
}, | }, | ||||
watch: { | |||||
data: { | |||||
handler: function (val) { | |||||
this.$nextTick(function(){ | |||||
setTimeout(()=>{ | |||||
this.initChart(); | |||||
},2000) | |||||
console.log(val) | |||||
}); | |||||
}, | |||||
immediate: true, | |||||
deep:true | |||||
} | |||||
}, | |||||
mounted () { | mounted () { | ||||
this.initChart(); | |||||
}, | }, | ||||
computed: { | computed: { | ||||
}, | }, | ||||
@@ -106,7 +106,6 @@ export default { | |||||
value: rr.ydmj, | value: rr.ydmj, | ||||
unit: '万元' | unit: '万元' | ||||
}) | }) | ||||
this.currentComp.left[2].countNum += rr.ydmj; | |||||
}) | }) | ||||
this.currentComp.buttom[0].data = { | this.currentComp.buttom[0].data = { | ||||