节假日设置
This commit is contained in:
44
src/api/mes/cal/calholiday.js
Normal file
44
src/api/mes/cal/calholiday.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询节假日设置列表
|
||||
export function listCalholiday(query) {
|
||||
return request({
|
||||
url: '/mes/cal/calholiday/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询节假日设置详细
|
||||
export function getCalholiday(holidayId) {
|
||||
return request({
|
||||
url: '/mes/cal/calholiday/' + holidayId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增节假日设置
|
||||
export function addCalholiday(data) {
|
||||
return request({
|
||||
url: '/mes/cal/calholiday',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改节假日设置
|
||||
export function updateCalholiday(data) {
|
||||
return request({
|
||||
url: '/mes/cal/calholiday',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除节假日设置
|
||||
export function delCalholiday(holidayId) {
|
||||
return request({
|
||||
url: '/mes/cal/calholiday/' + holidayId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user