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

55 lines
1.0 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
})
}
// 导出班组基础信息 Excel
export function exportGroupTeamExcel(query) {
return request({
url: '/base/group-team/export-excel',
method: 'get',
params: query,
responseType: 'blob'
})
}