|
@@ -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, '所有');
|