ソースを参照

消防数据中心增加判断

wang_xy 2 年 前
コミット
2b3a329786
1 ファイル変更12 行追加11 行削除
  1. 12 11
      src/views/datacenter.vue

+ 12 - 11
src/views/datacenter.vue

@@ -341,18 +341,19 @@ export default {
         that.resourcesList = res.data;
         //截取data.resourceTable字段中“_”分隔符最后一个作为关键字,重新拼接成前端需要的图标:class,格式sj-icon-xxxx,将其set回原数组
         res.data.forEach(function (data, index) {
-          let icon =
-            "sj" +
-            "-" +
-            "icon" +
-            "-" +
-            data.type.replaceAll("_", "-").replaceAll("@", "-");
-          console.log("icon_" + (index + 1) + "=", icon);
-          that.$set(that.resourcesList[index], "icon", icon);
-
-          //每个图标对应固定颜色
-          that.$set(that.resourcesList[index], "bg", getIconBg(icon));
+          if(data.type != "centerdata_t_forest_fireteam"){
+            let icon =
+              "sj" +
+              "-" +
+              "icon" +
+              "-" +
+              data.type.replaceAll("_", "-").replaceAll("@", "-");
+            console.log("icon_" + (index + 1) + "=", icon);
+            that.$set(that.resourcesList[index], "icon", icon);
 
+            //每个图标对应固定颜色
+            that.$set(that.resourcesList[index], "bg", getIconBg(icon));
+          }
           // if(index < 5){
           //   // that.fireControlViewPoint(data.type, 'undefined');
           //   that.fireControlViewPoint(data.type, '所有');