Просмотр исходного кода

后线人员协议配置修改编辑接口

lihongxiao 2 лет назад
Родитель
Сommit
e52853bb38

+ 2 - 2
config/dev.env.js

@@ -11,14 +11,14 @@ module.exports = merge(prodEnv, {
   // BASE_URL:'"https://sxzgkj.baoxianzhanggui.com/web-api"'//正式服务器
   // BASE_URL:'"https://sxzgkj.baoxianzhanggui.com/web-api"'//正式服务器
   // BASE_URL: '"http://192.168.0.115:8080/"' //凯森
-  BASE_URL: '"http:///192.168.0.106:8080/"',//屈晨
+  // BASE_URL: '"http:///192.168.0.106:8080/"',//屈晨
   // BASE_URL: '"http://192.168.0.253:8080/"',//田智
   // BASE_URL: '"http:///192.168.0.42:8080/"',//武鸿鹏
   // BASE_URL: '"http:///192.168.0.253:8080/"',//田智
   // BASE_URL: '"http:///192.168.0.42:8080/"',//武鸿鹏
   // BASE_URL: '"http://192.168.1.101:8080/"',
   // BASE_URL: '"http://192.168.0.250:8080/"',//
-  // BASE_URL: '"http:///192.168.0.103:8080/"',//霍续亮
+  BASE_URL: '"http:///192.168.0.103:8080/"',//霍续亮
 })
 
 

+ 8 - 1
src/http/moudules/task.js

@@ -1578,4 +1578,11 @@ export const querySumAmount = (data) => {
     method: "post",
     data
   })
-}
+}
+export const findPtlAgreementPageListByUserId = (data) => {
+  return axios({
+    url: "/sysUserLinkPtlAgreement/findPtlAgreementPageListByUserId",
+    method: "post",
+    data
+  })
+}

+ 48 - 5
src/views/AgreementManage/CarInsurance/BacklineAllocation.vue

@@ -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'){