From f39fb3a2d0c2d66f1a8af4f6a253afc34c254e7d Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期日, 28 四月 2024 23:58:36 +0800
Subject: [PATCH] update
---
src/api/model/calender.js | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/api/model/calender.js b/src/api/model/calender.js
index 884e450..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-09 21:20:10
+ * @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,29 +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: "鑾峰彇鐝埗鍒楄〃",
- post: async function({data,params}){
- return await http.post(this.url, {},{data, params});
+ 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}`, {},{});
+ 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, {},{});
+ get: async function () {
+ return await http.get(this.url, {}, {});
},
},
}
\ No newline at end of file
--
Gitblit v1.9.3