update 优化 新增编辑用户 过滤禁用的部门

This commit is contained in:
疯狂的狮子Li
2024-12-11 15:30:44 +08:00
parent 84888c3c28
commit 7a9ccedadc
3 changed files with 39 additions and 12 deletions

View File

@ -1,4 +1,4 @@
import { DeptVO } from './../dept/types';
import {DeptTreeVO, DeptVO} from './../dept/types';
import { RoleVO } from '@/api/system/role/types';
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
@ -202,7 +202,7 @@ export const listUserByDeptId = (deptId: string | number): AxiosPromise<UserVO[]
/**
* 查询部门下拉树结构
*/
export const deptTreeSelect = (): AxiosPromise<DeptVO[]> => {
export const deptTreeSelect = (): AxiosPromise<DeptTreeVO[]> => {
return request({
url: '/system/user/deptTree',
method: 'get'