Bläddra i källkod

Merge branch 'master' of http://114.244.114.158:8802/siwei/real3d-portalsite

maxiaoxiao 9 månader sedan
förälder
incheckning
bf98f7e527
2 ändrade filer med 18 tillägg och 6 borttagningar
  1. 16 5
      src/views/cockpit/common/VectorSpace/BoxCommonVector.vue
  2. 2 1
      src/views/cockpit/tdsy.vue

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

@@ -32,7 +32,7 @@
           </div>
         </div>
         <div v-if="cockpit_vector.showtotal" class="shownum">
-          上报总数量:{{ active_dableData.length }}{{ isShallow }}
+          上报总数量:{{ active_dableData.length }}个
         </div>
         <el-table :row-class-name="tableRowClassName" ref="singleTable" :data="active_dableData" style="width: 100%"
           height="670" :header-cell-style="{
@@ -121,10 +121,10 @@ export default {
     start(item) {
       this.$refs.startWorkRef.Init(item);
     },
-    reset(){
-      this.searchform= {}
-      this.word=""
-      this.init_vector(this.searchform)
+    reset() {
+      this.searchform = {};
+      this.word = "";
+      this.init_vector(this.searchform);
     },
     closeIsShallow() {
       this.isShallow = false;
@@ -392,7 +392,18 @@ export default {
                   entity.properties = item;
                 });
               }
+              // item.geom.type == "MultiPolygon" ? 5 : 100
             );
+
+            // let featTemp = turf.points(item.geom.coordinates[0]);
+            // let center = turf.center(featTemp);
+            // viewer.camera.flyTo({
+            //   destination: new Cesium.Cartesian3.fromDegrees(
+            //     center.geometry.coordinates[0],
+            //     center.geometry.coordinates[1],
+            //    400
+            //   ), 
+            // }); 
           }
         }
       }

+ 2 - 1
src/views/cockpit/tdsy.vue

@@ -44,7 +44,8 @@
         <div class="content">
           <div class="infoLIst" v-if="jiDataInfo.length">
             <div class="infoItem" v-for="(item, index) in jiDataInfo" :key="index">
-              <div :class="item.geom != '' ? 'itemIcon' : 'itemIcon2'" @click="flyDetails(item)"></div>
+              <div class="itemIcon" @click="flyDetails(item)" v-show="item.geom != ''"></div>
+              <div class="itemIcon2" v-show="item.geom == ''"></div>
               <div class="itemCon">
                 <p>{{ item["项目名称"] }}</p>
                 <p>