From 7c20fd15b7fbc2bd5756b39d5ab655cc849ffcc3 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期三, 16 七月 2025 22:39:23 +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