|
@@ -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()
|