guoxiaohuan 4 tahun lalu
induk
melakukan
13001e6226
1 mengubah file dengan 5 tambahan dan 3 penghapusan
  1. 5 3
      src/components/Legend/src/legend.vue

+ 5 - 3
src/components/Legend/src/legend.vue

@@ -264,8 +264,10 @@ export default {
         },
         // 编辑图例
         editTl() {
-            this.show = false
-            this.show2 = true
+            this.show2 = !this.show2
+            if (this.show2) {
+                this.show = false
+            }
             this.queryEditNum(true)
         },
         /**
@@ -315,7 +317,6 @@ export default {
                 let viewTable = []
                 viewTable = res.data.Data ? res.data.Data : []
                 this.$store.commit('SETLEGENDTABLE', viewTable)
-
                 if (viewTable.length > 0) {
                     viewTable.forEach(el => {
                         if (el.Name == '主要设备房') {
@@ -427,6 +428,7 @@ export default {
     },
     mounted() {
         this.init()
+        this.queryView(false)
         // 定时查询草稿箱数量
         this.getDraftNum() //首次查询
         this.timer = setInterval(() => {