mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 10:18:42 +08:00 
			
		
		
		
	完成岗位的迁移
This commit is contained in:
		| @@ -3,7 +3,7 @@ import request from '@/utils/request' | ||||
| // 查询岗位列表 | ||||
| export function listPost(query) { | ||||
|   return request({ | ||||
|     url: '/system/post/list', | ||||
|     url: '/system/post/page', | ||||
|     method: 'get', | ||||
|     params: query | ||||
|   }) | ||||
| @@ -20,7 +20,7 @@ export function listSimplePosts() { | ||||
| // 查询岗位详细 | ||||
| export function getPost(postId) { | ||||
|   return request({ | ||||
|     url: '/system/post/' + postId, | ||||
|     url: '/system/post/get?id=' + postId, | ||||
|     method: 'get' | ||||
|   }) | ||||
| } | ||||
| @@ -28,7 +28,7 @@ export function getPost(postId) { | ||||
| // 新增岗位 | ||||
| export function addPost(data) { | ||||
|   return request({ | ||||
|     url: '/system/post', | ||||
|     url: '/system/post/create', | ||||
|     method: 'post', | ||||
|     data: data | ||||
|   }) | ||||
| @@ -37,8 +37,8 @@ export function addPost(data) { | ||||
| // 修改岗位 | ||||
| export function updatePost(data) { | ||||
|   return request({ | ||||
|     url: '/system/post', | ||||
|     method: 'put', | ||||
|     url: '/system/post/update', | ||||
|     method: 'post', | ||||
|     data: data | ||||
|   }) | ||||
| } | ||||
| @@ -46,8 +46,8 @@ export function updatePost(data) { | ||||
| // 删除岗位 | ||||
| export function delPost(postId) { | ||||
|   return request({ | ||||
|     url: '/system/post/' + postId, | ||||
|     method: 'delete' | ||||
|     url: '/system/post/delete?id=' + postId, | ||||
|     method: 'post' | ||||
|   }) | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV