diff --git a/src/views/dashboard/components/PanelGroup.vue b/src/views/dashboard/components/PanelGroup.vue index bdbe5cc..df0acd2 100644 --- a/src/views/dashboard/components/PanelGroup.vue +++ b/src/views/dashboard/components/PanelGroup.vue @@ -55,13 +55,18 @@ this.getAlarmCount() this.getJobCount() }, - activated(){ + activated() { this.getWellCount() this.getDeviceCount() this.getAlarmCount() this.getJobCount() }, methods: { + // 刷新报警和工单数 + refreshData() { + this.getAlarmCount() + this.getJobCount() + }, goPage(path) { this.$router.push(path) }, diff --git a/src/views/dashboard/components/PanelGroup.vue b/src/views/dashboard/components/PanelGroup.vue index bdbe5cc..df0acd2 100644 --- a/src/views/dashboard/components/PanelGroup.vue +++ b/src/views/dashboard/components/PanelGroup.vue @@ -55,13 +55,18 @@ this.getAlarmCount() this.getJobCount() }, - activated(){ + activated() { this.getWellCount() this.getDeviceCount() this.getAlarmCount() this.getJobCount() }, methods: { + // 刷新报警和工单数 + refreshData() { + this.getAlarmCount() + this.getJobCount() + }, goPage(path) { this.$router.push(path) }, diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 1d93ab3..f456d70 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -1,6 +1,6 @@