ソースを参照

warehouseecharts

qinhouyu 2 年 前
コミット
8381da8b34
2 ファイル変更7 行追加9 行削除
  1. 5 4
      src/views/bigdata/bigdata.vue
  2. 2 5
      src/views/bigdata/chart-team.vue

+ 5 - 4
src/views/bigdata/bigdata.vue

@@ -55,9 +55,8 @@
       <div class="bigdata-list wid-li-3 m-l-15 flex-r">
         <div class="b-con mg-b-20 tall">
           <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
-            <span></span>
+            <span>仓库信息</span>
           </div>
-          <chartFireCause></chartFireCause>
         </div>
         <div class="b-con mg-b-20 b-49">
           <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
@@ -67,9 +66,9 @@
         </div>
         <div class="b-con mg-b-20 b-49">
           <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
-            <span></span>
+            <span>仓库信息</span>
           </div>
-          <chartFireCause></chartFireCause>
+          <chartwarehouse></chartwarehouse>
         </div>
       </div>
         <!-- <div class="b-con mg-b-20 b-49">
@@ -149,6 +148,7 @@ import bigdataSupermap from '@/components/supermap' //超图
 //echarts
 import chartEvent from './chart-event.vue' //1  隐患整改情况
 import chartteam from './chart-team.vue'
+import chartwarehouse from './chart-warehouse.vue'
 import chartForestFarm from './chart-forestFarm.vue' //2  行业高危企业
 import chartEquipmentType from './chart-equipmentType.vue' //3  从业人员分布情况
 import chartFireCause from './chart-fireCause.vue' //4  应急物资、、
@@ -177,6 +177,7 @@ export default {
     chartDeviceReportingEvents,
     chartEventTrend,
     chartKeyArea,
+    chartwarehouse,
     chartAncientTree,
     chartWeatherTrends,
     chartGridDistribution,

+ 2 - 5
src/views/bigdata/chart-team.vue

@@ -58,7 +58,7 @@ export default {
     getList() {
       getBigDataForQ('team').then(resp =>{
         this.myChart = echarts.init(document.getElementById('teamecharts'));
-        this.drawECharts(resp.data);
+        this.drawECharts(resp.data!=null?resp.data:[]);
       })
     },
 
@@ -69,9 +69,6 @@ export default {
 }
 </script>
 <style>
-#szecharts {
-  width: 100%;
-  height: 100%;
-}
+
 </style>