| | |
| | | import axios from "axios"; |
| | | import { |
| | | getToken |
| | | } from '@/utils/helper' |
| | | const baseUrl = '/sccg/intelligentPatrol/statistics' |
| | | const token = { |
| | | 'Authorization': getToken() |
| | | } |
| | | import http from '@/http' |
| | | |
| | | |
| | | 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', |
| | | url: baseUrl + '/unlawful/point', |
| | | headers: { |
| | | ...token |
| | | }, |
| | | params: data |
| | | }), |
| | | searchByPoint: (params) => { |
| | | return http.get('/sccg/intelligentPatrol/statistics/unlawful/point', params); |
| | | }, |
| | | // 按时间统计 |
| | | searchByTime: (data) => axios({ |
| | | method: 'get', |
| | | url: baseUrl + '/unlawful/time', |
| | | headers: { |
| | | ...token |
| | | }, |
| | | params: data |
| | | }), |
| | | searchByTime: (params) => { |
| | | return http.get('/sccg/intelligentPatrol/statistics/unlawful/time', params); |
| | | }, |
| | | // 按区域统计 |
| | | searchByArea: (data) => axios({ |
| | | method: 'get', |
| | | url: baseUrl + '/unlawful/area', |
| | | headers: { |
| | | ...token |
| | | }, |
| | | params: data |
| | | }), |
| | | searchByArea: (params) => { |
| | | return http.get('/sccg/intelligentPatrol/statistics/unlawful/area', params); |
| | | }, |
| | | // 门前三包统计 |
| | | searchByShop: (data) => axios({ |
| | | method: 'get', |
| | | url: baseUrl + '/unlawful/shop', |
| | | headers: { |
| | | ...token |
| | | }, |
| | | params: data |
| | | }), |
| | | searchByShop: (params) => { |
| | | return http.get('/sccg/intelligentPatrol/statistics/unlawful/shop', params); |
| | | }, |
| | | }; |