From 433618e71d113f96a1ca10c988facbcf175e2cdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Mon, 8 Apr 2024 15:13:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/quality/base/qualityIsra/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/quality/base/qualityIsra/index.vue b/src/views/quality/base/qualityIsra/index.vue index fe04cb38..14b5ce08 100644 --- a/src/views/quality/base/qualityIsra/index.vue +++ b/src/views/quality/base/qualityIsra/index.vue @@ -226,8 +226,8 @@ export default { obj.name = i obj.data = dataArr mapLegendData.push(i) + mapArr.push(obj) } - mapArr.push(obj) console.log(mapArr); // console.log(res.data[res]); var chartDom = this.activeName === 'day' ? document.getElementById('mapDayMain') : this.activeName === 'week' ? document.getElementById('mapWeekMain') : document.getElementById('mapMonthMain') @@ -269,6 +269,7 @@ export default { }, series: mapArr } + myChart.clear() option && myChart.setOption(option); }) this.$axios({ @@ -376,6 +377,7 @@ export default { } ] } + myChart.clear() option && myChart.setOption(option); }) },