| | |
| | | <!-- |
| | | * @Date: 2024-04-09 22:11:21 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-09-06 14:13:16 |
| | | * @LastEditTime: 2024-09-09 11:23:54 |
| | | * @FilePath: /mdc/Users/mache/Documents/demo/cps-web/src/views/mdc/realtime-status/index.vue |
| | | 实时看板 |
| | | --> |
| | |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.deviceStatus = [...this.$route.query.currentTag]; |
| | | this.deviceStatus = this.$route.query.currentTag?[...this.$route.query.currentTag]:[]; |
| | | this.getstationlabelList(); //获取标签视图下的list |
| | | this.setIntervalTime(); //十秒增加时间 |
| | | this.getprocess(); //获取颜色==》获取顶部title==》设置几行几列==》ws |
| | |
| | | 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) |
| | |
| | | item.color = item1.color; |
| | | } |
| | | }) |
| | | if(this.$route.query.currentTag == item.status) { |
| | | if (this.$route.query.currentTag == item.status) { |
| | | item.active = true; |
| | | } |
| | | }) |