mail.js 2.54 KB
Newer Older
xd's avatar
xd committed
1 2 3 4
import request from '@/utils/request'

// 进件管理

xd's avatar
xd committed
5 6
//通讯录管理---表格---获取全部人员
export function getAllMemberList(data) {
xd's avatar
xd committed
7
  return request({
wengjianling's avatar
wengjianling committed
8
    url: '/admin/auth/addressbook/clerk/getAll',
xd's avatar
xd committed
9 10 11 12 13 14 15
    method: 'get',
    params: data
  })
}
// 获取未分组人员
export function getNoGroupMember(data) {
  return request({
wengjianling's avatar
wengjianling committed
16
    url: '/admin/auth/addressbook/clerk/getArrangeNot',
xd's avatar
xd committed
17 18 19
    method: 'get',
    params: data
  })
xd's avatar
xd committed
20 21 22 23
} 
//  获取柜组用户  
export function getGroupById(data) {
  return request({
wengjianling's avatar
wengjianling committed
24
    url: '/admin/auth/addressbook/orgnization/getClerkById',
xd's avatar
xd committed
25 26 27
    method: 'get',
    params: data
  })
xd's avatar
xd committed
28 29 30 31 32 33 34
}
// 根据部门id获取人员
export function getMemberById(data) {
  return request({
    url: '/admin/auth/addressbook/getUserByStallId',
    method: 'get',
    params: data
xd's avatar
xd committed
35 36 37
  })
}
//通讯录管理---组织架构
xd's avatar
xd committed
38
export function getOrgTree() {
xd's avatar
xd committed
39
    return request({
wengjianling's avatar
wengjianling committed
40
      url: '/admin/auth/addressbook/orgnization/getAll',
xd's avatar
xd committed
41
      method: 'get',
xd's avatar
xd committed
42 43
    })
  }
xd's avatar
xd committed
44
export function getHistoryList(data) {
xd's avatar
xd committed
45
    return request({
wengjianling's avatar
wengjianling committed
46
      url: 'admin/auth/addressbook/clerk/synchronization',
xd's avatar
xd committed
47
      method: 'get',
xd's avatar
xd committed
48
      params:data
xd's avatar
xd committed
49 50
    })
  }
xd's avatar
xd committed
51 52 53 54 55 56
  export function deleteCounter(inData) {
    return request({
      url: '/admin/auth/stall/delete',
      method: 'delete',
      params: inData
    })
xd's avatar
xd committed
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
  }

  //  获取移动分组
  export function getGroup() {
    return request({
      url: '/admin/auth/addressbook/selectGroupPage',
      method: 'get',
    })
  }

  // 修改门店名字
  export function storeNameChange(data) {
    return request({
      url: '/admin/auth/stall/update',
      method: 'put',
      data
    })
xd's avatar
xd committed
74 75 76 77 78
  }

  // 移动人员
  export function moveMember(data) {
    return request({
wengjianling's avatar
wengjianling committed
79 80 81 82 83 84 85 86 87 88
      url: 'admin/auth/addressbook/clerk/moveTo',
      method: 'put',
      params:data
    })
  }

  // 设置管理员||取消管理员
  export function changeRole(data) {
    return request({
      url: 'admin/auth/addressbook/clerk/configManagerById',
xd's avatar
xd committed
89 90 91
      method: 'put',
      params:data
    })
xd's avatar
xd committed
92 93 94 95 96
  }

  // 模糊查询
  export function search(data) {
    return request({
wengjianling's avatar
wengjianling committed
97
      url: '/admin/auth/addressbook/clerk/getByUserIdOrUserName',
xd's avatar
xd committed
98 99 100
      method: 'get',
      params:data
    })
wengjianling's avatar
wengjianling committed
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
  }

   // 添加子部门
  export function addGroup(data) {
    return request({
      url: '/admin/auth/addressbook/orgnization/save',
      method: 'post',
      params:data
    })
  }

   // 删除子部门
  export function deleteGroup(data) {
    return request({
      url: '/admin/auth/addressbook/orgnization/deleteById',
      method: 'delete',
      params:data
    })
xd's avatar
xd committed
119
  }