1
lzhe
2024-06-03 a786409d7f6769f43c107159dd84faf4a2927a9a
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
40
41
42
43
44
45
/*
 * @Date: 2024-04-07 21:49:32
 * @LastEditors: Sneed
 * @LastEditTime: 2024-04-09 20:25:53
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/api/model/time.js
 */
import config from "@/config"
import http from "@/utils/request"
 
export default {
    getList: {
        url: `${config.API_URL}/blade-cps/shift-off-day/page`,
        name: "获取休息日列表",
        get: async function(params){
            return await http.post(this.url, params, {params});
        },
        getUrl () {
            return this.url
        }
    },
    insert: {
        url: `${config.API_URL}/blade-cps/shift-off-day/insert`,
        name: "添加休息日",
        post: async function(params){
            return await http.post(this.url, params);
        },
        
    },
    update: {
        url: `${config.API_URL}/blade-cps/shift-off-day/update`,
        name: "更新休息日",
        post: async function(params){
            return await http.put(this.url, params);
        },
        
    },
    remove: {
        url: `${config.API_URL}/blade-cps/shift-off-day/remove`,
        name: "删除休息日",
        delete: async function(params){
            return await http.delete(this.url, {},{data: params});
        },
        
    },
}