马宇豪
2023-03-20 34a649576de7cc6a728d165992a56c4109cf9579
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { userApi } from '/@/api/systemManage/user';
import { ElMessage } from 'element-plus';
 
export async function getUserByDepartment(value: number | null) {
    let res = await userApi().getUserLByDepartment(value);
    if (res.data.code === '200') {
        return res.data.data;
    } else {
        ElMessage({
            type: 'warning',
            message: res.data.msg
        });
        return [];
    }
}