From 7c0b59a30b7b3e46f90d9726999b3a007f9fc666 Mon Sep 17 00:00:00 2001 From: odc.xiaohui <xiaohui@Q1> Date: 星期一, 09 一月 2023 18:05:47 +0800 Subject: [PATCH] Merge branch 'dev1.0' of http://42.193.1.25:9521/r/sccg_ui into dev1.0 --- src/api/intelligentPatrol/statistics.js | 38 ++++++++++++++++++++++---------------- 1 files changed, 22 insertions(+), 16 deletions(-) diff --git a/src/api/intelligentPatrol/statistics.js b/src/api/intelligentPatrol/statistics.js index fe0261a..ca9b43b 100644 --- a/src/api/intelligentPatrol/statistics.js +++ b/src/api/intelligentPatrol/statistics.js @@ -1,19 +1,25 @@ -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: (params) => { + return http.get('/sccg/intelligentPatrol/statistics/unlawful/point', params); + }, + // 鎸夋椂闂寸粺璁� + searchByTime: (params) => { + return http.get('/sccg/intelligentPatrol/statistics/unlawful/time', params); + }, + // 鎸夊尯鍩熺粺璁� + searchByArea: (params) => { + return http.get('/sccg/intelligentPatrol/statistics/unlawful/area', params); + }, + // 闂ㄥ墠涓夊寘缁熻 + searchByShop: (params) => { + return http.get('/sccg/intelligentPatrol/statistics/unlawful/shop', params); + }, }; \ No newline at end of file -- Gitblit v1.8.0