1
lzhe
2024-09-30 1988d77f4df3c01a9137303e0c959b3442c14377
src/views/mdc/realtime-status/index.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2024-04-09 22:11:21
 * @LastEditors: gaosp
 * @LastEditTime: 2024-09-04 22:11:55
 * @LastEditors: lzhe lzhe@example.com
 * @LastEditTime: 2024-09-09 11:23:54
 * @FilePath: /mdc/Users/mache/Documents/demo/cps-web/src/views/mdc/realtime-status/index.vue
 实时看板
-->
@@ -127,6 +127,7 @@
      }
   },
   mounted() {
      this.deviceStatus = this.$route.query.currentTag?[...this.$route.query.currentTag]:[];
      this.getstationlabelList();  //获取标签视图下的list
      this.setIntervalTime();   //十秒增加时间
      this.getprocess(); //获取颜色==》获取顶部title==》设置几行几列==》ws
@@ -277,7 +278,7 @@
            workStationGroupIdList: this.workStationGroupIdList
         }
         this.timestatus = [];
         this.$HTTP.post(`/api/blade-cps/workstation/real-time-status?current=${this.current || 0}&size=${this.size || 0}`, obj).then(res => {
         this.$HTTP.post(`/api/blade-cps/workstation/real-time-status?current=${this.current || 0}&size=${this.size || 6}`, obj).then(res => {
            if (res.code == 200) {
               var ids = [];
               console.log(this.allwcs, res.data)
@@ -411,6 +412,9 @@
                        item.color = item1.color;
                     }
                  })
                  if (this.$route.query.currentTag == item.status) {
                     item.active = true;
                  }
               })
               res.data[0].icon = "Position";
               res.data[1].icon = "Loading";