Explorar el Código

渠道管理新增编辑添加领导人

lihongxiao hace 2 años
padre
commit
a0e41dcda4

+ 10 - 1
src/http/moudules/user.js

@@ -292,11 +292,20 @@ export const getApprovalNotPass= (params) => {
 //获取推荐人
 export const selectfindByreferrerId= (params) => {
   return axios({
-      url: 'user/selectfindByreferrerId',
+      url: '/user/selectfindByreferrerId',
       method: 'get',
       params
   })
 }
+//获取后线领导人
+export const findBackListByDeptId= (params) => {
+  return axios({
+      url: '/user/findBackListByDeptId',
+      method: 'get',
+      params
+  })
+}
+
 // 编辑保存用户信息
 export const updateUserInfo = (userId,data) => {
   return axios({

+ 3 - 4
src/views/PeopleManage/Player/PlayerManage.vue

@@ -378,7 +378,7 @@ export default {
             this.recommenderOptions = res.data;
           });
         this.$api.user
-          .findListByDeptId({ deptId: this.formData.deptId, })
+          .findBackListByDeptId({ deptId: this.formData.deptId, })
           .then((res) => {
             this.leaderOptions = res.data;
           });
@@ -440,7 +440,7 @@ export default {
             this.recommenderOptions = res.data;
           });
           this.$api.user
-          .findListByDeptId({ deptId: res.data.sysUser.deptId })
+          .findBackListByDeptId({ deptId: res.data.sysUser.deptId })
           .then((res) => {
             this.leaderOptions = res.data;
           });
@@ -461,11 +461,10 @@ export default {
           this.recommenderOptions = res.data;
         });
         this.$api.user
-          .findListByDeptId({ deptId: this.formData.deptId })
+          .findBackListByDeptId({ deptId: this.deptId})
           .then((res) => {
             this.leaderOptions = res.data;
           });
-          
       if (this.currentTreeNode == null) {
         this.$message.info("请选择所属公司或部门");
         return;

+ 3 - 3
src/views/PeopleManage/Player/PlayerManageteam.vue

@@ -626,7 +626,7 @@ export default {
         this.formData.referrerId = "";
         this.formData.deptId = val.at(-1);
         this.$api.user
-          .findListByDeptId({ deptId: this.formData.deptId, })
+          .findBackListByDeptId({ deptId: this.formData.deptId, })
           .then((res) => {
             this.leaderOptions = res.data;
           });
@@ -683,7 +683,7 @@ export default {
       let res = await this.$api.user.getUserDatail(params.userId);
       if (res.code == 200) {
         this.$api.user
-          .findListByDeptId({ deptId: res.data.sysUser.deptId })
+          .findBackListByDeptId({ deptId: res.data.sysUser.deptId })
           .then((res) => {
             this.leaderOptions = res.data;
           });
@@ -700,7 +700,7 @@ export default {
     handleAddButton() {
       //级联渲染部门列表
       this.$api.user
-          .findListByDeptId({ deptId: this.formData.deptId })
+          .findBackListByDeptId({ deptId: this.formData.deptId })
           .then((res) => {
             this.leaderOptions = res.data;
           });