yudao-dev/src/api/base/groupTeam.js

107 lines
1.9 KiB
JavaScript
Raw Normal View History

2023-07-27 15:16:13 +08:00
import request from '@/utils/request'
// 创建班组基础信息
export function createGroupTeam(data) {
return request({
url: '/base/group-team/create',
method: 'post',
data: data
})
}
// 更新班组基础信息
export function updateGroupTeam(data) {
return request({
url: '/base/group-team/update',
method: 'put',
data: data
})
}
// 删除班组基础信息
export function deleteGroupTeam(id) {
return request({
url: '/base/group-team/delete?id=' + id,
method: 'delete'
})
}
// 获得班组基础信息
export function getGroupTeam(id) {
return request({
url: '/base/group-team/get?id=' + id,
method: 'get'
})
}
// 获得班组基础信息分页
export function getGroupTeamPage(query) {
return request({
url: '/base/group-team/page',
method: 'get',
params: query
})
}
2023-08-02 09:17:46 +08:00
// 获取班组code
export function getCode() {
2023-07-27 15:16:13 +08:00
return request({
2023-08-02 09:17:46 +08:00
url: '/base/group-team/getCode',
method: 'get'
2023-07-27 15:16:13 +08:00
})
}
2023-09-18 08:41:14 +08:00
// 获得可用的排班列表
export function listEnabled() {
return request({
url: '/base/group-team/listEnabled',
method: 'get'
})
}
2023-10-24 15:16:20 +08:00
// 获得班组组员信息分页
export function groupTeamPage(query) {
return request({
url: '/base/group-team-det/page',
method: 'get',
params: query
})
}
// 获得班组组员信息
export function groupTeamDet(query) {
return request({
url: '/base/group-team-det/get',
method: 'get',
params: query
})
}
// 创建班组组员信息
export function teamDetCreate(data) {
return request({
url: '/base/group-team-det/create',
method: 'post',
data: data
})
}
// 更新班组组员信息
export function teamDetUpdate(data) {
return request({
url: '/base/group-team-det/update',
method: 'put',
data: data
})
}
// 删除班组组员信息
export function teamDetDelete(query) {
return request({
url: '/base/group-team-det/delete',
method: 'delete',
params: query
})
}