[update] 修改bug89967
This commit is contained in:
@@ -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 = []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user