From fc15f2e904fade9e1505bad70b29829d7d99c124 Mon Sep 17 00:00:00 2001 From: lzhe <lzhe@example.com> Date: 星期三, 05 六月 2024 12:04:59 +0800 Subject: [PATCH] 1 --- src/api/model/calender.js | 27 ++++++++++++++++++++++++--- 1 files changed, 24 insertions(+), 3 deletions(-) diff --git a/src/api/model/calender.js b/src/api/model/calender.js index 38413c7..f6f8002 100644 --- a/src/api/model/calender.js +++ b/src/api/model/calender.js @@ -1,7 +1,7 @@ /* * @Date: 2024-04-04 23:26:03 * @LastEditors: Sneed - * @LastEditTime: 2024-04-04 23:33:51 + * @LastEditTime: 2024-04-28 22:52:35 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/api/model/calender.js */ import config from "@/config" @@ -11,8 +11,29 @@ getList: { url: `${config.API_URL}/blade-cps/calendar/page`, name: "鑾峰彇鏃ュ巻鍒楄〃", - post: async function(data,params){ - return await http.post(this.url, data, {params}); + post: async function (data, params) { + return await http.post(this.url, data, { params }); + }, + }, + getShiftsystemList: { + url: `${config.API_URL}/blade-cps/shift/page`, + name: "鑾峰彇鐝埗鍒楄〃", + get: async function (data) { + return await http.post(this.url, data, { params: { current: data.current, size: data.size } }); + }, + }, + getShiftsystemInfo: { + url: `${config.API_URL}/blade-cps/shift/`, + name: "鑾峰彇鐝埗淇℃伅", + get: async function ({ id }) { + return await http.get(`${this.url}${id}`, {}, {}); + }, + }, + getShiftsystemDetail: { + url: `${config.API_URL}/blade-system/param/detail?paramKey=system.shift.max`, + name: "鑾峰彇鐝埗淇℃伅闄愬埗", + get: async function () { + return await http.get(this.url, {}, {}); }, }, } \ No newline at end of file -- Gitblit v1.9.3