bug修改
This commit is contained in:
@@ -69,6 +69,15 @@ export default {
|
||||
return {
|
||||
columns: [
|
||||
{
|
||||
title: '序号',
|
||||
dataIndex: '',
|
||||
key: 'rowIndex',
|
||||
width: 60,
|
||||
align: 'center',
|
||||
customRender: function (t, r, index) {
|
||||
return parseInt(index) + 1
|
||||
}
|
||||
}, {
|
||||
title: '分标委名称',
|
||||
align: 'center',
|
||||
dataIndex: 'name',
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
:dataSource="dataSource"
|
||||
:pagination="ipagination"
|
||||
:loading="loading"
|
||||
@change="handleTableChange"
|
||||
class="j-table-force-nowrap">
|
||||
|
||||
<template slot="text" slot-scope="text">
|
||||
@@ -221,6 +222,7 @@ export default {
|
||||
* 获取在研项目
|
||||
*/
|
||||
getUnderStudyProjectList() {
|
||||
this.loading = true
|
||||
let param = {
|
||||
abbreviation: this.$route.query.abbreviation,
|
||||
pageNo: this.ipagination.current,
|
||||
@@ -235,6 +237,8 @@ export default {
|
||||
this.ipagination.total = 0
|
||||
}
|
||||
}
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
/**
|
||||
@@ -270,13 +274,8 @@ export default {
|
||||
* @param filters
|
||||
* @param sorter
|
||||
*/
|
||||
handleTableChange(pagination, filters, sorter) {
|
||||
//分页、排序、筛选变化时触发
|
||||
//TODO 筛选
|
||||
if (Object.keys(sorter).length > 0) {
|
||||
this.isorter.column = sorter.field
|
||||
this.isorter.order = 'ascend' === sorter.order ? 'asc' : 'desc'
|
||||
}
|
||||
handleTableChange(pagination) {
|
||||
//分页变化时触发
|
||||
this.ipagination = pagination
|
||||
this.getUnderStudyProjectList()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user