|
@@ -69,7 +69,7 @@
|
|
|
</div>
|
|
|
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
|
|
|
<el-tab-pane label="考评指标项内容" name="first">
|
|
|
- <el-table :data="quantifiedList" style="width: 100%" @select="rowClick" @select-all="rowClick">
|
|
|
+ <el-table :data="quantifiedList.slice((pageLeft.currentPage-1)*pageLeft.pagesize, pageLeft.currentPage*pageLeft.pagesize)" style="width: 100%" @select="rowClick" @select-all="rowClick">
|
|
|
<el-table-column type="selection" label="操作" align="center"></el-table-column>
|
|
|
<el-table-column type="index" label="序号" width="80" />
|
|
|
<el-table-column label="单位名称" prop="organizationShortName" width="300" />
|
|
@@ -98,9 +98,16 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
+ <el-pagination
|
|
|
+ @current-change="handleCurrentChangeLeft"
|
|
|
+ :current-page="pageLeft.currentPage"
|
|
|
+ :page-size="pageLeft.pagesize"
|
|
|
+ layout="total, prev, pager, next, jumper"
|
|
|
+ :total="pageLeft.total">
|
|
|
+ </el-pagination>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="考评评价指标内容" name="second">
|
|
|
- <el-table :data="nonQuantifiedList" style="width: 100%">
|
|
|
+ <el-table :data="nonQuantifiedList.slice((pageRight.currentPage-1)*pageRight.pagesize, pageRight.currentPage*pageRight.pagesize)" style="width: 100%">
|
|
|
<el-table-column type="index" label="序号" width="80" />
|
|
|
<el-table-column label="单位名称" prop="organizationShortName" width="300">
|
|
|
<template #default="scope">
|
|
@@ -200,6 +207,13 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
+ <el-pagination
|
|
|
+ @current-change="handleCurrentChangeRight"
|
|
|
+ :current-page="pageRight.currentPage"
|
|
|
+ :page-size="pageRight.pagesize"
|
|
|
+ layout="total, prev, pager, next, jumper"
|
|
|
+ :total="pageRight.total">
|
|
|
+ </el-pagination>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
|
|
@@ -260,7 +274,17 @@ export default {
|
|
|
indicItemoptions: [],
|
|
|
sectionNameArr: [],
|
|
|
deptNameArr: [],
|
|
|
- statusData: []
|
|
|
+ statusData: [],
|
|
|
+ pageLeft:{
|
|
|
+ pagesize: 15,
|
|
|
+ currentPage: 1,
|
|
|
+ total: 0
|
|
|
+ },
|
|
|
+ pageRight:{
|
|
|
+ pagesize: 15,
|
|
|
+ currentPage: 1,
|
|
|
+ total: 0
|
|
|
+ },
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -374,6 +398,12 @@ export default {
|
|
|
rowClick(selection, row) {
|
|
|
this.changeDateSelect = selection
|
|
|
},
|
|
|
+ handleCurrentChangeLeft(val) {
|
|
|
+ this.pageLeft.currentPage = val
|
|
|
+ },
|
|
|
+ handleCurrentChangeRight(val) {
|
|
|
+ this.pageRight.currentPage = val
|
|
|
+ },
|
|
|
//获取详情
|
|
|
getDetails(id) {
|
|
|
let that = this
|
|
@@ -385,7 +415,7 @@ export default {
|
|
|
apiGetdeptresponDetail(params).then(datas =>{
|
|
|
if (datas && datas.data) {
|
|
|
that.quantifiedList = datas.data.quantifiedList
|
|
|
- // let nonarr = []
|
|
|
+ that.pageLeft.total = datas.data.quantifiedList.length
|
|
|
if (datas.data.nonQuantifiedList.length>0) {
|
|
|
datas.data.nonQuantifiedList.forEach(it =>{
|
|
|
it.childName = it.indicatorName //指标id
|
|
@@ -393,6 +423,7 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
that.nonQuantifiedList = datas.data.nonQuantifiedList.length>0?datas.data.nonQuantifiedList:[]
|
|
|
+ that.pageRight.total = datas.data.nonQuantifiedList.length
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -697,8 +728,9 @@ export default {
|
|
|
}
|
|
|
|
|
|
.el-table{
|
|
|
+ margin-bottom: 10px;
|
|
|
.el-table__body-wrapper{
|
|
|
- height: 55vh;
|
|
|
+ height: 50vh;
|
|
|
}
|
|
|
.el-table__row{
|
|
|
.cell{
|