v2.0 代码提交

This commit is contained in:
zhuoda
2022-10-27 22:14:48 +08:00
parent 207b949484
commit f7e5f6d539
1851 changed files with 108157 additions and 2231 deletions

View 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);
}
};