소스 검색

耕地保护

zpf 1 년 전
부모
커밋
327bb99fdd
2개의 변경된 파일21개의 추가작업 그리고 8개의 파일을 삭제
  1. 14 5
      src/views/cockpit/common/VectorSpace/BoxCommonVector.vue
  2. 7 3
      src/views/cockpit/gdbh.vue

+ 14 - 5
src/views/cockpit/common/VectorSpace/BoxCommonVector.vue

@@ -55,7 +55,6 @@ export default {
     },
     methods: {
         draw_vector_tdgy_gy_jd(data) {
-            // tdsy.remove();
             data.forEach((res) => {
                 res.type = this.title
                 if (res.geom) {
@@ -63,13 +62,14 @@ export default {
                         let arrayt = [];
                         if (res_coordinates.length == 1) {
                             arrayt = res_coordinates[0]
+                            const twoDArray = arrayt;
+                            const oneDArray = twoDArray.reduce((accumulator, currentValue) => accumulator.concat(currentValue), []);
+                            tdsy.add(res, oneDArray);
                         } else {
-                            arrayt = res_coordinates
+                            // arrayt = res_coordinates
                         }
 
-                        const twoDArray = arrayt;
-                        const oneDArray = twoDArray.reduce((accumulator, currentValue) => accumulator.concat(currentValue), []);
-                        tdsy.add(res, oneDArray);
+
                     })
                 }
             })
@@ -305,6 +305,14 @@ export default {
                 obj.beginTime = undefined
                 obj.endTime = undefined
             }
+            if (this.title == '进出平衡') {
+                obj.jscType = "jsc_gdbh_jcph_zbmc",
+                    obj.val2 = 0,
+                    obj.val1 = 50000,
+                    obj.beginTime = store.state.cockpit_date[1].slice(0, 4),
+                    obj.endTime = undefined
+
+            }
             let data = await QueryList(obj);
             data.data.map((res) => {
                 if (res.geom) {
@@ -312,6 +320,7 @@ export default {
                 }
             });
             this.active_dableData = data.data
+
             this.tableData = data.data
         },
 

+ 7 - 3
src/views/cockpit/gdbh.vue

@@ -640,9 +640,13 @@ export default {
       this.$refs.jcpg.setOptions(arr);
     },
     vector_viewer() {
+
+      store.setViewerFlagb(false);
+      store.setToolBarShow(false);
+      store.setXzqh_flag(false);
       store.setCockpit_vector({
         title: "进出平衡",
-        tableData: this.vector_data,
+        tableData: [],
         tablejscType: 'jsc_tdgy_gy_zbmx',
         columns: [
           "进出状态",
@@ -666,7 +670,7 @@ export default {
           res.geom = parse(res.geom.split(";")[1]);
         }
       });
-      this.vector_data = data.data;
+      // this.vector_data = data.data;
     },
     async init_jcpg_hz(params) {
 
@@ -699,7 +703,7 @@ export default {
       this.init_zbph();
       this.init_jcpg();
       this.init_zbph_hz();
-      this.init_jcph_table();
+      // this.init_jcph_table();
       this.init_jcpg_hz();
     })
   },