数据统计刷新
This commit is contained in:
@@ -155,6 +155,20 @@
|
|||||||
updateValue() {
|
updateValue() {
|
||||||
this.$refs.table.reload({ page: 1 });
|
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>
|
</script>
|
||||||
|
|||||||
@@ -139,6 +139,20 @@
|
|||||||
updateValue() {
|
updateValue() {
|
||||||
this.$refs.table.reload({ page: 1 });
|
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>
|
</script>
|
||||||
|
|||||||
@@ -292,6 +292,21 @@
|
|||||||
updateValue() {
|
updateValue() {
|
||||||
this.$refs.table.reload({ page: 1 });
|
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>
|
</script>
|
||||||
|
|||||||
@@ -155,6 +155,20 @@
|
|||||||
updateValue() {
|
updateValue() {
|
||||||
this.$refs.table.reload({ page: 1 });
|
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>
|
</script>
|
||||||
|
|||||||
@@ -139,6 +139,20 @@
|
|||||||
updateValue() {
|
updateValue() {
|
||||||
this.$refs.table.reload({ page: 1 });
|
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>
|
</script>
|
||||||
|
|||||||
@@ -45,9 +45,6 @@
|
|||||||
} //折线图
|
} //折线图
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
|
||||||
this.getStatisticsStackedWatchOrder();
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
//区域统计折线图
|
//区域统计折线图
|
||||||
getStatisticsStackedWatchOrder() {
|
getStatisticsStackedWatchOrder() {
|
||||||
@@ -88,6 +85,18 @@
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
$route: {
|
||||||
|
handler(route) {
|
||||||
|
const { path } = route;
|
||||||
|
if (path !== '/sylive/activity/statistics') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.getStatisticsStackedWatchOrder();
|
||||||
|
},
|
||||||
|
immediate: true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user