[update] 修改bug81480

This commit is contained in:
lideqin
2024-01-30 13:50:03 +08:00
parent 84594f9f9b
commit 950b80faef
+6
View File
@@ -39,6 +39,7 @@
:columns="columns"
:dataSource="dataSource"
:can-drag="true"
:loading="loading"
:rowKey="record => {return record.id + ',' + (record.taskId || '')}"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
:pagination="ipagination"
@@ -252,6 +253,11 @@ export default {
if (res.success) {
// update-begin---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
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:适配不分页的数据列表------------
} else {
this.$message.warning(res.message)