yx 4 years ago
parent
commit
7bb1a70fe9
1 changed files with 11 additions and 1 deletions
  1. 11 1
      src/views/equipment/table/eqDetaileDialog1.vue

+ 11 - 1
src/views/equipment/table/eqDetaileDialog1.vue

@@ -377,6 +377,9 @@ export default {
                 } else {
                     this.rowData = {}
                 }
+                this.$nextTick(() => {
+                    this.$refs[this.currentComponent].startMethods()
+                })
             })
         },
         getFloorAllSelect() {
@@ -400,12 +403,19 @@ export default {
             this.currentTab = index
             this.currentComponent = this.componentArr[index]
             // TODO:
-            this.$refs[currentComponent].startMethods()
+            this.$nextTick(() => {
+                this.$refs[this.currentComponent].startMethods()
+            })
         },
     },
     watch: {
         row: {
             handler(newV, oldV) {
+                // 初始化数据
+                this.currentTab = 0
+                this.currentComponent = 'wxTable'
+                this.rowData = {}
+                // 
                 this.changePageEvent()
                 this.queryTableList()
                 this.getFloorAllSelect()