董国庆
2025-06-30 9fe11a3b1c7ca926e2f4e97e36c2911c290a0ab2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import axios from '@/utils/request';
 
// 列表
export const getList = (data) => {
  return axios.post('/system/user/list', { ...data })
}
 
// 添加
export const add = (data) => {
  return axios.post('/api/system/user/add', { ...data })
}
 
// 编辑
export const edit = (data) => {
  return axios.post('/api/system/user/edit', { ...data })
}
 
// 删除
export const delDept = (id) => {
  return axios.delete(`/system/user/deleteById/${id}`)
}
 
// 部门
export const deptList = (data) => {
  return axios.post(`/t-dept/listAll`)
}
 
export const roleList = () => {
  return axios.post(`/system/role/listNotPage`)
}
 
export const changeStatus = (data) => {
  return axios.put(`/system/user/changeStatus`, { ...data })
}
 
export const updatePwd = (data) => {
  return axios.post(`/api/system/user/resetPwd`, { ...data })
}
export const typeList = () => {
  return axios.get(`/t-business-dept/list/type?type=1`,)
}
 
export const inherit = (data) => {
  console.log('222222222222',data)
  return axios.put(`/open/system/user/inherit?userId=${data.userId}&oldUserId=${data.oldUserId}`, { ...data })
}