Browse Source

新增路由并删除管线无关代码

lkk 11 months ago
parent
commit
94dc91d1de

+ 0 - 53
src/components/Query/clickQuery/clickQuery.vue

@@ -166,58 +166,6 @@ export default {
     });
   },
   methods: {
-    text() {
-      let buildingLayer = scene.layers.find("ResultNetWork@管线#1");
-      buildingLayer.indexedDBSetting.isAttributesSave = true; //保存属性
-
-      var handler = new Cesium.ScreenSpaceEventHandler(viewer.scene.canvas);
-      handler.setInputAction(function (evt) {
-        var position = scene.pickPosition(evt.position);
-
-        if (buildingLayer.getSelection().length > 0) {
-          const selectedId = Number(buildingLayer.getSelection()[0]);
-          buildingLayer.getAttributesById([selectedId]).then(function (atts) {
-            if (atts) {
-              console.log(atts);
-
-              viewer.entities.removeAll();
-
-              var length = Object.keys(atts).length;
-              var des;
-              for (var i = 0; i < length; i++) {
-                var key = Object.keys(atts)[i];
-                var value = atts[key];
-
-                console.log(key);
-                console.log(value);
-
-                var index = i.toString();
-                if (i == 0) {
-                  des =
-                    '<table class="cesium-infoBox-defaultTable"><tbody>' +
-                    "<tr><th>" +
-                    key +
-                    "</th><td>" +
-                    value +
-                    "</td></tr>";
-                } else if (i == length - 1) {
-                  des +=
-                    "<tr><th>" +
-                    key +
-                    "</th><td>" +
-                    value +
-                    "</td></tr>" +
-                    "</tbody></table>";
-                } else {
-                  des += "<tr><th>" + key + "</th><td>" + value + "</td></tr>";
-                }
-              }
-            }
-          });
-        }
-      }, Cesium.ScreenSpaceEventType.LEFT_CLICK);
-    },
-
     toggleVisibility() {
       this.removeMapLayerQuery();
       store.setToolBarAction(9);
@@ -683,7 +631,6 @@ export default {
     changleQueryItem(item) {
       switch (item.index) {
         case 1: {
-          // this.text();
           this.mapQuerys("mapLayerQuery"); //图层点击事件
           break;
         }

+ 16 - 1
src/router/index.js

@@ -58,7 +58,22 @@ export const constantRoutes = [{
         component: () =>
             import('@/views/checkmodel'),
         hidden: true
-    }]
+    },
+    {
+        path: '/siteselection',
+        component: () =>
+            import('@/views/siteselection'),
+        hidden: true
+    },
+    {
+        path: '/complianceAnalysis',
+        component: () =>
+            import('@/views/complianceAnalysis'),
+        hidden: true
+    },
+
+
+]
 }, {
     path: '/login',
     component: () =>

+ 44 - 0
src/views/complianceAnalysis.vue

@@ -0,0 +1,44 @@
+<template>
+    <div class="complianceAnalysis">
+      <div class="innerContainer leftPane">智能规划选址</div>
+    </div>
+  </template>
+  
+  <script>
+  export default {
+    name: "complianceAnalysis",
+    data() {
+      return {};
+    },
+    created() {},
+    methods: {},
+  };
+  </script>
+  
+  <style lang="scss" scoped>
+  .complianceAnalysis {
+    width: 100%;
+    height: 100%;
+    position: absolute;
+  }
+  
+  .innerContainer {
+    width: 350px;
+    height: calc(100% - 20px);
+    position: absolute;
+    background: #041024;
+    z-index: 99;
+    top: 10px;
+    background-image: url("/static/images/homepage/00-底框.png");
+    background-size: 100% 100%;
+  }
+  
+  .leftPane {
+    left: 10px;
+  }
+  
+  .rightPane {
+    right: 10px;
+  }
+  </style>
+  

+ 44 - 0
src/views/siteselection.vue

@@ -0,0 +1,44 @@
+<template>
+    <div class="siteselection">
+      <div class="innerContainer leftPane">智能规划选址</div>
+    </div>
+  </template>
+  
+  <script>
+  export default {
+    name: "siteselection",
+    data() {
+      return {};
+    },
+    created() {},
+    methods: {},
+  };
+  </script>
+  
+  <style lang="scss" scoped>
+  .siteselection {
+    width: 100%;
+    height: 100%;
+    position: absolute;
+  }
+  
+  .innerContainer {
+    width: 350px;
+    height: calc(100% - 20px);
+    position: absolute;
+    background: #041024;
+    z-index: 99;
+    top: 10px;
+    background-image: url("/static/images/homepage/00-底框.png");
+    background-size: 100% 100%;
+  }
+  
+  .leftPane {
+    left: 10px;
+  }
+  
+  .rightPane {
+    right: 10px;
+  }
+  </style>
+