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