From ff15c290e6cf81e13519a22f414690017ba86d04 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期四, 18 四月 2024 13:45:35 +0800
Subject: [PATCH] 工单阈值调整

---
 src/api/platform/threshold.js |   55 +++++++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 49 insertions(+), 6 deletions(-)

diff --git a/src/api/platform/threshold.js b/src/api/platform/threshold.js
index f11bf24..89086fa 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,34 @@
 // 鍒犻櫎杩愮淮闃堝��
 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
+  })
+}

--
Gitblit v1.8.0