Переглянути джерело

滨江一本账行政区不定位

liutao 1 рік тому
батько
коміт
e9adda0b7a

+ 1 - 1
BJYSYBZ_C/src/views/BjWlydManageView/components/YqxqMap.vue

@@ -72,7 +72,7 @@ export default {
       areaType: 'city',
       oldGzData: [],
       mapTitle: '供地总面积',
-      visibleLayerIds: ['bj-dkgl', 'hzyx-202311', 'bjq-xzq'],
+      visibleLayerIds: ['bj-dkgl', 'hzyx-202311', 'bjq-xzq', 'bjq-gd'],
       mapImgLayers: ['bj-kgdk'],
       xzqdmArr: [],
       year: 2021,

+ 14 - 11
BJYSYBZ_C/src/views/BjWlydManageView/index.vue

@@ -20,12 +20,12 @@
 </template>
 
 <script>
-import YqxqMap from './components/YqxqMap';
-import FourContent from './components/FourContent';
-import Xxxx from '@/views/BjWlydManageView/components/Xxxx';
+import YqxqMap from "./components/YqxqMap";
+import FourContent from "./components/FourContent";
+import Xxxx from "@/views/BjWlydManageView/components/Xxxx";
 
 export default {
-  name: 'index',
+  name: "index",
   components: {
     YqxqMap,
     FourContent,
@@ -34,17 +34,17 @@ export default {
   data() {
     return {
       detailShow: false,
-      id: '',
+      id: "",
     };
   },
   mounted() {
-    let users = JSON.parse(localStorage.getItem('userInfo'));
+    let users = JSON.parse(localStorage.getItem("userInfo"));
     if (users) {
     } else {
-      alert('您还未登陆,请先登录');
-      this.$router.replace('/login');
+      alert("您还未登陆,请先登录");
+      this.$router.replace("/login");
     }
-    this.$vm.$on('mapClickHandle', (f) => {
+    this.$vm.$on("mapClickHandle", (f, key) => {
       this.clickCallback(f);
     });
   },
@@ -55,10 +55,13 @@ export default {
     },
     detailClose(b) {
       this.detailShow = b;
-      this.id = '';
+      this.id = "";
       b && this.$refs.list.getTsxzListData();
     },
     clickCallback(it) {
+      if (!it || !it.dksyh) {
+         this.detailShow = false;
+      }
       this.detailShow = true;
       this.id = it.dksyh;
 
@@ -75,7 +78,7 @@ export default {
 .YqxqView {
   width: 100%;
   height: 100%;
-  background: url('~@/assets/images/bg.png') no-repeat;
+  background: url("~@/assets/images/bg.png") no-repeat;
   background-size: 100% 100%;
   overflow: hidden;
   display: flex;

+ 1 - 0
BJYSYBZ_C/src/views/components/BigScreenMap/index.vue

@@ -1744,6 +1744,7 @@ export default {
           it !== "xzqh-x-search-dzl" &&
           it !== "xzqh-x" &&
           it !== "xzqh-z" &&
+          it !== "bjq-xzq" &&
           it !== "hzyx-202311" &&
           it !== "hzyx-202310" &&
           it !== "hzyx-202308" &&