diff --git a/src/store/modules/websocket.js b/src/store/modules/websocket.js index f87e54c..840ba53 100644 --- a/src/store/modules/websocket.js +++ b/src/store/modules/websocket.js @@ -44,7 +44,6 @@ } // 监听socket消息接收 socket.onmessage = function(msg) { - debugger // 转换为json对象 const data = JSON.parse(msg.data) console.log(data) diff --git a/src/store/modules/websocket.js b/src/store/modules/websocket.js index f87e54c..840ba53 100644 --- a/src/store/modules/websocket.js +++ b/src/store/modules/websocket.js @@ -44,7 +44,6 @@ } // 监听socket消息接收 socket.onmessage = function(msg) { - debugger // 转换为json对象 const data = JSON.parse(msg.data) console.log(data) diff --git a/src/views/dashboard/components/PanelGroup.vue b/src/views/dashboard/components/PanelGroup.vue index eb41915..311ba62 100644 --- a/src/views/dashboard/components/PanelGroup.vue +++ b/src/views/dashboard/components/PanelGroup.vue @@ -62,6 +62,10 @@ this.getJobCount() }, methods: { + refresh() { + this.getAlarmCount() + this.getJobCount() + }, goPage(path) { this.$router.push(path) }, diff --git a/src/store/modules/websocket.js b/src/store/modules/websocket.js index f87e54c..840ba53 100644 --- a/src/store/modules/websocket.js +++ b/src/store/modules/websocket.js @@ -44,7 +44,6 @@ } // 监听socket消息接收 socket.onmessage = function(msg) { - debugger // 转换为json对象 const data = JSON.parse(msg.data) console.log(data) diff --git a/src/views/dashboard/components/PanelGroup.vue b/src/views/dashboard/components/PanelGroup.vue index eb41915..311ba62 100644 --- a/src/views/dashboard/components/PanelGroup.vue +++ b/src/views/dashboard/components/PanelGroup.vue @@ -62,6 +62,10 @@ this.getJobCount() }, methods: { + refresh() { + 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 3e52c4d..d2a03e8 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -1,6 +1,6 @@