diff --git a/src/components/charts/pie/index.js b/src/components/charts/pie/index.js index 9120540..98b08a1 100644 --- a/src/components/charts/pie/index.js +++ b/src/components/charts/pie/index.js @@ -51,8 +51,21 @@ export default { chart: null }; }, + watch: { + data: { + handler: function (val) { + this.$nextTick(function(){ + setTimeout(()=>{ + this.initChart(); + },2000) + console.log(val) + }); + }, + immediate: true, + deep:true + } + }, mounted () { - this.initChart(); }, computed: { }, diff --git a/src/views/sanqing/index.js b/src/views/sanqing/index.js index f720613..a07f219 100644 --- a/src/views/sanqing/index.js +++ b/src/views/sanqing/index.js @@ -106,7 +106,6 @@ export default { value: rr.ydmj, unit: '万元' }) - this.currentComp.left[2].countNum += rr.ydmj; }) this.currentComp.buttom[0].data = {