From a8532e35b1a39de9bbcc5f2a648fe02c72d9c2b0 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期四, 16 二月 2023 14:09:53 +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