【修改】工作组在研项目分页的bug
This commit is contained in:
@@ -57,6 +57,7 @@
|
||||
:dataSource="dataSource"
|
||||
:pagination="ipagination"
|
||||
:loading="underStudyLoading"
|
||||
@change="handleTableChange"
|
||||
class="j-table-force-nowrap">
|
||||
|
||||
<template slot="text" slot-scope="text">
|
||||
@@ -307,8 +308,8 @@ export default {
|
||||
getWorkingGroupUnderStudyProject(param).then(res => {
|
||||
if (res.success) {
|
||||
this.dataSource = res.result.records
|
||||
if (res.result.result.total) {
|
||||
this.ipagination.total = res.result.result.total
|
||||
if (res.result.total) {
|
||||
this.ipagination.total = res.result.total
|
||||
} else {
|
||||
this.ipagination.total = 0
|
||||
}
|
||||
@@ -405,6 +406,17 @@ export default {
|
||||
}
|
||||
this.fileLoading = false
|
||||
console.log(this.fileList)
|
||||
},
|
||||
/**
|
||||
* 分页变化
|
||||
* @param pagination
|
||||
* @param filters
|
||||
* @param sorter
|
||||
*/
|
||||
handleTableChange(pagination) {
|
||||
//分页变化时触发
|
||||
this.ipagination = pagination
|
||||
this.getUnderStudyProjectList()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user