zhanghua
2022-11-03 d62876d53574eae2480c350a5251e0bb777e279e
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
import http from '@/http'
 
 
const baseUrl = '/sccg/intelligentPatrol/statistics'
 
export default {
    // 按违规类型统计
    searchByType: (params) => {
        return http.get('/sccg/intelligentPatrol/statistics/unlawful/type', params);
    },
    // 按点位统计
    searchByPoint: (data) => axios({
        method: 'get',
        url: baseUrl + '/unlawful/point',
        headers: {
            ...token
        },
        params: data
    }),
    // 按时间统计
    searchByTime: (data) => axios({
        method: 'get',
        url: baseUrl + '/unlawful/time',
        headers: {
            ...token
        },
        params: data
    }),
    // 按区域统计
    searchByArea: (data) => axios({
        method: 'get',
        url: baseUrl + '/unlawful/area',
        headers: {
            ...token
        },
        params: data
    }),
    // 门前三包统计
    searchByShop: (data) => axios({
        method: 'get',
        url: baseUrl + '/unlawful/shop',
        headers: {
            ...token
        },
        params: data
    }),
};