mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 02:08:43 +08:00 
			
		
		
		
	完成 Role 模块的迁移
This commit is contained in:
		| @@ -25,24 +25,6 @@ export function getDept(deptId) { | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 查询部门下拉树结构 | ||||
| // TODO 准备删除 | ||||
| export function treeselect() { | ||||
|   return request({ | ||||
|     url: '/system/dept/treeselect', | ||||
|     method: 'get' | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 根据角色ID查询部门树结构 | ||||
| // TODO 准备删除 | ||||
| export function roleDeptTreeselect(roleId) { | ||||
|   return request({ | ||||
|     url: '/system/dept/roleDeptTreeselect/' + roleId, | ||||
|     method: 'get' | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 获取部门精简信息列表 | ||||
| export function listSimpleDepts() { | ||||
|   return request({ | ||||
| @@ -76,3 +58,6 @@ export function delDept(deptId) { | ||||
|     method: 'delete' | ||||
|   }) | ||||
| } | ||||
|  | ||||
| export class treeselect { | ||||
| } | ||||
|   | ||||
| @@ -16,3 +16,12 @@ export function assignRoleMenu(data) { | ||||
|     data: data | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 赋予角色数据权限 | ||||
| export function assignRoleDataScope(data) { | ||||
|   return request({ | ||||
|     url: '/system/permission/assign-role-data-scope', | ||||
|     method: 'post', | ||||
|     data: data | ||||
|   }) | ||||
| } | ||||
|   | ||||
| @@ -35,15 +35,6 @@ export function updateRole(data) { | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 角色数据权限 | ||||
| export function dataScope(data) { | ||||
|   return request({ | ||||
|     url: '/system/role/dataScope', | ||||
|     method: 'put', | ||||
|     data: data | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 角色状态修改 | ||||
| export function changeRoleStatus(id, status) { | ||||
|   const data = { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV