From 0f9a51df059f7762306e13d38c1061cdcddbc4a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Fri, 11 Jul 2025 14:47:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/charts/pie/index.js | 15 ++++++++++++++- src/views/sanqing/index.js | 1 - 2 files changed, 14 insertions(+), 2 deletions(-) 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 = {