From 76ab72d2d4f443060448e20bb74230a8040b85f5 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期二, 05 十一月 2024 11:00:33 +0800
Subject: [PATCH] 文件上传大小、工单审核后刷新

---
 src/api/platform/threshold.js |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/src/api/platform/threshold.js b/src/api/platform/threshold.js
index 89086fa..ef0f6b5 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,16 @@
     data: data
   })
 }
+
+// 瀵煎叆
+export function importData(data) {
+  return request({
+    url: '/threshold/import',
+    method: 'post',
+    data: data,
+    headers: {
+      'Content-Type': 'multipart/form-data'
+    },
+    timeout: 150000
+  })
+}

--
Gitblit v1.8.0