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

业绩管理-详情接口对接

lihongxiao 2 лет назад
Родитель
Сommit
5cffabdbc6
3 измененных файлов с 22 добавлено и 18 удалено
  1. 2 2
      config/dev.env.js
  2. 8 0
      src/http/moudules/user.js
  3. 12 16
      src/views/PeopleManage/Player/PerformanceManage.vue

+ 2 - 2
config/dev.env.js

@@ -5,11 +5,11 @@ const prodEnv = require('./prod.env')
 module.exports = merge(prodEnv, {
   NODE_ENV: '"development"',
   ENV_CONFIG:'"dev"',
-  BASE_URL: '"https://test.baoxianzhanggui.com/web-api"',//测试服务器
+  // BASE_URL: '"https://test.baoxianzhanggui.com/web-api"',//测试服务器
   // 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:8082/"',//田智
   // BASE_URL: '"http:///192.168.0.42:8080/"',//武鸿鹏
   // BASE_URL: '"http://192.168.1.101:8080/"',

+ 8 - 0
src/http/moudules/user.js

@@ -336,4 +336,12 @@ export const queryChannelNum = (data) => {
     method: 'post',
     data
   })
+}
+// 业绩管理详情接口
+export const quTeamNumDetail = (data) => {
+  return axios({
+    url: '/user/quTeamNumDetail',
+    method: 'post',
+    data
+  })
 }

+ 12 - 16
src/views/PeopleManage/Player/PerformanceManage.vue

@@ -21,6 +21,7 @@
         v-model="pageRequest"
         size="small"
         label-width="95px"
+        :inline="true"
         class="form"
       >
         <el-form-item label="团队用户" label-width="95px" prop="revenueOutlay">
@@ -144,9 +145,7 @@
             @size-change="handleSizeChange"
             layout="total, sizes, prev, pager, next, jumper"
             @current-change="refreshPageRequest"
-            :current-page="detailParams.pageNo"
-            :page-size="detailParams.pageSize"
-            :page-sizes="[10, 20, 50, 100, 200, 300, 400, 500]"
+            :page-sizes="[20, 50, 100, 200, 300, 400, 500]"
             :total="detailParams.totalSize"
             style="float: left; margin-left: 20px"
           >
@@ -214,9 +213,9 @@ export default {
         { prop: "quoteNum", label: "报价次数", type: "text" },
         { prop: "submitNum", label: "提交核保次数", type: "text" },
         { prop: "hasInsuredNum", label: "已承保数量", type: "text" },
-        { prop: "syPremiumSum", label: "商业保费", type: "text" },
         { prop: "taxaMountSum", label: "车船税", type: "text" },
         { prop: "jqPremiumSum", label: "交强险费用", type: "text" },
+        { prop: "syPremiumSum", label: "商业保费", type: "text" },
         {
           prop: "totalSumpremium",
           label: "总承保保费总数",
@@ -226,7 +225,7 @@ export default {
       detailData: [],
       detailParams: {
         pageNo: 1,
-        pageSize: 10,
+        pageSize: 20,
         teamOrUserFlag: "2",
       },
       detailColumns: [
@@ -339,20 +338,16 @@ export default {
     },
     //查看详情
     handleDetail(index) {
-      let row = index.row;
-      this.detailParams.deptId = row.deptId;
-      this.detailParams.deptName = row.deptName;
-      this.detailParams.createTimeStart =  this.pageRequest.createTimeStart;
-      this.detailParams.createTimeEnd =  this.pageRequest.createTimeEnd;
-      this.getDetailData();
+      this.detailParams.deptId = index.row.deptId;
+      // this.detailParams.deptName = row.deptName;
+      // this.detailParams.createTimeStart =  this.pageRequest.createTimeStart;
+      // this.detailParams.createTimeEnd =  this.pageRequest.createTimeEnd;
       this.detailDialog = true;
-      
+      this.getDetailData()
     },
-    // 详情接口
-    getDetailData() {
+    getDetailData(){
       this.loading = true;
-      let obj = JSON.parse(JSON.stringify(this.detailParams));
-      this.$api.user.quTeamNum(obj).then((res) => {
+      this.$api.user.quTeamNumDetail(this.detailParams).then((res) => {
         if (res.code == 200) {
           this.detailData = res.data.records;
           this.detailParams.pageNo = res.data.current;
@@ -362,6 +357,7 @@ export default {
           this.loading = false;
         } else {
           this.$message.error(res.msg);
+          this.loading = false;
         }
       });
     },