zhanghua
2022-11-03 d62876d53574eae2480c350a5251e0bb777e279e
src/api/intelligentPatrol/statistics.js
@@ -1,21 +1,13 @@
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({
        method: 'get',
        url: baseUrl + '/unlawful/type',
        headers: {
            ...token
        },
        params: data
    }),
    searchByType: (params) => {
        return http.get('/sccg/intelligentPatrol/statistics/unlawful/type', params);
    },
    // 按点位统计
    searchByPoint: (data) => axios({
        method: 'get',