소스 검색

智能选址前端

liutao 1 개월 전
부모
커밋
be1dcb7bf4
2개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      web_ui/src/views/industrial-land/AiIndustriaLandDetail.vue
  2. 4 0
      web_ui/src/views/industrial-land/ZnxzDetail.vue

+ 1 - 1
web_ui/src/views/industrial-land/AiIndustriaLandDetail.vue

@@ -517,7 +517,7 @@ export default {
     this.$nextTick(() => {
       this.activeIndex = 0;
       this.initMap();
-      // this.mockTestData();
+      this.mockTestData();
     });
   },
   created() {

+ 4 - 0
web_ui/src/views/industrial-land/ZnxzDetail.vue

@@ -1045,6 +1045,10 @@ export default {
   watch: {
     item: {
       handler(newVal, oldVal) {
+        // Skip init if only show property changed
+        if (JSON.stringify({...newVal, show: oldVal && oldVal.show}) === JSON.stringify({...oldVal, show: oldVal && oldVal.show})) {
+          return;
+        }
         this.init();
       },
       deep: true,