数据统计刷新

This commit is contained in:
dengbw
2022-11-23 15:29:58 +08:00
parent be759cc69d
commit 771e7cd190
6 changed files with 83 additions and 3 deletions
@@ -155,6 +155,20 @@
updateValue() {
this.$refs.table.reload({ page: 1 });
}
},
watch: {
$route: {
handler(route) {
const { path } = route;
if (path !== '/sylive/activity/statistics-team') {
return;
}
if (this.$refs.table) {
this.$refs.table.reload({ page: 1 });
}
},
immediate: true
}
}
};
</script>
@@ -139,6 +139,20 @@
updateValue() {
this.$refs.table.reload({ page: 1 });
}
},
watch: {
$route: {
handler(route) {
const { path } = route;
if (path !== '/sylive/activity/statistics-team') {
return;
}
if (this.$refs.table) {
this.$refs.table.reload({ page: 1 });
}
},
immediate: true
}
}
};
</script>
@@ -292,6 +292,21 @@
updateValue() {
this.$refs.table.reload({ page: 1 });
}
},
watch: {
$route: {
handler(route) {
const { path } = route;
if (path !== '/sylive/activity/statistics') {
return;
}
if (this.$refs.table) {
this.$refs.table.reload({ page: 1 });
this.getStatisticsStackedArea();
}
},
immediate: true
}
}
};
</script>
@@ -155,6 +155,20 @@
updateValue() {
this.$refs.table.reload({ page: 1 });
}
},
watch: {
$route: {
handler(route) {
const { path } = route;
if (path !== '/sylive/activity/statistics') {
return;
}
if (this.$refs.table) {
this.$refs.table.reload({ page: 1 });
}
},
immediate: true
}
}
};
</script>
@@ -139,6 +139,20 @@
updateValue() {
this.$refs.table.reload({ page: 1 });
}
},
watch: {
$route: {
handler(route) {
const { path } = route;
if (path !== '/sylive/activity/statistics') {
return;
}
if (this.$refs.table) {
this.$refs.table.reload({ page: 1 });
}
},
immediate: true
}
}
};
</script>
@@ -45,9 +45,6 @@
} //折线图
};
},
created() {
this.getStatisticsStackedWatchOrder();
},
methods: {
//区域统计折线图
getStatisticsStackedWatchOrder() {
@@ -88,6 +85,18 @@
};
});
}
},
watch: {
$route: {
handler(route) {
const { path } = route;
if (path !== '/sylive/activity/statistics') {
return;
}
this.getStatisticsStackedWatchOrder();
},
immediate: true
}
}
};
</script>