diff --git a/src/api/mes/cal/calholiday.js b/src/api/mes/cal/calholiday.js new file mode 100644 index 0000000..46f277d --- /dev/null +++ b/src/api/mes/cal/calholiday.js @@ -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' + }) +} diff --git a/src/views/mes/cal/holiday/index.vue b/src/views/mes/cal/holiday/index.vue index 5353ac2..ca6fae5 100644 --- a/src/views/mes/cal/holiday/index.vue +++ b/src/views/mes/cal/holiday/index.vue @@ -2,22 +2,139 @@
+ + + + + + + + + + + + + + + + + + + + +