Przeglądaj źródła

基础地理实体

maxiaoxiao 7 miesięcy temu
rodzic
commit
f938010a38

+ 6 - 0
src/router/index.js

@@ -152,6 +152,12 @@ export const constantRoutes = [{
             import('@/views/Idleland/index.vue'),
         hidden: true
     },
+    {
+        path: '/basicGeographic',
+        component: () =>
+            import('@/views/BasicGeographic/index.vue'),
+        hidden: true
+    },
     ]
 }, {
     path: '/login',

+ 14 - 1
src/utils/MapHelper/help.js

@@ -308,4 +308,17 @@ export function str2Unicode(str) {
   for (var i = 0; i < str.length; i++)
     es[i] = ("00" + str.charCodeAt(i).toString(16)).slice(-4);
   return "\\u" + es.join("\\u");
-} 
+}
+
+// 树结构只最后一级可以操作
+export function setDisabledIfChildrenExist(node) {
+  if (node.children && node.children.length > 0) {
+    node.disabled = true;
+  }
+  // 递归遍历子节点
+  if (node.children) {
+    node.children.forEach((child) => {
+      setDisabledIfChildrenExist(child);
+    });
+  }
+}

+ 101 - 0
src/views/basicGeographic/index.vue

@@ -0,0 +1,101 @@
+<!--合规性分析-->
+<template>
+    <div class="ghzc basicGeographic">
+        <EntityManage class="innerContainer leftPane"></EntityManage>
+        <!-- <div class="innerContainer leftPane" v-drag @click.native.stop>
+        <h2 class="Pangetitle darg-div">
+          <span class="pange_text">耕地保护</span>
+        </h2>
+        <el-tabs type="border-card" class="xz_box" v-model="activeTabs" stretch @tab-click="tabClick">
+          <el-tab-pane label="辅助监测研判" name="fzjcyp">
+            <FZJCYP v-loading="loading" @updateParent="changeData" ref="fzjcyp"></FZJCYP>
+          </el-tab-pane>
+          <el-tab-pane label="历史记录" name="lsju">
+            <Lsjl :rzBsm="rzBsm" :activeTabs="activeTabs" @updateParent="changeData" type="gdbh" ref="lsju"></Lsjl>
+          </el-tab-pane>
+          <el-tab-pane label="分析结果" :disabled="activeTabs != 'scjg'" name="fxjg">
+            <div v-drag style="height: 100%;">
+              <FXJG :activeTabs="activeTabs" @updateParent="changeData" :loading="loading" :fxjgObj="nowObj" ref="fxjg"
+                v-if="activeTabs == 'fxjg'"></FXJG>
+            </div>
+          </el-tab-pane>
+        </el-tabs>
+      </div>
+      <interDetails :rzBsm="rzBsm" @updateParent="changeData" :interObj="interObj" v-if="showInter"></interDetails>
+      <RzDtails
+        :rzBsm="rzBsm"
+        :rzMc="nowObj.xmmc"
+        @updateParent="changeData"
+      ></RzDtails> -->
+    </div>
+</template>
+
+<script>
+import EntityManage from "./entityManage.vue";
+//   import FXJG from "./components/fxjg.vue";
+//   import Lsjl from "../complianceAnalysis/components/lsjl.vue";
+//   import interDetails from "./components/interDetails.vue";
+//   import RzDtails from "../complianceAnalysis/components/rzDtails.vue";
+export default {
+    name: "BasicGeographic",
+    components: {
+        EntityManage,
+        //   Lsjl,
+        //   FXJG,
+        //   interDetails,
+        //   RzDtails,
+    },
+    data() {
+        return {
+            activeTabs: "fzjcyp",
+            rzBsm: "",
+            rwBsm: "",
+            nowObj: {},
+            rzMc: "",
+            loading: false,
+            interObj: {},//套合信息存储
+            showInter: false,
+        };
+    },
+    created() { },
+    methods: {
+        changeData(name, updata) {
+            this[name] = updata;
+        },
+        tabClick(evt) {
+            this.activeTabs = evt.name;
+        },
+    },
+    watch: {
+        activeTabs(newValue) {
+        },
+    },
+};
+</script>
+
+<style lang="scss" scoped>
+.basicGeographic {
+    .xz_box {}
+
+    // .headerSearch {
+    //   display: flex;
+    //   justify-content: space-between;
+    //   margin-right: 10px;
+
+    //   .el-input {
+    //     width: 48%;
+    //   }
+
+    /deep/ .el-input--small .el-input__inner {
+        color: white !important;
+        background: rgba(100, 218, 255, 0.1);
+        border-radius: 2px 10px 2px 10px;
+        border-color: #5ecef09a;
+    }
+
+    // }
+}
+</style>
+<style lang="scss">
+@import "../complianceAnalysis//ghzc.scss";
+</style>

+ 4 - 1
src/views/geologyDisaster/index.vue

@@ -159,7 +159,10 @@ export default {
       }
     },
   },
-  beforeDestroy() { },
+  beforeDestroy() {
+    removeGeoJSON("dzzh");
+    // removeGeoJSON("dzzhhig");
+  },
 };
 </script>
 

+ 5 - 2
src/views/map3d.vue

@@ -246,7 +246,7 @@ export default {
     GetRouters() {
       getRouters().then((res) => {
         this.menu_left = res.data[0].children.slice(0, 3);
-        this.menu_right = res.data[0].children.slice(3, 6);
+        this.menu_right = res.data[0].children.slice(3, 7);
 
         let curRouter = this.$router.currentRoute.path;
         if (curRouter == "/") {
@@ -518,7 +518,7 @@ export default {
   margin-left: 4vw;
   height: 5%;
   position: fixed;
-  right: 14.5vw;
+  right: 7.5vw;
   top: 1.1rem;
 
   .el-menu--horizontal > .el-menu-item.is-active,
@@ -581,6 +581,9 @@ export default {
   border: none !important;
   text-align: center !important;
 }
+.right-submenu:hover {
+  background-image: url("/static/images/overview/right_mune_button_click.png");
+}
 </style>
 <style>
 .el-menu--popup {