定时任务

This commit is contained in:
lnljyang
2026-04-24 14:42:53 +08:00
parent 04ffeeaf53
commit 9693f274d2
11 changed files with 128 additions and 13 deletions

View File

@@ -81,6 +81,12 @@ export default {
this.currentBgColor2 = "#00D4AA";
this.getData("china");
//this.getData("440000");
// 监听事件总线的刷新事件
this.$eventBus.$on('refresh-all-data', () => {
this.getYearData();
this.getData(this.code);
});
},
methods: {
changeShow1() {
@@ -768,6 +774,10 @@ export default {
destroyed() {
// 销毁事件监听
this.$refs.CenterMap.chart.off("click");
// 移除事件总线的刷新事件监听
this.$eventBus.$off('refresh-all-data');
if (this.charts) {
this.echarts.dispose();
}