maxiaoxiao 9 달 전
부모
커밋
233f856e98
2개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 1
      src/components/Query/clickQuery/CockpitVector.vue
  2. 3 1
      src/views/cockpit/common/VectorSpace/BoxCommonVector.vue

+ 2 - 1
src/components/Query/clickQuery/CockpitVector.vue

@@ -21,7 +21,8 @@
               item.name !== 'xmmc' &&
               item.name !== 'zlmj' &&
               item.name !== 'tzje' &&
-              item.name !== 'dataid'
+              item.name !== 'dataid'&&
+              item.name !== 'did'
           )
         "
         style="width: 100%"

+ 3 - 1
src/views/cockpit/common/VectorSpace/BoxCommonVector.vue

@@ -489,8 +489,10 @@ export default {
             else this.draw_vector_tdgy_gy_jd(newVal);
         },
         tempdataLayerId(newVal, oldVal) {
-        if (oldVal) {
+        if (oldVal && layersObj[oldVal]) {
             layersObj[oldVal].show = false
+        } else if(layersObj[newVal]){
+            layersObj[newVal].show = true  
         }
       },
         computed_vectorData(newVal, oldVal) {