Переглянути джерело

数字资源 数据中心

wangzhe 2 роки тому
батько
коміт
f98de517d2
2 змінених файлів з 25 додано та 1 видалено
  1. 24 0
      src/assets/iconfont/iconfont.css
  2. 1 1
      src/views/datacenter.vue

+ 24 - 0
src/assets/iconfont/iconfont.css

@@ -98,6 +98,30 @@
 .sj-icon-clgj:before {
   content: "\e605";
 }
+/* 违建信息 */
+.sj-icon-construction:before {
+  content: "\e73f";
+}
+/* 矿臧资源 */
+.sj-icon-deposit:before {
+  content: "\e633";
+}
+/* 森林资源 */
+.sj-icon-forest:before {
+  content: "\e672";
+}
+/* 地质灾害易发区 */
+.sj-icon-hazard:before {
+  content: "\e61b";
+}
+/* 水能资源 */
+.sj-icon-hydroenergy:before {
+  content: "\e930";
+}
+/* 土地资源 */
+.sj-icon-land:before {
+  content: "\e629";
+}
 /* 林场资源 */
 .sj-icon-lczy:before {
   content: "\e60b";

+ 1 - 1
src/views/datacenter.vue

@@ -297,12 +297,12 @@ export default {
       //获取左侧菜单列表
       getResource().then(res => {
         that.resourcesList = res.data
+        console.log("数据中心", that.resourcesList)
         //截取data.resourceTable字段中“_”分隔符最后一个作为关键字,重新拼接成前端需要的图标:class,格式sj-icon-xxxx,将其set回原数组
         res.data.forEach(function(data, index) {
           that.$set(that.resourcesList[index], 'icon', 'sj' + '-' + 'icon' + '-' + data
             .resourceTable.split('_').slice(-1))
         })
-        console.log(that.resourcesList)
 
       })
     },