gaoluyang
2025-05-08 9ff9962d8d2d4cb1cd5d6abcb902e916c44cda03
src/api/system/user.js
@@ -1,5 +1,5 @@
import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/ruoyi";
import { parseStrEmpty } from "@/utils/ruoyi";
// 查询用户列表
export function listUser(query) {
@@ -13,7 +13,7 @@
// 查询用户详细
export function getUser(userId) {
  return request({
    url: '/system/user/' + praseStrEmpty(userId),
    url: '/system/user/' + parseStrEmpty(userId),
    method: 'get'
  })
}
@@ -96,7 +96,7 @@
  return request({
    url: '/system/user/profile/updatePwd',
    method: 'put',
    params: data
    data: data
  })
}
@@ -105,6 +105,7 @@
  return request({
    url: '/system/user/profile/avatar',
    method: 'post',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    data: data
  })
}
@@ -125,3 +126,18 @@
    params: data
  })
}
// 查询部门下拉树结构
export function deptTreeSelect() {
  return request({
    url: '/system/user/deptTree',
    method: 'get'
  })
}
// 查询用户列表
export function userListNoPage() {
  return request({
    url: '/system/user/userListNoPage',
    method: 'get'
  })
}