whao 3 rokov pred
rodič
commit
0e2ac648e9
1 zmenil súbory, kde vykonal 13 pridanie a 0 odobranie
  1. 13 0
      src/views/forest.vue

+ 13 - 0
src/views/forest.vue

@@ -1303,6 +1303,19 @@
           //今日事件
           that.todayEventCountList = res.data.eventcountStatus
           that.todayEventSourcetList = res.data.eventcountSource
+					//插入图标
+					res.data.eventcountStatus.forEach(function(data, index) {
+						that.$set(that.todayEventCountList[0], 'icon', 'sj-icon-wcl');
+						that.$set(that.todayEventCountList[1], 'icon', 'sj-icon-clz');
+						that.$set(that.todayEventCountList[2], 'icon', 'sj-icon-ywc');
+					
+					});
+					res.data.eventcountSource.forEach(function(data, index) {
+						that.$set(that.todayEventSourcetList[0], 'icon', 'sj-icon-rg');
+						that.$set(that.todayEventSourcetList[1], 'icon', 'sj-icon-hx');
+						that.$set(that.todayEventSourcetList[2], 'icon', 'sj-icon-kk');
+					
+					});
           //  事件分布
           that.todayEventCountDeptList = res.data.eventcountDept
           //  事件分类