From 73b48dd59a2d47b365b87784371c4ef57dde659b Mon Sep 17 00:00:00 2001
From: Oliver <1070107765@qq.com>
Date: 星期四, 22 十二月 2022 11:17:47 +0800
Subject: [PATCH] 首页新增
---
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