diff --git a/src/components/selection/StandardSelectionModal.vue b/src/components/selection/StandardSelectionModal.vue index b5c9d53..4a59040 100644 --- a/src/components/selection/StandardSelectionModal.vue +++ b/src/components/selection/StandardSelectionModal.vue @@ -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 = [] }