mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 02:08:43 +08:00 
			
		
		
		
	完成部门模块的迁移
This commit is contained in:
		| @@ -20,7 +20,7 @@ export function listDeptExcludeChild(deptId) { | ||||
| // 查询部门详细 | ||||
| export function getDept(deptId) { | ||||
|   return request({ | ||||
|     url: '/system/dept/' + deptId, | ||||
|     url: '/system/dept/get?id=' + deptId, | ||||
|     method: 'get' | ||||
|   }) | ||||
| } | ||||
| @@ -36,7 +36,7 @@ export function listSimpleDepts() { | ||||
| // 新增部门 | ||||
| export function addDept(data) { | ||||
|   return request({ | ||||
|     url: '/system/dept', | ||||
|     url: '/system/dept/create', | ||||
|     method: 'post', | ||||
|     data: data | ||||
|   }) | ||||
| @@ -45,19 +45,16 @@ export function addDept(data) { | ||||
| // 修改部门 | ||||
| export function updateDept(data) { | ||||
|   return request({ | ||||
|     url: '/system/dept', | ||||
|     method: 'put', | ||||
|     url: '/system/dept/update', | ||||
|     method: 'post', | ||||
|     data: data | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 删除部门 | ||||
| export function delDept(deptId) { | ||||
| export function delDept(id) { | ||||
|   return request({ | ||||
|     url: '/system/dept/' + deptId, | ||||
|     method: 'delete' | ||||
|     url: '/system/dept/delete?id=' + id, | ||||
|     method: 'post' | ||||
|   }) | ||||
| } | ||||
|  | ||||
| export class treeselect { | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV