[update] 修改bug89967

This commit is contained in:
lideqin
2024-09-18 17:53:33 +08:00
parent a1c61ed914
commit 7e4531321c
@@ -250,7 +250,13 @@ export default {
this.initDict()
this.$nextTick(() => {
this.source ? this.queryParam.source = this.source : this.queryParam = {}
this.replacePage()
this.replacePage(1, () => {
if (this.value) {
this.selectedRowKeys = this.value.split(',')
} else {
this.selectedRowKeys = []
}
})
})
},
initDict () {
@@ -290,7 +296,7 @@ export default {
return values
},
// 获取表格数据
replacePage (arg) {
replacePage (arg, callback) {
if (arg === 1) {
this.ipagination.current = 1
}
@@ -315,7 +321,7 @@ export default {
if (res.success) {
this.dataList = res.result.records
this.ipagination.total = res.result.total
this.selectedRowKeys = this.value ? this.value.split(',') : (this.selectedRowKeys || [])
callback && callback()
} else {
this.dataList = []
}