部门更新和新增modal框
This commit is contained in:
@@ -56,12 +56,36 @@ export async function adminRoleAssign(params) {
|
||||
}
|
||||
|
||||
// deptment
|
||||
export async function addDeptment(params) {
|
||||
return request('/admin-api/admins/dept/add', {
|
||||
method: 'POST',
|
||||
body: {
|
||||
...params,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
export async function updateDeptment(params) {
|
||||
return request('/admin-api/admins/dept/update', {
|
||||
method: 'POST',
|
||||
body: {
|
||||
...params,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
export async function deptTreePage(params) {
|
||||
return request(`/admin-api/admins/dept/tree/page?${stringify(params)}`, {
|
||||
method: 'GET',
|
||||
});
|
||||
}
|
||||
|
||||
export async function deptTreeAll() {
|
||||
return request('/admin-api/admins/dept/tree/all', {
|
||||
method: 'GET',
|
||||
});
|
||||
}
|
||||
|
||||
// resource
|
||||
|
||||
export async function addResource(params) {
|
||||
|
||||
Reference in New Issue
Block a user