CN-1592 fix: 修复tag下拉时重复请求和报错的问题
This commit is contained in:
@@ -722,8 +722,10 @@ export default {
|
||||
this.noMinutes = false
|
||||
this.disableToEntity = false
|
||||
clearInterval(this.interval)
|
||||
this.expandedIds = []
|
||||
if (expandedRows.length > 0 && row) {
|
||||
this.init(row)
|
||||
// this.init(row)
|
||||
this.expandedIds.push(row.id)
|
||||
this.$nextTick(() => {
|
||||
const uniqueEntityObservedDom = document.getElementById('uniqueEntityObserved' + row.id)
|
||||
if (uniqueEntityObservedDom) {
|
||||
|
||||
@@ -164,6 +164,7 @@ export default {
|
||||
params = { ...params, name: this.source }
|
||||
}
|
||||
this.getTableData(params)
|
||||
this.$refs.dataTable.expandedIds = []
|
||||
},
|
||||
categoryChange (value) {
|
||||
let params = {}
|
||||
@@ -180,6 +181,7 @@ export default {
|
||||
params = { ...params, name: this.source }
|
||||
}
|
||||
this.getTableData(params)
|
||||
this.$refs.dataTable.expandedIds = []
|
||||
},
|
||||
sourceChange (value) {
|
||||
let params = {}
|
||||
@@ -196,6 +198,7 @@ export default {
|
||||
params = { ...params, name: this.name }
|
||||
}
|
||||
this.getTableData(params)
|
||||
this.$refs.dataTable.expandedIds = []
|
||||
},
|
||||
search (params) {
|
||||
this.name = params.q
|
||||
@@ -208,6 +211,7 @@ export default {
|
||||
}
|
||||
this.pageObj.pageNo = 1
|
||||
this.getTableData(params)
|
||||
this.$refs.dataTable.expandedIds = []
|
||||
},
|
||||
delBatch () {
|
||||
const ids = []
|
||||
@@ -257,6 +261,7 @@ export default {
|
||||
this.isSelectedStatus = false
|
||||
this.disableDelete = true
|
||||
this.batchDeleteObjs = []
|
||||
this.$refs.dataTable.expandedIds = []
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -294,6 +299,7 @@ export default {
|
||||
}
|
||||
}).finally(() => {
|
||||
this.toggleLoading(false)
|
||||
this.$refs.dataTable.expandedIds = []
|
||||
})
|
||||
}
|
||||
this.isInit = false
|
||||
|
||||
Reference in New Issue
Block a user