Forráskód Böngészése

国有建设用地完成项目列表筛选条件优化,接口联调

maxx0329 3 napja
szülő
commit
43e9b8dcf2

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

@@ -118,7 +118,7 @@ export default {
       isShallow: false,
       activeTabs: "base",
       details: {},
-      isall:false,//显示所有图斑
+      isall: false,//显示所有图斑
     };
   },
   methods: {
@@ -157,7 +157,7 @@ export default {
         store.state.vectorlayerlist.push(this.layersData);
       }
     },
-    async Getlayers(mapurl,item) {
+    async Getlayers(mapurl, item) {
       let url = `${mapurl}/layers.json`;
       let res = await axios.get(url);
       let layers = res.data[0].subLayers.layers;
@@ -188,7 +188,7 @@ export default {
           this.goLayer(item.geom, did_v);
         }
       } else {
-        this.Getlayers(this.layersData.url,item);
+        this.Getlayers(this.layersData.url, item);
       }
     },
     goLayer(geom, lid) {
@@ -427,7 +427,7 @@ export default {
       // this.isShallow = true;
       // store.setActiveToolBar(9);
     },
-    goDetail(item){
+    goDetail(item) {
       store.setVectordataid(item.dataid);
       let arr = [];
       // BoxCommonVector_entity = new Cesium.CustomDataSource("BoxCommonVector_entity");
@@ -589,6 +589,8 @@ export default {
       if (this.title == "国有建设用地完成项目" || this.title == "山水工程项目") {
         obj.beginTime = undefined;
         obj.endTime = undefined;
+        if (this.title == "国有建设用地完成项目")
+          obj.val0 = store.state.cockpit_date[0].split("-")[0];
       }
       if (this.title == "进出平衡") {
         (obj.jscType = "jsc_gdbh_jcph_zbmc"),
@@ -610,7 +612,7 @@ export default {
       this.active_dableData = data.data;
       this.tableData = data.data;
     },
-    showall(){
+    showall() {
       this.isall = !this.isall
       if (tdsy.layer) tdsy.layer.show = this.isall;
     }
@@ -928,9 +930,11 @@ div::-webkit-scrollbar {
 /deep/ .el-table__fixed-right-patch {
   background: rgba(10, 25, 38, 0.9) !important;
 }
+
 /deep/ .el-table__fixed-right {
   background: rgba(10, 25, 38, 0.9) !important;
 }
+
 /deep/ .el-table--border::after,
 .el-table--group::after,
 .el-table::before {