1
李喆(开发组)
2025-04-15 089e3d72237c5235a482a0e3b1078a402eed00c0
1
已修改1个文件
21 ■■■■ 文件已修改
src/views/mdc/realtime-status/index.vue 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/realtime-status/index.vue
@@ -1,7 +1,7 @@
<!--
 * @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
 实时看板
-->
@@ -194,7 +194,12 @@
                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() {
@@ -350,6 +355,7 @@
        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 => {
@@ -360,12 +366,21 @@
                        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;
                }
            })