刘恒 1 год назад
Родитель
Сommit
f1c5b27e54

+ 1 - 1
.env.development

@@ -9,4 +9,4 @@ VUE_APP_API_BASE_URL='http://192.168.0.42:8080'
 
 # VUE_APP_API_BASE_URL= '"http://192.168.1.101:8080/"'
 # VUE_APP_API_BASE_URL= '"http://192.168.0.250:8080/"'//
-#  VUE_APP_API_BASE_URL= 'http://192.168.0.103:8080'                 #//霍续亮
+#  VUE_APP_API_BASE_URL= 'http://192.168.0.103:8080'                 #//霍续亮 

+ 3 - 2
src/layouts/tabs/TabsView.vue

@@ -23,9 +23,10 @@
         :animate="animate.name"
         :direction="animate.direction"
       >
-        <!-- <a-keep-alive :exclude-keys="excludeKeys" v-if="multiPage && cachePage" v-model="clearCaches"> -->
+        <!-- 缓存,用于刷新时保留页签 -->
+        <!-- <keep-alive> -->
         <router-view ref="tabContent" :key="$route.path" />
-        <!-- </a-keep-alive> -->
+        <!-- </keep-alive> -->
         <!-- <router-view ref="tabContent" v-else-if="!refreshing" /> -->
       </page-toggle-transition>
     </div>

+ 2 - 1
src/pages/business/channel.vue

@@ -292,10 +292,11 @@ export default {
       disabled: false,
     };
   },
+  created() {},
   mounted() {
-    this.getVerification();
     // setTimeout(() => {
     // }, 1000);
+    this.getVerification();
   },
   methods: {
     showTab(val) {

+ 30 - 0
src/pages/business/index.vue

@@ -79,6 +79,31 @@
         <div class="list-details-title">
           <h2>保险分布</h2>
           <p>{{ chooseTable.insuranceCompanyName }}保险承保状态数据展示</p>
+          <a-select
+            style="width: 100%"
+            v-model="formState.riskCode"
+            placeholder="请选择投保险种"
+            allowClear
+          >
+            <a-select-option value="all">全部</a-select-option>
+            <a-select-option value="单交">单交</a-select-option>
+            <a-select-option value="单商">单商</a-select-option>
+            <a-select-option value="单三">单三</a-select-option>
+            <a-select-option value="交三">交三</a-select-option>
+            <a-select-option value="交商">交商</a-select-option>
+          </a-select>
+          <!-- <a-radio-group
+            default-value="0"
+            button-style="solid"
+            v-model="formState.riskCode"
+          >
+            <a-radio-button value="all"> 全部 </a-radio-button>
+            <a-radio-button value="单交"> 单交 </a-radio-button>
+            <a-radio-button value="单商"> 单商 </a-radio-button>
+            <a-radio-button value="单三"> 单三 </a-radio-button>
+            <a-radio-button value="交三"> 交三 </a-radio-button>
+            <a-radio-button value="交商"> 交商 </a-radio-button>
+          </a-radio-group> -->
         </div>
         <div style="padding: 0 15px; box-sizing: border-box">
           <div
@@ -175,6 +200,7 @@ export default {
         time: [moment().format("YYYY-MM-DD"), moment().format("YYYY-MM-DD")],
         createtimeEnd: moment().format("YYYY-MM-DD"),
         createtimeStart: moment().format("YYYY-MM-DD"),
+        riskCode: undefined,
       },
       columns,
       //   listLoading: false,
@@ -212,6 +238,9 @@ export default {
       this.pagination.defaultPageSize = 10;
       this.getList();
     },
+    "formState.riskCode"() {
+      this.onClickRow(this.chooseTable);
+    },
   },
   mounted() {
     this.getList();
@@ -230,6 +259,7 @@ export default {
           parterCompanyId: row.parterCompanyId,
           createtimeEnd: this.formState.createtimeEnd,
           createtimeStart: this.formState.createtimeStart,
+          riskCode: this.formState.riskCode,
         })
         .then((res) => {
           this.listLoading = false;

+ 5 - 4
src/pages/quote/smallorders/agent.vue

@@ -4,7 +4,7 @@
       <div><h2>部门所属</h2></div>
       <div>
         <!-- <a-tree  :tree-data="treeData" /> -->
-        <tree @getList="getAgentTree"></tree>
+        <tree @getList="getVerification"></tree>
       </div>
     </div>
     <div class="back-line-main">
@@ -261,10 +261,9 @@ export default {
     // }, 1000);
   },
   methods: {
-    getAgentTree(id) {
+    getAgentTree() {
       this.$API.quote
         .getAgentTree({
-          deptId: id ? id : "",
           managementSource: 2,
           // provinceId: this.formState.provinceId,
           // cityId: this.formState.cityId,
@@ -272,6 +271,7 @@ export default {
           // houseId: this.formState.houseId,
         })
         .then((res) => {
+          console.log(res);
           if (res.data.code === 200) {
             this.treeData = [...res.data.data];
           }
@@ -288,7 +288,7 @@ export default {
       //
     },
 
-    getVerification() {
+    getVerification(id) {
       this.loading = true;
 
       this.$API.quote
@@ -299,6 +299,7 @@ export default {
           beginDate: this.formState.beginDate,
           endDate: this.formState.endDate,
           managementSource: 2,
+          deptId: id ? id : "",
           // provinceId: this.formState.provinceId,
           // cityId: this.formState.cityId,
           // countyId: this.formState.countyId,

+ 3 - 2
src/pages/quote/smallorders/channel.vue

@@ -4,7 +4,7 @@
       <div><h2>部门所属</h2></div>
       <div>
         <!-- <a-tree  :tree-data="treeData" /> -->
-        <tree @getList="getAgentTree"></tree>
+        <tree @getList="getVerification"></tree>
       </div>
     </div>
     <div class="back-line-main">
@@ -248,7 +248,7 @@ export default {
       //
     },
 
-    getVerification() {
+    getVerification(id) {
       this.loading = true;
 
       this.$API.quote
@@ -259,6 +259,7 @@ export default {
           beginDate: this.formState.beginDate,
           endDate: this.formState.endDate,
           managementSource: 1,
+          deptId: id ? id : "",
           // provinceId: this.formState.provinceId,
           // cityId: this.formState.cityId,
           // countyId: this.formState.countyId,

+ 1 - 1
src/pages/task/insurance.vue

@@ -294,9 +294,9 @@ export default {
       this.$API.task
         .exportInsurancelList({
           ...this.formState,
+          companyId: this.companyId,
         })
         .then((res) => {
-          console.log(res);
           if (res.data.code == 200) {
             let url = this.process + res.data.data; // 3.创建一个临时的url指向blob对象
             let a = document.createElement("a");

+ 1 - 1
vue.config.js

@@ -121,7 +121,7 @@ module.exports = {
     }
   },
 
-  // publicPath: 'https://sxzgkj.baoxian zhanggui.com/console-api',
+  // publicPath: 'https://sxzgkj.baoxianzhanggui.com/console-api',
 
   publicPath: '/',
   outputDir: 'dist',