词云列表修复

lijinlong
许宏杰 2 years ago
parent 686c87676f
commit fb723b3a7e

@ -70,18 +70,16 @@ export default {
}, },
methods: { methods: {
getDataList() { getDataList() {
wordCloud().then((res) => { this.$store.getters.dictObject["tc_cy_type"].forEach((value) => {
res.data.forEach((value) => { this.data.push({
this.data.push({ name: value.dictLabel,
name: this.$filterDict("tc_cy_type", value.type), count: 888,
count: 888,
});
});
this.$nextTick(() => {
this.init();
this.animate();
}); });
}); });
this.$nextTick(() => {
this.init();
this.animate();
});
}, },
init() { init() {
const tags = document.querySelectorAll(".tag"); const tags = document.querySelectorAll(".tag");

Loading…
Cancel
Save