maxiaoxiao 9 mesiacov pred
rodič
commit
233f856e98

+ 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) {