zpf 1 år sedan
förälder
incheckning
f7368f5ca5

+ 0 - 4
src/views/cockpit/bjxm.vue

@@ -121,8 +121,6 @@ export default {
         line_data: line_data,
 
       }
-      console.log('store.state.cockpit_bjxm.csbj.csbj_echart: ', store.state.cockpit_bjxm.csbj.csbj_echart);
-
       // 私宅报建
       let obj_szbj = {
         jscType: 'jsc_bjxm_szbj_yffl',
@@ -150,7 +148,6 @@ export default {
         line_data: line_data_szbj,
 
       }
-      console.log(store.state.cockpit_bjxm.szbj.szbj_echart, "store.state.cockpit_bjxm.szbj.szbj_echart");
 
       this.init_bjxm_echart();
 
@@ -213,7 +210,6 @@ export default {
       const xAxis = this.left_value == 'csbj' ? store.state.cockpit_bjxm.csbj.csbj_echart.xAxis : store.state.cockpit_bjxm.szbj.szbj_echart.xAxis
       // const bat_data = store.state.cockpit_bjxm.csbj.csbj_echart.bat_data
       const line_data = this.left_value == 'csbj' ? store.state.cockpit_bjxm.csbj.csbj_echart.line_data : store.state.cockpit_bjxm.szbj.szbj_echart.line_data
-      console.log(store.state.cockpit_bjxm, " store.state.cockpit_bjxm.csbj.csbj_echart.xAxis");
       // const xAxis = store.state.cockpit_bjxm.csbj.csbj_echart.xAxis;
       // const line_data = store.state.cockpit_bjxm.csbj.csbj_echart.line_data;
 

+ 25 - 4
src/views/cockpit/gdbh.vue

@@ -109,7 +109,7 @@
             </div>
             <div class="text">
               <p>流入耕地</p>
-              <span>{{ store.state.cockpit_gdbh.gdxz.title.st_mj }}</span>km²
+              <span>{{ zbpg_hz.jcpg.lrgd == '暂无' ? 0 : zbpg_hz.jcpg.lrgd }}</span>km²
 
             </div>
           </div>
@@ -121,7 +121,7 @@
             </div>
             <div class="text">
               <p>流出耕地</p>
-              <span>{{ store.state.cockpit_gdbh.gdxz.title.sjd_mj }}</span>km²
+              <span>{{ zbpg_hz.jcpg.lcgd == '暂无' ? 0 : zbpg_hz.jcpg.lcgd }}</span>km²
 
             </div>
           </div>
@@ -220,6 +220,13 @@ export default {
           qzst: 0,
           tslscn: 0,
           mj: 0,
+        },
+        jcpg: {
+          lrgd: 0,
+          lcgd: 0,
+          lc_st: 0,
+          lc_hd: 0,
+          lc_sjd: 0
         }
 
       },
@@ -658,7 +665,21 @@ export default {
           "地类编码名称",
         ],
       });
-    }
+    },
+    async init_jcpg_hz(params) {
+      let res = await QueryOne({
+        jscType: "jsc_gdbh_jcph_hz",
+        id: params ? params.id : '4602',
+        val0: store.state.cockpit_date[1].slice(0, 4)
+      });
+console.log(store.state.cockpit_date[1],"store.state.cockpit_date[1]");
+      this.zbpg_hz.jcpg.lrgd = res.data.lrgd
+      this.zbpg_hz.jcpg.lcgd = res.data.lcgd
+      this.zbpg_hz.jcpg.lc_st = res.data.lc_st
+      this.zbpg_hz.jcpg.lc_hd = res.data.lc_hd
+      this.zbpg_hz.jcpg.lc_sjd = res.data.lc_sjd
+
+    },
   },
   mounted() {
     // const optionsData = [
@@ -677,7 +698,7 @@ export default {
       this.init_jcpg();
       this.init_zbph_hz();
       // this.init_jcph_table();
-
+      this.init_jcpg_hz();
     })
   },
 };

+ 0 - 2
src/views/cockpit/stxf.vue

@@ -193,8 +193,6 @@ export default {
         tzje: res_hz.data[0].tzje,
 
       }
-      console.log('res_hz.data: ', res_hz.data);
-
     },
     initDiv() {
       const self = this

+ 0 - 1
src/views/cockpit/tdsy.vue

@@ -1086,7 +1086,6 @@ export default {
           data: [],
         },
       ];
-      console.log(result, "dasdas");
       data.data.forEach((res) => {
         xdata.push(res.tdyt);
         result[0].data.push(res.jh_crmj);

+ 2 - 1
src/views/viewer.vue

@@ -137,8 +137,9 @@ export default {
             this.$refs.gdbh_ref.init_zbph(this.params);
             this.$refs.gdbh_ref.init_info(this.params);
             this.$refs.gdbh_ref.init_zbph_hz(this.params);
+            this.$refs.gdbh_ref.init_jcpg_hz(this.params);
 
-
+            
             // this.$refs.stxf_ref.setData({ id: this.params.id });
             // this.$refs.wpjg_ref.setData(this.params);
             // 卫片监管