From dc1b93f8af29df40cfcb57115cc93ebd12aee061 Mon Sep 17 00:00:00 2001 From: "JinLu.Yin" <411641505@qq.com> Date: Wed, 8 Jun 2022 23:01:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8A=82=E5=81=87=E6=97=A5=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/cal/calholiday.js | 44 ++++++++++ src/views/mes/cal/holiday/index.vue | 125 +++++++++++++++++++++++++++- 2 files changed, 167 insertions(+), 2 deletions(-) create mode 100644 src/api/mes/cal/calholiday.js 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 @@
+ + + + + + + + + + + + + + + + + + + + +