Browse Source

私宅报建都改为0

maxiaoxiao 11 months ago
parent
commit
fe1b17c104
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/views/cockpit/bjxm.vue

+ 5 - 2
src/views/cockpit/bjxm.vue

@@ -17,7 +17,7 @@
         </div>
         <div class="text">
           <p>报建数量</p>
-          <span>{{sdata.sj_number}}</span>个
+          <span>{{left_value=='csbj'?sdata.sj_number:0}}</span>个
         </div>
       </div>
       <div class="item">
@@ -57,6 +57,9 @@ export default {
   watch: {},
   //方法集合
   methods: {
+    changeChartsLeft(){
+      this.init_bjxm_echart_info();
+    },
     async init_info(params) {
       const that = this;
       let obj = {
@@ -155,7 +158,7 @@ export default {
       // 数据
       const xAxis = store.state.cockpit_bjxm.csbj.csbj_echart.xAxis
       const bat_data = store.state.cockpit_bjxm.csbj.csbj_echart.bat_data
-      const line_data = store.state.cockpit_bjxm.csbj.csbj_echart.line_data
+      const line_data =this.left_value =='csbj'? store.state.cockpit_bjxm.csbj.csbj_echart.line_data:[0,0,0,0,0,0]
 
       let option = {
         //你的代码