maxiaoxiao 1 жил өмнө
parent
commit
060379b2d7

+ 9 - 2
src/views/cockpit/common/VectorSpace/BoxCommonVector.vue

@@ -57,7 +57,7 @@ export default {
         draw_vector_tdgy_gy_jd(data) {
             // tdsy.remove();
             data.forEach((res) => {
-                res.type = '国有建设用地完成项目'
+                res.type = this.title
                 if (res.geom) {
                     res.geom.coordinates.forEach((res_coordinates) => {
                         let arrayt = [];
@@ -264,6 +264,10 @@ export default {
                   val0: word,
 
                 }
+                if(this.title == '土地供应完成项目' || this.title == '山水工程完成项目'){
+                    gy_ju.beginTime = undefined
+                    gy_ju.endTime = undefined
+                }
 
                 // let bj_sl = {
                 //   beginTime: store.state.cockpit_date[0],
@@ -297,6 +301,10 @@ export default {
         endTime: store.state.cockpit_date[1],
         id: params ? params.id : "4602",
       };
+      if(this.title == '土地供应完成项目' || this.title == '山水工程完成项目'){
+            obj.beginTime = undefined
+            obj.endTime = undefined
+        }
       let data = await QueryList(obj);
       data.data.map((res) => {
         if (res.geom) {
@@ -324,7 +332,6 @@ export default {
             }else {
               this.init_vector()
             }
-            
         },
         active_dableData(newVal, oldVal) {
             this.draw_vector_tdgy_gy_jd(newVal);