guoxiaohuan 4 gadi atpakaļ
vecāks
revīzija
13001e6226
1 mainītis faili ar 5 papildinājumiem un 3 dzēšanām
  1. 5 3
      src/components/Legend/src/legend.vue

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

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