efficient.js
1.23 KB
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
/*
* @Description :对应的业务的api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 10:32:39
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class efficient {
/**
* @description: 获取对应的业务量总数
* @param {*} startDate:开始日期
* @param {*} endDate:结束日期
* @param {*} qxdm
* @author: renchao
*/
async getProcessCounts (startDate, endDate, qxdm) {
return request({
url: SERVER.SERVERAPI + "/rest/statistics/Efficient/getProcessCounts",
method: "post",
params: {
startDate: startDate,
endDate: endDate,
qxdm: qxdm
},
});
}
/**
* @description: 获取各区县业务对应的天数
* @param {*} recType:业务代码
* @param {*} startDate:开始日期
* @param {*} endDate:结束日期
* @author: renchao
*/
async getProcessDays (recType, startDate, endDate) {
return request({
url: SERVER.SERVERAPI + "/rest/statistics/Efficient/getProcessDays",
method: "post",
params: {
recType: recType,
startDate: startDate,
endDate: endDate,
},
});
}
}
export default new efficient();