From e5d499ae6a4e6b320f71c49987b76cc11f6bc1e4 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期二, 28 十月 2025 14:13:10 +0800
Subject: [PATCH] 首页问题
---
src/api/platform/threshold.js | 80 ++++++++++++++++++++++++++++++++++++++-
1 files changed, 77 insertions(+), 3 deletions(-)
diff --git a/src/api/platform/threshold.js b/src/api/platform/threshold.js
index 89086fa..9d3a337 100644
--- a/src/api/platform/threshold.js
+++ b/src/api/platform/threshold.js
@@ -12,7 +12,7 @@
// 鏌ヨ杩愮淮闃堝�艰缁�
export function getVideo(id) {
return request({
- url: '/threshold/video' + id,
+ url: '/threshold/video/' + id,
method: 'get'
})
}
@@ -20,7 +20,7 @@
// 鏌ヨ杩愮淮闃堝�艰缁�
export function getCar(id) {
return request({
- url: '/threshold/car' + id,
+ url: '/threshold/car/' + id,
method: 'get'
})
}
@@ -28,7 +28,7 @@
// 鏌ヨ杩愮淮闃堝�艰缁�
export function getFace(id) {
return request({
- url: '/threshold/face' + id,
+ url: '/threshold/face/' + id,
method: 'get'
})
}
@@ -85,3 +85,77 @@
data: data
})
}
+
+// 瀵煎叆
+export function importData(data) {
+ return request({
+ url: '/threshold/import',
+ method: 'post',
+ data: data,
+ headers: {
+ 'Content-Type': 'multipart/form-data'
+ },
+ timeout: 150000
+ })
+}
+
+// 鑾峰彇宸ュ崟鐧藉悕鍗曞垪琛�
+export function getWhiteList(query) {
+ return request({
+ url: '/threshold/white/page',
+ method: 'post',
+ data: query
+ })
+}
+
+// 鑾峰彇宸ュ崟鐧藉悕鍗曡鎯�
+export function getWhite(id) {
+ return request({
+ url: '/threshold/white/'+id,
+ method: 'get',
+ })
+}
+// 鏂板宸ュ崟鐧藉悕鍗�
+export function addWhiteList(data) {
+ return request({
+ url: '/threshold/white/add',
+ method: 'post',
+ data: data
+ })
+}
+// 淇敼宸ュ崟鐧藉悕鍗�
+export function updateWhite(data) {
+ return request({
+ url: '/threshold/white/update',
+ method: 'post',
+ data: data
+ })
+}
+
+// 鎵归噺鍒犻櫎宸ュ崟鐧藉悕鍗�
+export function bathDelete(data) {
+ return request({
+ url: '/threshold/white/batchDelete',
+ method: 'delete',
+ data: data
+ })
+}
+
+// 瀵煎嚭
+export function whiteExport(param) {
+ return request({
+ url: '/threshold/white/export',
+ method: 'get',
+ params: param,
+ responseType: 'blob'
+ })
+}
+
+// 淇敼宸ュ崟鐧藉悕鍗�
+export function addError(data) {
+ return request({
+ url: '/threshold/addBatch',
+ method: 'post',
+ data: data
+ })
+}
--
Gitblit v1.8.0