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 |   46 ++++++++++++----------------------------------
 1 files changed, 12 insertions(+), 34 deletions(-)

diff --git a/src/api/intelligentPatrol/statistics.js b/src/api/intelligentPatrol/statistics.js
index d230be2..ca9b43b 100644
--- a/src/api/intelligentPatrol/statistics.js
+++ b/src/api/intelligentPatrol/statistics.js
@@ -1,47 +1,25 @@
 import http from '@/http'
 
 
-const baseUrl = '/sccg/intelligentPatrol/statistics'
-
 export default {
     // 鎸夎繚瑙勭被鍨嬬粺璁�
     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);
+    },
 };
\ No newline at end of file

--
Gitblit v1.8.0