mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 10:18:42 +08:00 
			
		
		
		
	初始化 dept 部门模块
This commit is contained in:
		| @@ -26,6 +26,7 @@ export function getDept(deptId) { | ||||
| } | ||||
|  | ||||
| // 查询部门下拉树结构 | ||||
| // TODO 准备删除 | ||||
| export function treeselect() { | ||||
|   return request({ | ||||
|     url: '/system/dept/treeselect', | ||||
| @@ -34,6 +35,7 @@ export function treeselect() { | ||||
| } | ||||
|  | ||||
| // 根据角色ID查询部门树结构 | ||||
| // TODO 准备删除 | ||||
| export function roleDeptTreeselect(roleId) { | ||||
|   return request({ | ||||
|     url: '/system/dept/roleDeptTreeselect/' + roleId, | ||||
| @@ -41,6 +43,14 @@ export function roleDeptTreeselect(roleId) { | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 获取部门精简信息列表 | ||||
| export function listSimpleDepts() { | ||||
|   return request({ | ||||
|     url: '/system/dept/list-all-simple', | ||||
|     method: 'get' | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 新增部门 | ||||
| export function addDept(data) { | ||||
|   return request({ | ||||
| @@ -65,4 +75,4 @@ export function delDept(deptId) { | ||||
|     url: '/system/dept/' + deptId, | ||||
|     method: 'delete' | ||||
|   }) | ||||
| } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV