소스 검색

报建项目

zpf 10 달 전
부모
커밋
6bd7c2eadc
1개의 변경된 파일47개의 추가작업 그리고 3개의 파일을 삭제
  1. 47 3
      src/views/cockpit/bjxm.vue

+ 47 - 3
src/views/cockpit/bjxm.vue

@@ -78,10 +78,10 @@ export default {
     changeChartsLeft() {
 
       if (this.left_value == 'csbj') {
-        this.init_bjxm_cs_echart(this.csbj_echart);
+        this.init_bjxm_cs_echart(this.csbj_ps_echart);
 
       } else {
-        this.init_bjxm_cs_echart(this.szbj_echart);
+        this.init_bjxm_cs_echart(this.szbj_ps_echart);
 
       }
     },
@@ -117,10 +117,24 @@ export default {
       await this.init_bjxm_echart_info(value);
       if (value.id == '4602') {
         this.xzqh_flag = true
-        this.init_bjxm_cs_echart(this.csbj_ps_echart);
+        if (this.left_value == 'csbj') {
+          this.init_bjxm_cs_echart(this.csbj_ps_echart);
+
+        } else {
+          this.init_bjxm_cs_echart(this.szbj_ps_echart);
+
+        }
       } else {
         this.xzqh_flag = false
         this.changeChartsLeft();
+
+        if (this.left_value == 'csbj') {
+          this.init_bjxm_cs_echart(this.csbj_echart);
+
+        } else {
+          this.init_bjxm_cs_echart(this.szbj_echart);
+
+        }
       }
 
     },
@@ -189,6 +203,36 @@ export default {
         bat_data: bat_data_szbj,
         line_data: line_data_szbj,
 
+      }
+      // 私宅报建,全市
+
+      let obj_szbj_ps = {
+        jscType: 'jsc_bjxm_szbj_qxfl',
+        beginTime: formattedDate,
+        endTime: formattedDate_endTime,
+        id: params ? params.id : '4602'
+      };
+
+
+      let data_szbj_ps = await QueryList(obj_szbj_ps);
+      let xAxis_szbj_ps = [];
+      let bat_data_szbj_ps = [];
+      let line_data_szbj_ps = [];
+
+      data_szbj_ps.data.forEach(element => {
+
+        xAxis_szbj_ps.push(element.xzqmc);
+        bat_data_szbj_ps.push(element.sj_mj);
+        line_data_szbj_ps.push(element.sj_number);
+
+
+      });
+
+      this.szbj_ps_echart = {
+        xAxis: xAxis_szbj_ps,
+        bat_data: bat_data_szbj_ps,
+        line_data: line_data_szbj_ps,
+
       }
 
       // 城市报建,全市