[update] 修改bug89967
This commit is contained in:
@@ -250,7 +250,13 @@ export default {
|
|||||||
this.initDict()
|
this.initDict()
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.source ? this.queryParam.source = this.source : this.queryParam = {}
|
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 () {
|
initDict () {
|
||||||
@@ -290,7 +296,7 @@ export default {
|
|||||||
return values
|
return values
|
||||||
},
|
},
|
||||||
// 获取表格数据
|
// 获取表格数据
|
||||||
replacePage (arg) {
|
replacePage (arg, callback) {
|
||||||
if (arg === 1) {
|
if (arg === 1) {
|
||||||
this.ipagination.current = 1
|
this.ipagination.current = 1
|
||||||
}
|
}
|
||||||
@@ -315,7 +321,7 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.dataList = res.result.records
|
this.dataList = res.result.records
|
||||||
this.ipagination.total = res.result.total
|
this.ipagination.total = res.result.total
|
||||||
this.selectedRowKeys = this.value ? this.value.split(',') : (this.selectedRowKeys || [])
|
callback && callback()
|
||||||
} else {
|
} else {
|
||||||
this.dataList = []
|
this.dataList = []
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user