|
|
@@ -87,7 +87,7 @@
|
|
|
width="100"
|
|
|
label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" @click="handleTableEdit(scope.row)" size="small">编辑</el-button>
|
|
|
+ <el-button type="text" @click="handleTableEdit(scope.row.userId)" size="small">编辑</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<!-- 表格列 -->
|
|
|
@@ -168,6 +168,16 @@
|
|
|
:visible.sync="productDialogVisible"
|
|
|
width="800px"
|
|
|
>
|
|
|
+ <div style="margin-bottom:15px">保险公司:
|
|
|
+ <el-select v-model="pagePagination.companyId" filterable clearable @change="companyChange" size="small" placeholder="请选择">
|
|
|
+ <el-option
|
|
|
+ v-for="item in ztreeNodes"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
<el-table
|
|
|
@selection-change="handleSelectionChange"
|
|
|
:data="tableData"
|
|
|
@@ -179,6 +189,15 @@
|
|
|
<el-table-column prop="agreementCode" label="协议代码" width="180"></el-table-column>
|
|
|
<el-table-column prop="agreementName" label="协议名称"></el-table-column>
|
|
|
</el-table>
|
|
|
+ <el-pagination
|
|
|
+ @size-change="pagePaginationsize"
|
|
|
+ @current-change="pagePaginationcurrent"
|
|
|
+ :current-page="pagePagination.pageNum"
|
|
|
+ :page-sizes="[10, 20, 50, 100, 200]"
|
|
|
+ :page-size="pagePagination.pageSize"
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="pagePagination.total">
|
|
|
+ </el-pagination>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button size="small" @click="productDialogVisible = false">取 消</el-button>
|
|
|
<el-button size="small" type="primary" @click="submitForm">确 定</el-button>
|
|
|
@@ -218,6 +237,11 @@ export default {
|
|
|
pageNum: 1,
|
|
|
pageSize: 20
|
|
|
},
|
|
|
+ pagePagination: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 20,
|
|
|
+ total:0
|
|
|
+ },
|
|
|
personnePageRequest: {
|
|
|
//查询的默认条件
|
|
|
pageNum: 1,
|
|
|
@@ -295,6 +319,14 @@ export default {
|
|
|
return '';
|
|
|
}
|
|
|
},
|
|
|
+ pagePaginationsize(pageSize){
|
|
|
+ this.pagePagination.pageSize = pageSize;
|
|
|
+ this.handleTableEdit(this.userId)
|
|
|
+ },
|
|
|
+ pagePaginationcurrent: function (pageNum) {
|
|
|
+ this.pagePagination.pageNum = pageNum;
|
|
|
+ this.handleTableEdit(this.userId)
|
|
|
+ },
|
|
|
handleSizeChange(pageSize){
|
|
|
this.personnePageRequest.pageSize = pageSize;
|
|
|
this.personnelFindPage()
|
|
|
@@ -319,12 +351,23 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ companyChange(val){
|
|
|
+ if(val){
|
|
|
+ this.handleTableEdit(this.userId,val)
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ this.handleTableEdit(this.userId)
|
|
|
+ }
|
|
|
+ },
|
|
|
//--tree begin-------
|
|
|
- handleTableEdit( row ) {
|
|
|
- this.userId=row.userId
|
|
|
- this.$api.task.findPtlAgreementListByUserId(row.userId).then(res => {
|
|
|
+ handleTableEdit( userId,companyId ) {
|
|
|
+ this.userId=userId
|
|
|
+ this.$api.task.findPtlAgreementPageListByUserId({userId,companyId,...this.pagePagination}).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- this.tableData = res.data;
|
|
|
+ this.tableData = res.data.content;
|
|
|
+ this.pagePagination.pageNum= res.data.pageNum;
|
|
|
+ this.pagePagination.pageSize= res.data.pageSize;
|
|
|
+ this.pagePagination.total= res.data.totalSize;
|
|
|
this.$nextTick(() => {
|
|
|
this.tableData.forEach(val => {
|
|
|
if(val.flag=='true'){
|