zhanghua
2022-11-03 d62876d53574eae2480c350a5251e0bb777e279e
src/api/intelligentPatrol/statistics.js
@@ -1,16 +1,44 @@
import axios from "axios";
import {
    getToken
} from '@/utils/helper'
import http from '@/http'
const baseUrl = '/sccg/intelligentPatrol/statistics'
const token = {
    'Authorization': getToken()
}
export default {
    // 按违规类型统计
    searchByType: (data) => axios({
    searchByType: (params) => {
        return http.get('/sccg/intelligentPatrol/statistics/unlawful/type', params);
    },
    // 按点位统计
    searchByPoint: (data) => axios({
        method: 'get',
        url: baseUrl + '/unlawful/type',
        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
        },