init
This commit is contained in:
75
src/api/basicData/GroupModule/staff.js
Normal file
75
src/api/basicData/GroupModule/staff.js
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* @Author: zwq
|
||||
* @Date: 2020-12-29 16:00:14
|
||||
* @LastEditors: gtz
|
||||
* @LastEditTime: 2021-04-17 16:04:51
|
||||
* @Description:
|
||||
*/
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function staffList(data) { // 获取员工列表
|
||||
return request({
|
||||
url: '/basic/worker/page',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function staffDetail(id) { // 获取员工单条数据
|
||||
return request({
|
||||
url: '/basic/worker/get',
|
||||
method: 'post',
|
||||
data: { id }
|
||||
})
|
||||
}
|
||||
|
||||
export function staffUpdate(data) { // 更新员工单条数据
|
||||
return request({
|
||||
url: '/basic/worker/update',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function staffAdd(data) { // 新增员工单条数据
|
||||
return request({
|
||||
url: '/basic/worker/add',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function staffCode() { // 获取员工code
|
||||
return request({
|
||||
url: '/basic/worker/get-code',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
export function staffDelete(id) { // 删除员工单条数据
|
||||
return request({
|
||||
url: '/basic/worker/delete',
|
||||
method: 'post',
|
||||
data: { id }
|
||||
})
|
||||
}
|
||||
|
||||
export function workerList(data) { // 添加组员列表
|
||||
return request({
|
||||
url: '/basic/team-det/workerList',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function getRoleList() {
|
||||
return request({
|
||||
url: '/basic/platform-dict/selectPlatformDictDataListByPage',
|
||||
method: 'post',
|
||||
data: {
|
||||
dictTypeId: '1383318968677273601',
|
||||
current: 1,
|
||||
size: 999
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user