#
yxFwq
2024-10-08 4c8e56927ad10ee8e7b0b0fb4bb379900582a17b
#
1个文件已修改
12 ■■■■ 已修改文件
src/main/webapp/views/wcsmap/wcsmap.html 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/wcsmap/wcsmap.html
@@ -76,6 +76,7 @@
            },
            getSiteInfo() {
                let _this = this
                $.ajax({
                    url: baseUrl + "/console/latest/data/site",
                    headers: { 'token': localStorage.getItem('token') },
@@ -87,8 +88,13 @@
                                // updateColor(item, item.originColor);
                                for (let site of sites) {
                                    if (site.siteId == item.title) {
                                        var conve = this.conveyor.find(con => con.title == site.siteId)
                                        var conve = _this.conveyor.find(con => con.title == site.siteId)
                                        // var conve;
                                        // for (let cc of this.conveyor) {
                                        //     if (cc.title == site.siteId) {
                                        //         conve = cc
                                        //     }
                                        // }
                                        if (site.siteStatus == 'site-auto-run-id') {
                                            // 自动+有物+ID
                                            conve.background = 0xFC3030
@@ -109,7 +115,7 @@
                                            // 非自动/手动
                                            conve.background = 0xB8B8B8
                                        }
                                        this.updateColor(item, conve)
                                        _this.updateColor(item, conve)
                                    }
                                }
                                // for (let k of this.sites) {