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 |   68 +++++++++++++++++++++++++++++++---
 1 files changed, 62 insertions(+), 6 deletions(-)

diff --git a/src/api/platform/threshold.js b/src/api/platform/threshold.js
index f11bf24..ef0f6b5 100644
--- a/src/api/platform/threshold.js
+++ b/src/api/platform/threshold.js
@@ -3,16 +3,32 @@
 // 鏌ヨ杩愮淮闃堝�煎垪琛�
 export function listThreshold(query) {
   return request({
-    url: '/ycl/threshold/list',
+    url: '/threshold/list',
     method: 'get',
     params: query
   })
 }
 
 // 鏌ヨ杩愮淮闃堝�艰缁�
-export function getThreshold(id) {
+export function getVideo(id) {
   return request({
-    url: '/ycl/threshold/' + id,
+    url: '/threshold/video/' + id,
+    method: 'get'
+  })
+}
+
+// 鏌ヨ杩愮淮闃堝�艰缁�
+export function getCar(id) {
+  return request({
+    url: '/threshold/car/' + id,
+    method: 'get'
+  })
+}
+
+// 鏌ヨ杩愮淮闃堝�艰缁�
+export function getFace(id) {
+  return request({
+    url: '/threshold/face/' + id,
     method: 'get'
   })
 }
@@ -20,7 +36,7 @@
 // 鏂板杩愮淮闃堝��
 export function addThreshold(data) {
   return request({
-    url: '/ycl/threshold',
+    url: '/threshold',
     method: 'post',
     data: data
   })
@@ -29,7 +45,7 @@
 // 淇敼杩愮淮闃堝��
 export function updateThreshold(data) {
   return request({
-    url: '/ycl/threshold',
+    url: '/threshold',
     method: 'put',
     data: data
   })
@@ -38,7 +54,47 @@
 // 鍒犻櫎杩愮淮闃堝��
 export function delThreshold(id) {
   return request({
-    url: '/ycl/threshold/' + id,
+    url: '/threshold/' + id,
     method: 'delete'
   })
 }
+
+// 淇敼瑙嗛闃堝��
+export function editVideo(data) {
+  return request({
+    url: '/threshold/video',
+    method: 'put',
+    data: data
+  })
+}
+
+// 淇敼杞﹁締闃堝��
+export function editCar(data) {
+  return request({
+    url: '/threshold/car',
+    method: 'put',
+    data: data
+  })
+}
+
+// 淇敼浜鸿劯闃堝��
+export function editFace(data) {
+  return request({
+    url: '/threshold/face',
+    method: 'put',
+    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