[update] 修改bug81480
This commit is contained in:
@@ -39,6 +39,7 @@
|
|||||||
:columns="columns"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:can-drag="true"
|
:can-drag="true"
|
||||||
|
:loading="loading"
|
||||||
:rowKey="record => {return record.id + ',' + (record.taskId || '')}"
|
:rowKey="record => {return record.id + ',' + (record.taskId || '')}"
|
||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
@@ -252,6 +253,11 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
// update-begin---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
|
// update-begin---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
|
||||||
this.dataSource = res.result.records || res.result
|
this.dataSource = res.result.records || res.result
|
||||||
|
if (res.result.total) {
|
||||||
|
this.ipagination.total = res.result.total
|
||||||
|
} else {
|
||||||
|
this.ipagination.total = 0
|
||||||
|
}
|
||||||
// update-end---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
|
// update-end---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
Reference in New Issue
Block a user