فهرست منبع

Merge branch 'master' of http://172.16.90.201:3000/castgroup_forest/castgroup_bigscreen

wangcc 2 سال پیش
والد
کامیت
6fbeb41711
2فایلهای تغییر یافته به همراه18 افزوده شده و 4 حذف شده
  1. 15 0
      src/dataSchema/page6Char1Schema.js
  2. 3 4
      src/views/index.vue

+ 15 - 0
src/dataSchema/page6Char1Schema.js

@@ -127,6 +127,21 @@ let page6Char1Schema = {
                 normal: { color: "rgb(255, 255, 0)" },
             }
         },
+        {
+            name: '偷盗林木',
+            type: 'bar',
+            stack: 'total',
+            label: {
+                show: false
+            },
+            emphasis: {
+                focus: 'series'
+            },
+            data: [1, 8, 8, 2, 6, 9, 9],
+            itemStyle: {//自定义颜色
+                // normal: { color: "rgb(255, 255, 0)" },
+            }
+        },
     ]
 
 }

+ 3 - 4
src/views/index.vue

@@ -3,13 +3,10 @@
  * @Author: wangcc
  * @Date: 2022-07-06 15:56:45
  * @LastEditors: wangcc
- * @LastEditTime: 2022-07-07 11:49:29
+ * @LastEditTime: 2022-07-07 13:58:06
  * @FilePath: \castgroup_bigscreen\src\views\index.vue
  * @Copyright: Copyright (c) 2016~2022 by wangcc, All Rights Reserved. 
 -->
-<!--
- * @LastEditors: gcz
--->
 <template>
   <div class>
     <dv-full-screen-container>
@@ -967,6 +964,7 @@ export default {
           this.page6Char1.series[0].data = [];
           this.page6Char1.series[1].data = [];
           this.page6Char1.series[2].data = [];
+          this.page6Char1.series[3].data = [];
 
           const rows = res.data;
           // console.log(rows)
@@ -978,6 +976,7 @@ export default {
             this.page6Char1.series[0].data.push(element.pestCount);
             this.page6Char1.series[1].data.push(element.fireCount);
             this.page6Char1.series[2].data.push(element.cutCount);
+            this.page6Char1.series[3].data.push(element.stealCount);
           });
           // console.log('x坐标',  this.page6Char1.xAxis.data)