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.
56 lines
1.6 KiB
56 lines
1.6 KiB
import request from '@/config/axios'
|
|
|
|
export interface AbilityInfoVO {
|
|
deleteTime: Date
|
|
id: number
|
|
status: string
|
|
concurrencyStamp: number
|
|
remark: string
|
|
deleter: string
|
|
siteId: number
|
|
ablityCode: string
|
|
ablityName: string
|
|
trainMinHours: number
|
|
operMinHours: number
|
|
}
|
|
|
|
// 查询能力矩阵信息列表
|
|
export const getAbilityInfoPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/mes/ability-info/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/mes/ability-info/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询能力矩阵信息详情
|
|
export const getAbilityInfo = async (id: number) => {
|
|
return await request.get({ url: `/mes/ability-info/get?id=` + id })
|
|
}
|
|
|
|
// 新增能力矩阵信息
|
|
export const createAbilityInfo = async (data: AbilityInfoVO) => {
|
|
return await request.post({ url: `/mes/ability-info/create`, data })
|
|
}
|
|
|
|
// 修改能力矩阵信息
|
|
export const updateAbilityInfo = async (data: AbilityInfoVO) => {
|
|
return await request.put({ url: `/mes/ability-info/update`, data })
|
|
}
|
|
|
|
// 删除能力矩阵信息
|
|
export const deleteAbilityInfo = async (id: number) => {
|
|
return await request.delete({ url: `/mes/ability-info/delete?id=` + id })
|
|
}
|
|
|
|
// 导出能力矩阵信息 Excel
|
|
export const exportAbilityInfo = async (params) => {
|
|
return await request.download({ url: `/mes/ability-info/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/mes/ability-info/get-import-template' })
|
|
}
|