Jelajahi Sumber

fix:前线人员详情添加参数

刘恒 2 tahun lalu
induk
melakukan
3ae4db2787

+ 8 - 7
src/pages/personnelManage/channel/message.vue

@@ -167,13 +167,13 @@ export default {
   data() {
   data() {
     return {
     return {
       formState: {
       formState: {
-        phoneNumber: "",
-        name: "",
-        userCode: "",
+        // phoneNumber: "",
+        // name: "",
+        // userCode: "",
         time: "",
         time: "",
         days: "",
         days: "",
-        beginDate: undefined,
-        endDate: undefined,
+        createtimeEnd: undefined,
+        createtimeStart: undefined,
       },
       },
       current: 1,
       current: 1,
       teamTab: 0,
       teamTab: 0,
@@ -234,14 +234,15 @@ export default {
       this.getList();
       this.getList();
     },
     },
     timeChange(val) {
     timeChange(val) {
-      this.formState.beginDate = val[0];
-      this.formState.endDate = val[1];
+      this.formState.createtimeEnd = val[0];
+      this.formState.createtimeStart = val[1];
       this.getList();
       this.getList();
     },
     },
     getList() {
     getList() {
       this.$API.personnel
       this.$API.personnel
         .getChannelDetails({
         .getChannelDetails({
           userId: this.$route.query.userId,
           userId: this.$route.query.userId,
+          ...this.formState,
         })
         })
         .then((res) => {
         .then((res) => {
           if (res.data.code === 200) {
           if (res.data.code === 200) {

+ 8 - 1
src/pages/personnelManage/front/teammanage.vue

@@ -18,7 +18,12 @@
         <h2>成员详情</h2>
         <h2>成员详情</h2>
         <div>
         <div>
           月份筛选
           月份筛选
-          <a-month-picker placeholder="请选择月份" @change="monthChange" />
+          <a-month-picker
+            placeholder="请选择月份"
+            @change="monthChange"
+            v-model="formState.month"
+            valueFormat="YYYY-MM"
+          />
         </div>
         </div>
       </div>
       </div>
       <a-form layout="inline" :model="formState" @finish="handleFinish">
       <a-form layout="inline" :model="formState" @finish="handleFinish">
@@ -166,6 +171,7 @@ export default {
         phoneNumber: "",
         phoneNumber: "",
         name: "",
         name: "",
         userCode: "",
         userCode: "",
+        month: "",
       },
       },
       current: 1,
       current: 1,
       teamTab: 0,
       teamTab: 0,
@@ -229,6 +235,7 @@ export default {
       this.$API.personnel
       this.$API.personnel
         .getTeamList({
         .getTeamList({
           userId: this.$route.query.userId,
           userId: this.$route.query.userId,
+          ...this.formState,
         })
         })
         .then((res) => {
         .then((res) => {
           // console.log(res);
           // console.log(res);

+ 5 - 4
src/pages/task/insurance.vue

@@ -37,7 +37,7 @@
         >
         >
           <div
           <div
             class="insurer"
             class="insurer"
-            :class="insurerId === item.insuranceCompanyId ? 'on' : 'insurer'"
+            :class="companyId === item.insuranceCompanyId ? 'on' : 'insurer'"
           >
           >
             <div>
             <div>
               <img :width="50" :height="50" :src="item.logo" />
               <img :width="50" :height="50" :src="item.logo" />
@@ -175,7 +175,7 @@ export default {
         total: 0,
         total: 0,
         perPage: 0,
         perPage: 0,
       },
       },
-      insurerId: "",
+      companyId: "",
     };
     };
   },
   },
   watch: {
   watch: {
@@ -203,8 +203,8 @@ export default {
       // console.log(this.companyPage.page);
       // console.log(this.companyPage.page);
     },
     },
     chooseInsurer(item) {
     chooseInsurer(item) {
-      this.insurerId = item.insuranceCompanyId;
-      //   // console.log(item,this.insurerId)
+      this.companyId = item.insuranceCompanyId;
+      //   // console.log(item,this.companyId)
       this.getBackLinePersonnel();
       this.getBackLinePersonnel();
     },
     },
     onChangeTime(val) {
     onChangeTime(val) {
@@ -259,6 +259,7 @@ export default {
           pageNum: this.pagination.current,
           pageNum: this.pagination.current,
           pageSize: this.pagination.defaultPageSize,
           pageSize: this.pagination.defaultPageSize,
           ...this.formState,
           ...this.formState,
+          companyId: this.companyId,
         })
         })
         .then((res) => {
         .then((res) => {
           if (res.data.code === 200) {
           if (res.data.code === 200) {

+ 2 - 2
vue.config.js

@@ -121,9 +121,9 @@ module.exports = {
     }
     }
   },
   },
 
 
-  publicPath: 'https://sxzgkj.baoxianzhanggui.com/console-api',
+  // publicPath: 'https://sxzgkj.baoxianzhanggui.com/console-api',
 
 
-  // publicPath: '/',
+  publicPath: '/',
   outputDir: 'dist',
   outputDir: 'dist',
   assetsDir: 'static',
   assetsDir: 'static',
   productionSourceMap: false
   productionSourceMap: false