| | |
| | | <!-- |
| | | * @Date: 2024-04-09 22:11:21 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-11-04 11:19:09 |
| | | * @LastEditors: 李喆(开发组) lzhe@yxqiche.com |
| | | * @LastEditTime: 2025-04-15 13:49:08 |
| | | * @FilePath: /cps-web/src/views/mdc/realtime-status/index.vue |
| | | 实时看板 |
| | | --> |
| | |
| | | item.active = false; |
| | | }) |
| | | this.devicestatus[index].active = true; |
| | | this.deviceStatus = [item.status]; |
| | | if(item.status == 10) { //全部 |
| | | this.deviceStatus = []; |
| | | }else { |
| | | this.deviceStatus = [item.status]; |
| | | } |
| | | this.current = "1"; |
| | | this.gettimestatus(); |
| | | }, |
| | | prev() { |
| | |
| | | getdevicestatus() { |
| | | this.$HTTP.get(`/api/mdc/work-station-analysis/device-status-statistics`).then(res => { |
| | | if (res.code == 200) { |
| | | var deviceNumAll = 0; |
| | | res.data.forEach(item => { |
| | | item.active = false; |
| | | this.allwcs.forEach(item1 => { |
| | |
| | | if (this.$route.query.currentTag == item.status) { |
| | | item.active = true; |
| | | } |
| | | deviceNumAll += item.deviceNum; |
| | | }) |
| | | res.data[0].icon = "Position"; |
| | | res.data[1].icon = "Loading"; |
| | | res.data[2].icon = "Clock"; |
| | | res.data[3].icon = "Warning"; |
| | | res.data[4].icon = "Odometer"; |
| | | res.data.push({ |
| | | active: false, |
| | | color: "#08f1f4", |
| | | deviceNum: deviceNumAll, |
| | | icon: "price-tag", |
| | | status: "10", |
| | | statusName: "全部", |
| | | }) |
| | | this.devicestatus = res.data; |
| | | } |
| | | }) |