Browse Source

农业 可视化 图标

wangzhe 2 years ago
parent
commit
182c551cce
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/datacenter.vue

+ 2 - 1
src/views/datacenter.vue

@@ -351,7 +351,8 @@ export default {
           map.key = list[i].type;
           let type = list[i].type;
           let types = list[i].type.split("_");
-          map.icon = 'sj-icon-' + types[types.length - 1].replace("@", "_");
+          // map.icon = 'sj-icon-' + types[types.length - 1].replace("@", "_");
+          map.icon = ('sj-icon-' + types.slice(-2)).replace(",", "").replace("@", "_");
           // map.icon = 'sj-icon-' + list[i].type;
           if(list[i].name == '农业技术推广总站信息'){
             map.name="农业技术推广总站";