소스 검색

样式调整

zpf 1 년 전
부모
커밋
1b88fce2a6
2개의 변경된 파일44개의 추가작업 그리고 26개의 파일을 삭제
  1. 44 25
      src/views/cockpit/gdbh.vue
  2. 0 1
      src/views/viewer.vue

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

@@ -637,7 +637,6 @@ export default {
 
 
       })
-      this.$refs.jcpg.setOptions(arr);
     },
     vector_viewer() {
 
@@ -656,20 +655,21 @@ export default {
       });
     },
     async init_jcph_table(params) {
-      const that = this;
-      let obj = {
-        jscType: "jsc_gdbh_jcph_zbmc",
-        id: params ? params.id : "4602",
-        val2: 0,
-        val1: 50000,
-        beginTime: store.state.cockpit_date[1].slice(0, 4)
-      };
-      let data = await QueryList(obj);
-      data.data.map((res) => {
-        if (res.geom) {
-          res.geom = parse(res.geom.split(";")[1]);
-        }
-      });
+      // const that = this;
+      // let obj = {
+      //   jscType: "jsc_gdbh_jcph_zbmc",
+      //   id: params ? params.id : "4602",
+      //   val2: 0,
+      //   val1: 50000,
+      //   beginTime: store.state.cockpit_date[1].slice(0, 4)
+      // };
+      // let data = await QueryList(obj);
+      // data.data.map((res) => {
+      //   if (res.geom) {
+      //     res.geom = parse(res.geom.split(";")[1]);
+      //   }
+      // });
+
       // this.vector_data = data.data;
     },
     async init_jcpg_hz(params) {
@@ -681,9 +681,28 @@ export default {
       });
       this.zbpg_hz.jcpg.lrgd = res.data.lrgd == '暂无' ? 0 : res.data.lrgd
       this.zbpg_hz.jcpg.lcgd = res.data.lcgd == '暂无' ? 0 : 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
+      console.log(params, "params");
+
+      this.zbpg_hz.jcpg.lc_st = res.data.lc_st == '暂无' ? 0 : res.data.lc_st
+      this.zbpg_hz.jcpg.lc_hd = res.data.lc_hd == '暂无' ? 0 : res.data.lc_hd
+      this.zbpg_hz.jcpg.lc_sjd = res.data.lc_sjd == '暂无' ? 0 : res.data.lc_sjd
+
+
+      let arr = [];
+      arr.push({
+        name: "流出水田",
+        value: Number(this.zbpg_hz.jcpg.lc_st),
+      })
+      arr.push({
+        name: "流出旱田",
+        value: Number(this.zbpg_hz.jcpg.lc_hd),
+      })
+      arr.push({
+        name: "流出水浇地",
+        value: Number(this.zbpg_hz.jcpg.lc_sjd),
+      })
+
+      this.$refs.jcpg.setOptions(arr);
 
     },
   },
@@ -698,13 +717,13 @@ export default {
     // });
 
     this.$nextTick((res) => {
-      this.init_info();
-      this.init_gdxz_echart();
-      this.init_zbph();
-      this.init_jcpg();
-      this.init_zbph_hz();
+      // this.init_info();
+      // this.init_gdxz_echart();
+      // this.init_zbph();
+      // this.init_jcpg();
+      // this.init_zbph_hz();
       // this.init_jcph_table();
-      this.init_jcpg_hz();
+      // this.init_jcpg_hz();
     })
   },
 };
@@ -770,7 +789,7 @@ export default {
   .text {
     display: inline-block;
     // border: #00FFFF 1px solid;
-    width: calc(100% - 50px);
+    width: calc(100% - 30px);
     margin-bottom: 4px;
     text-align: center;
     margin-left: 0.3rem;

+ 0 - 1
src/views/viewer.vue

@@ -139,7 +139,6 @@ export default {
             this.$refs.gdbh_ref.init_zbph_hz(this.params);
             this.$refs.gdbh_ref.init_jcpg_hz(this.params);
             this.$refs.gdbh_ref.init_jcph_table(this.params);
-
             
             // this.$refs.stxf_ref.setData({ id: this.params.id });
             // this.$refs.wpjg_ref.setData(this.params);