p-honggang.li
5 天以前 22cc8ce22157a32bfcd4ee14d824769c6e318cec
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import createAxios from '@/utils/axios'
 
// 绩效规则模块
const url: string = '/admin/performanceRule'
const urlType: string = '/admin/sysDict'
 
const performanceRuleService = {
    // 获取列表  分页
    meritRatingList(data: object = {}): ApiPromise {
        return createAxios({
            url: `${url}/list`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 指标字典下拉
    zhibiaoCodeList(data: object = {}): ApiPromise {
        return createAxios({
            url: `${urlType}/subListByCode`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 添加信息
    addPerformanceRuleData(data: object = {}): ApiPromise {
        return createAxios({
            url: `${url}/add`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 编辑档案盒信息 根据ID查询
    queryInformationDetail(data: object = {}): ApiPromise {
        return createAxios({
            url: `${url}/detail`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 编辑-更新接口
    queryInformationEdit(data: object = {}): ApiPromise {
        return createAxios({
            url: `${url}/update`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 删除
    deleteInformation(data: object = {}): ApiPromise {
        return createAxios({
            url: `${url}/delete`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    }
 
}
 
export default performanceRuleService