maxiaoxiao 11 сар өмнө
parent
commit
afd6595b12

+ 1 - 1
src/components/mapView/range.vue

@@ -147,7 +147,7 @@ export default {
       polygon.then(function (dataSource) {
         // 将数据源添加到Cesium Viewer
         viewer.dataSources.add(dataSource);
-
+        viewer.zoomTo(dataSource);
         // 可以获取实体并进行操作
         // var entities = dataSource.entities.values;
         // for (var i = 0; i < entities.length; i++) {

+ 2 - 2
src/views/complianceAnalysis/components/hgxsc.vue

@@ -53,7 +53,7 @@
     <div class="bottomBtns">
       <el-button round class="btn-style" @click="reset">重置</el-button>
       <el-button type="primary" round class="btn-style" @click="submitData">
-        检查</el-button
+        确定</el-button
       >
     </div>
   </div>
@@ -212,7 +212,7 @@ export default {
         xzmj: 0,
       };
       this.$refs.range.reset();
-      viewer.entities.removeAll();
+      viewer.dataSources.removeAll();
     },
     submitData() {
       //更新范围

+ 2 - 1
src/views/complianceAnalysis/components/lsjl.vue

@@ -108,7 +108,8 @@ export default {
   },
   methods: {
     report(item) {
-      window.open(item.fxbg.replace(".docx", ".pdf"), "_blank");
+      // item.fxbg.replace(".docx", ".pdf")
+      window.open(item.fxbg, "_blank");
     },
     del(item) {
       ElMessageBox.confirm(

+ 10 - 2
src/views/complianceAnalysis/components/scjg.vue

@@ -71,7 +71,7 @@ export default {
     eyesChaneg(i) {
       this.echarts[i].iseyes = !this.echarts[i].iseyes;
 
-      if (this.echarts[i].iseyes) {
+      if (!this.echarts[i].iseyes) {
         viewer.entities.removeAll();
       } else this.addPolygon(this.echarts[i]);
       // emit("eyesChaneg");
@@ -103,9 +103,14 @@ export default {
         `/static/data/ghss/${label}.geojson`
       );
       polygon.then(function (dataSource) {
+        console.log(dataSource, "dataSource");
+
         dataSource.id = id;
         // 将数据源添加到Cesium Viewer
         viewer.dataSources.add(dataSource);
+        // setTimeout(() => {
+        //   dataSource.show = false;
+        // }, 500);
         // viewer.zoomTo(dataSource);
 
         // 可以获取实体并进行操作
@@ -120,7 +125,10 @@ export default {
       window.open(this.$props.scjgObj.task.fxbg);
     },
     viewReport() {
-      window.open(this.$props.scjgObj.task.fxbg.replace(".docx", ".pdf"), "_blank");
+      window.open(
+        this.$props.scjgObj.task.fxbg.replace(".docx", ".pdf"),
+        "_blank"
+      );
     },
   },
 

+ 0 - 8
static/data/ghss/CX_4326.geojson

@@ -1,8 +0,0 @@
-{
-"type": "FeatureCollection",
-"name": "CX_4326",
-"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::4546" } },
-"features": [
-{ "type": "Feature", "properties": { "fid": 1.0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 340933.315870367572643, 2025290.877866380847991 ], [ 342710.417257539578713, 2025637.356753187719733 ], [ 342906.010177508345805, 2024072.613393413834274 ], [ 340905.374024658871349, 2024039.083178562112153 ], [ 340933.315870367572643, 2025290.877866380847991 ] ] ] ] } }
-]
-}

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 6
static/data/ghss/详细规划分析.geojson


Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно