mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-15 07:03:48 +08:00
v2.0 代码提交
This commit is contained in:
15
smart_admin_v1/smart-admin-web/src/api/data-scope.js
Normal file
15
smart_admin_v1/smart-admin-web/src/api/data-scope.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import { postAxios, getAxios } from '@/lib/http';
|
||||
export const dataScopeApi = {
|
||||
// 批量设置某角色数据范围
|
||||
updateDataScope: data => {
|
||||
return postAxios('/dataScope/batchSet', data);
|
||||
},
|
||||
// 数据权限列表
|
||||
getDataScopeList: () => {
|
||||
return getAxios('/dataScope/list');
|
||||
},
|
||||
// 获取某角色所设置的数据范围
|
||||
getDataScopeByRoleId: roleId => {
|
||||
return getAxios('/dataScope/listByRole/' + roleId);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user