工作站人力资源设置
This commit is contained in:
44
src/api/mes/md/workstationworker.js
Normal file
44
src/api/mes/md/workstationworker.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询人力资源列表
|
||||
export function listWorkstationworker(query) {
|
||||
return request({
|
||||
url: '/mes/md/workstationworker/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询人力资源详细
|
||||
export function getWorkstationworker(recordId) {
|
||||
return request({
|
||||
url: '/mes/md/workstationworker/' + recordId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增人力资源
|
||||
export function addWorkstationworker(data) {
|
||||
return request({
|
||||
url: '/mes/md/workstationworker',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改人力资源
|
||||
export function updateWorkstationworker(data) {
|
||||
return request({
|
||||
url: '/mes/md/workstationworker',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除人力资源
|
||||
export function delWorkstationworker(recordId) {
|
||||
return request({
|
||||
url: '/mes/md/workstationworker/' + recordId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
@@ -9,6 +9,14 @@ export function listPost(query) {
|
||||
})
|
||||
}
|
||||
|
||||
// 查询所有可用岗位,以列表方式返回
|
||||
export function listAllPost() {
|
||||
return request({
|
||||
url: '/system/post/listAll',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询岗位详细
|
||||
export function getPost(postId) {
|
||||
return request({
|
||||
|
||||
Reference in New Issue
Block a user