Prechádzať zdrojové kódy

修改电销分配管理人出现同名人选择错误bug修复

hxl13994548489 1 rok pred
rodič
commit
19614b273a

+ 2 - 2
src/http/moudules/user.js

@@ -688,9 +688,9 @@ export const queryGeographyRecord = (data) => {
 
 
 
 
 // 电销管理人
 // 电销管理人
-export const findDxUserList = () => {
+export const findDxUserList = (type) => {
   return axios({
   return axios({
-    url: '/user/findDxUserList',
+    url: '/user/findDxUserList?type='+type,
     method: 'get',
     method: 'get',
   })
   })
 }
 }

+ 1 - 1
src/views/PeopleManage/Sales/SalesExamine.vue

@@ -630,7 +630,7 @@ export default {
           });
           });
         });
         });
         //添加电销负责人
         //添加电销负责人
-        this.$api.user.findDxUserList().then((res) => {
+        this.$api.user.findDxUserList("2").then((res) => {
           this.managerOptions = res.data;
           this.managerOptions = res.data;
         }); 
         }); 
     },
     },

+ 1 - 1
src/views/PeopleManage/Sales/SalesExamineGroup.vue

@@ -626,7 +626,7 @@ export default {
           this.searchLeaderOptions = [...res.data];
           this.searchLeaderOptions = [...res.data];
         });
         });
         //添加电销负责人
         //添加电销负责人
-        this.$api.user.findDxUserList().then((res) => {
+        this.$api.user.findDxUserList("1").then((res) => {
           this.managerOptions = res.data;
           this.managerOptions = res.data;
         }); 
         }); 
     },
     },

+ 1 - 1
src/views/PeopleManage/Sales/SalesManage.vue

@@ -826,7 +826,7 @@ export default {
           this.searchLeaderOptions = res.data;
           this.searchLeaderOptions = res.data;
         });
         });
       //添加电销负责人
       //添加电销负责人
-      this.$api.user.findDxUserList().then((res) => {
+      this.$api.user.findDxUserList("2").then((res) => {
         this.managerOptions = res.data;
         this.managerOptions = res.data;
       });
       });
     },
     },

+ 1 - 1
src/views/PeopleManage/Sales/SalesManageGroup.vue

@@ -804,7 +804,7 @@ export default {
           this.searchLeaderOptions = res.data;
           this.searchLeaderOptions = res.data;
         });
         });
         //添加电销负责人
         //添加电销负责人
-        this.$api.user.findDxUserList().then((res) => {
+        this.$api.user.findDxUserList("1").then((res) => {
         this.managerOptions = res.data;
         this.managerOptions = res.data;
       }); 
       }); 
     },
     },