You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.6 KiB
61 lines
1.6 KiB
import request from '@/config/axios'
|
|
|
|
export interface TeamSettingVO {
|
|
id: number
|
|
teamCode: string
|
|
teamName: string
|
|
teamType: string
|
|
endTime: Date
|
|
textOne: string
|
|
textTwo: string
|
|
textThree: string
|
|
textFour: string
|
|
textFive: string
|
|
deleteTime: Date
|
|
status: string
|
|
concurrencyStamp: number
|
|
remark: string
|
|
deleter: string
|
|
siteId: number
|
|
}
|
|
|
|
// 查询班组人员管理列表
|
|
export const getTeamSettingPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/mes/teamSetting/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/mes/teamSetting/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询班组人员管理详情
|
|
export const getTeamSetting = async (id: number) => {
|
|
return await request.get({ url: `/mes/teamSetting/get?id=` + id })
|
|
}
|
|
|
|
// 新增班组人员管理
|
|
export const createTeamSetting = async (data: TeamSettingVO) => {
|
|
return await request.post({ url: `/mes/teamSetting/create`, data })
|
|
}
|
|
|
|
// 修改班组人员管理
|
|
export const updateTeamSetting = async (data: TeamSettingVO) => {
|
|
return await request.put({ url: `/mes/teamSetting/update`, data })
|
|
}
|
|
|
|
// 删除班组人员管理
|
|
export const deleteTeamSetting = async (id: number) => {
|
|
return await request.delete({ url: `/mes/teamSetting/delete?id=` + id })
|
|
}
|
|
|
|
// 导出班组人员管理 Excel
|
|
export const exportTeamSetting = async (params) => {
|
|
return await request.download({ url: `/mes/teamSetting/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/mes/teamSetting/get-import-template' })
|
|
}
|