更改前端的根据部门id查询员工接口地址与后端一致

This commit is contained in:
zhoumingfa 2024-11-14 17:15:18 +08:00
parent 7b712bae71
commit 145895703d
2 changed files with 3 additions and 3 deletions

View File

@ -88,6 +88,6 @@ export const employeeApi = {
* 查询员工-根据部门id * 查询员工-根据部门id
*/ */
queryEmployeeByDeptId: (departmentId) => { queryEmployeeByDeptId: (departmentId) => {
return getRequest(`/employee/query/dept/${departmentId}`); return getRequest(`/employee/getAllEmployeeByDepartmentId/${departmentId}`);
}, },
}; };

View File

@ -80,7 +80,7 @@ export const employeeApi = {
* @return {*} * @return {*}
*/ */
updateEmployeePassword: (param) => { updateEmployeePassword: (param) => {
return postRequest('/employee/update/password',param); return postRequest('/employee/update/password', param);
}, },
/** /**
* @description: 更新员工禁用状态 * @description: 更新员工禁用状态
@ -93,6 +93,6 @@ export const employeeApi = {
// 查询员工-根据部门id // 查询员工-根据部门id
queryEmployeeByDeptId: (departmentId) => { queryEmployeeByDeptId: (departmentId) => {
return getRequest(`/employee/query/dept/${departmentId}`); return getRequest(`/employee/getAllEmployeeByDepartmentId/${departmentId}`);
}, },
}; };