From 731d894cf232d98b547df2bd006795de74fb16a7 Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期四, 09 二月 2023 15:05:10 +0800
Subject: [PATCH] 数据管理样式修改

---
 src/components/MapView/mapMenuTop.vue |   64 ++++++++++++++++----------------
 1 files changed, 32 insertions(+), 32 deletions(-)

diff --git a/src/components/MapView/mapMenuTop.vue b/src/components/MapView/mapMenuTop.vue
index bbd2eb2..0280977 100644
--- a/src/components/MapView/mapMenuTop.vue
+++ b/src/components/MapView/mapMenuTop.vue
@@ -43,7 +43,7 @@
           </el-option>
         </el-select>
       </el-form-item>
-
+ 
       <el-form-item>
         <el-select
           @change="changeValue($event)"
@@ -91,7 +91,7 @@
     <queryinfo ref="queryinfo" />
   </div>
 </template>
-
+ 
 <script>
 import queryinfo from "../../views/Tools/queryinfo.vue"
 import $ from 'jquery';
@@ -122,7 +122,7 @@
           children: [],
         },
       ],
-
+ 
       queryOption: [
         {
           value: 'point',
@@ -156,10 +156,10 @@
       graphicLayer: null,
     };
   },
-
+ 
   mounted() {
     // sgworld.Creator.SimpleGraphic.edit(false, { editProp: false });
-
+ 
     this.menuTopFrom.queryType = 'rectangle';
     this.getAllTable();
   },
@@ -179,7 +179,7 @@
         this.$message.error('鍒楄〃璋冪敤澶辫触');
       }
       var option = data.result;
-
+ 
       for (var i in option) {
         var val_Data = option[i];
         val_Data.id = '1' + i;
@@ -195,7 +195,7 @@
     getCheckedNodes() {
       var valTree = this.$refs.tree.getCheckedNodes();
       if (valTree.length == 0) return;
-
+ 
       this.menuTopFrom.queryLayer = valTree[0].tabDesc;
       for (var i = 0; i < valTree.length; i++) {
         this.treeChange.push(valTree[i]);
@@ -206,7 +206,7 @@
       this.treeChange = [];
       this.menuTopFrom.queryLayer = null;
       this.$refs.tree.setCheckedKeys([]);
-
+ 
     },
     //瀵煎叆shp鏂囦欢
     async setMenuTopFile() {
@@ -224,7 +224,7 @@
         }
       }
       if (count != 4) {
-
+ 
         this.$message({
           message: 'ShapeFile鏂囦欢閫夋嫨涓嶅叏锛�',
           type: 'warning'
@@ -258,7 +258,7 @@
       //娓呯┖鏍囩粯
       sgworld.Creator.SimpleGraphic.edit(false, { editProp: false });
       sgworld.Creator.SimpleGraphic.clear();
-
+ 
       if (this.treeChange.length == 0) {
         this.$message.error('璇烽�夋嫨瑕佹煡璇㈢殑鏁版嵁');
         return;
@@ -288,7 +288,7 @@
           break;
         case 'polyline': //绾�
           var polyline = res.polyline.positions.getValue();
-
+ 
           that.setTurfPolyOrLine(polyline, 'polyline');
           break;
         case 'rectangle': //鐭╁舰
@@ -299,7 +299,7 @@
             rectangle.height
           );
           that.setTurfPolyOrLine(result, 'rectangle');
-
+ 
           break;
         case 'circle': //鍦�
           var val = that.setCartesianToEightFour(res.position.getValue());
@@ -342,12 +342,12 @@
       }
       this.setJonToWKT(restVal);
     },
-
+ 
     setJonToWKT(res) {
       console.log(res.geometry)
       var jsonToWkt = this.$wkt.convert(res.geometry);
       this.$store.state.mapMenuShpFile = encr(jsonToWkt);
-
+ 
       this.showMapMenuPop();
     },
     showMapMenuPop() {
@@ -356,12 +356,12 @@
       // this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.close();
       this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.open("绌洪棿鏌ヨ", null, {
         close: () => {
-
+ 
           if (this.$store.state.primitLayer != null) {
             sgworld.Creator.DeleteObject(this.$store.state.primitLayer);
             this.$store.state.primitLayer = null;
           }
-
+ 
           if (window.Viewer.scene.primitives.length != 0) {
             window.Viewer.scene.primitives.removeAll()
           }
@@ -382,21 +382,21 @@
       this.menuTopFrom.queryType = 'rectangle';
       this.$refs.tree.setCheckedKeys([]);
       
-	  
-	  // //娓呴櫎瀵硅薄
-	  // if (window.Viewer.scene.primitives.length != null) {
-	  //   window.Viewer.scene.primitives.removeAll();
-	  // }
-	  // if (this.$store.state.primitLayer != null) {
-	  //   sgworld.Creator.DeleteObject(this.$store.state.primitLayer);
-	  //   this.$store.state.primitLayer = null;
-	  // }
-	  //鍏抽棴绐楀彛
-	  this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.close("queryinfo");
-	  
-	  
-	  
-	 
+      
+      // //娓呴櫎瀵硅薄
+      // if (window.Viewer.scene.primitives.length != null) {
+      //   window.Viewer.scene.primitives.removeAll();
+      // }
+      // if (this.$store.state.primitLayer != null) {
+      //   sgworld.Creator.DeleteObject(this.$store.state.primitLayer);
+      //   this.$store.state.primitLayer = null;
+      // }
+      //鍏抽棴绐楀彛
+      this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.close("queryinfo");
+      
+      
+      
+     
     },
     setCartesianToEightFour(res) {
       var std = {};
@@ -410,7 +410,7 @@
   },
 };
 </script>
-
+ 
 <style lang="less" scoped>
 .menuBox {
   width: 98%;

--
Gitblit v1.9.3