gaoshp
2024-04-23 88dc89d715828ae485cd00772c0c690b58a7b650
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 * @Date: 2024-04-04 23:26:03
 * @LastEditors: Sneed
 * @LastEditTime: 2024-04-09 21:20:10
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/api/model/calender.js
 */
import config from "@/config"
import http from "@/utils/request"
 
export default {
    getList: {
        url: `${config.API_URL}/blade-cps/calendar/page`,
        name: "获取日历列表",
        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});
        },
    },
    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, {},{});
        },
    },
}