longyvfengyun
2023-12-25 d8d792a6842832e8f6af6604274c438b25053afe
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import axios from "axios"
 
export default {
    /**
     * 查询电池品牌统计信息
     * @returns {AxiosPromise}
     */
    searchProduceTotalData() {
        return axios({
            method: 'post',
            url: 'BattInfAction!findBattProducer',
            data: null,
        });
    },
    /**
     * 根据电池品牌查询机房信息
     * @param params 查询条件
     * @returns {AxiosPromise}
     */
    searchHomeByProduce(params) {
        return axios({
            method: 'post',
            url: 'BattInfAction!findBattProducerInfoByProducerName',
            data: 'json='+JSON.stringify(params),
        });
    },
    /**
     * 查询使用年限
     * @returns {AxiosPromise}
     */
    searchUseYear() {
        return axios({
            method: 'post',
            url: 'BattInfAction!findUseYear',
            data: null,
        });
    },
    /**
     * 查询年限下的机房
     * @param num
     * @returns {AxiosPromise}
     */
    searchHomeByYear(num) {
        return axios({
            method: 'post',
            url: 'BattInfAction!findBattProducerInfoByYearCode',
            data: 'json='+JSON.stringify({
                num: num
            }),
        });
    },
    /**
     * 查询续航统计
     * @returns {AxiosPromise}
     */
    searchXuHang() {
        return axios({
            method: 'post',
            url: 'BattEnduranceAction!getEndurance',
            data: null,
        });
    },
    /**
     * 根据续航时间查询续航机房
     * @param code  续航时间标识
     * @returns {AxiosPromise}
     */
    searchXuHangByTime(code) {
        return axios({
            method: 'post',
            url: 'BattEnduranceAction!getBattInfEnduranceByTimeCode',
            data: 'json='+JSON.stringify({
                timeCode: null,
                num: code
            }),
        });
    },
    /**
     * 启动续航统计
     * @returns {AxiosPromise}
     */
    startXuHang() {
        return axios({
            method: 'post',
            url: 'ThreadUtilAction!enableEndurance',
            data: null,
        });
    },
}