From 74919782a022feda3ee4b23f2cdc7b6d62473ac0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com> Date: Tue, 22 Aug 2023 17:01:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=8D=E4=BA=91=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sentiment/components/WordCloud.vue | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/src/views/privateOrder/sentiment/components/WordCloud.vue b/src/views/privateOrder/sentiment/components/WordCloud.vue index 00e675b..e16d4ca 100644 --- a/src/views/privateOrder/sentiment/components/WordCloud.vue +++ b/src/views/privateOrder/sentiment/components/WordCloud.vue @@ -51,24 +51,22 @@ export default { return { tagList: [], data: [ - { name: "太仓市委", count: 200 }, - { name: "“交通先行”抢位长三角", count: 400 }, - { name: "太仓速度", count: 600 }, - { name: "最具幸福感城市", count: 2000 }, - { name: "振翅高飞", count: 350 }, - { name: "娄城防疫", count: 666 }, - { name: "城市更新", count: 899 }, - { name: "争当猛虎尖兵", count: 899 }, - { name: "家在太仓 情暖娄城", count: 899 }, - { name: "国土空间全域整治", count: 899 }, + // { name: "太仓市委", count: 200 }, + // { name: "“交通先行”抢位长三角", count: 400 }, + // { name: "太仓速度", count: 600 }, + // { name: "最具幸福感城市", count: 2000 }, + // { name: "振翅高飞", count: 350 }, + // { name: "娄城防疫", count: 666 }, + // { name: "城市更新", count: 899 }, + // { name: "争当猛虎尖兵", count: 899 }, + // { name: "家在太仓 情暖娄城", count: 899 }, + // { name: "国土空间全域整治", count: 899 }, ], }; }, - created() { - }, + created() {}, mounted() { - this.init(); - this.animate(); + this.getDataList(); }, methods: { getDataList() { @@ -76,9 +74,13 @@ export default { res.data.forEach((value) => { this.data.push({ name: this.$filterDict("tc_cy_type", value.type), - count: 3, + count: 888, }); }); + this.$nextTick(() => { + this.init(); + this.animate(); + }); }); }, init() {