瀏覽代碼

监控页面数据动态刷新

oyq28 2 年之前
父節點
當前提交
592aa7178c
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      imcs-ui/src/views/zuihou/machiningClient/touchScreen/Index.vue

+ 8 - 0
imcs-ui/src/views/zuihou/machiningClient/touchScreen/Index.vue

@@ -317,6 +317,14 @@ export default {
   created() {
   created() {
     this.getStation();
     this.getStation();
   },
   },
+  watch: {
+    'taskData': {
+        handler(val, oldVal) {
+          // 加载列表数据
+          window.location.reload()
+        }
+      }
+  },
   computed: {
   computed: {
     currentUser() {
     currentUser() {
       return this.$store.state.account.user;
       return this.$store.state.account.user;