WXL
2024-09-12 2c4c416bf7950c72ffa2543a218e4fd993ee2af2
src/api/system/user.js
@@ -13,7 +13,7 @@
// 查询用户详细
export function getUser(userId) {
  return request({
    url: '/system/user/' + parseStrEmpty(userId),
    url: '/system/user/getInfo/' + parseStrEmpty(userId),
    method: 'get'
  })
}
@@ -21,7 +21,7 @@
// 新增用户
export function addUser(data) {
  return request({
    url: '/system/user',
    url: '/system/user/add',
    method: 'post',
    data: data
  })
@@ -30,8 +30,8 @@
// 修改用户
export function updateUser(data) {
  return request({
    url: '/system/user',
    method: 'put',
    url: '/system/user/edit',
    method: 'post',
    data: data
  })
}
@@ -39,8 +39,8 @@
// 删除用户
export function delUser(userId) {
  return request({
    url: '/system/user/' + userId,
    method: 'delete'
    url: '/system/user/remove/' + userId,
    method: 'get'
  })
}
@@ -52,7 +52,7 @@
  }
  return request({
    url: '/system/user/resetPwd',
    method: 'put',
    method: 'post',
    data: data
  })
}
@@ -64,8 +64,8 @@
    status
  }
  return request({
    url: '/system/user/changeStatus',
    method: 'put',
    url: '/system/user/changeStatus/edit',
    method: 'post',
    data: data
  })
}
@@ -81,8 +81,8 @@
// 修改用户个人信息
export function updateUserProfile(data) {
  return request({
    url: '/system/user/profile',
    method: 'put',
    url: '/system/user/profile/edit',
    method: 'post',
    data: data
  })
}
@@ -95,7 +95,7 @@
  }
  return request({
    url: '/system/user/profile/updatePwd',
    method: 'put',
    method: 'post',
    params: data
  })
}
@@ -121,7 +121,7 @@
export function updateAuthRole(data) {
  return request({
    url: '/system/user/authRole',
    method: 'put',
    method: 'post',
    params: data
  })
}
@@ -133,3 +133,11 @@
    method: 'get'
  })
}
// 新增科室/病区
export function adduserdept(data) {
  return request({
    url: '/smartor/userdept/add',
    method: 'post',
    params: data
  })
}