From 1d3efb6ed52ef43c6184cfaa2ff11d5cc78565c9 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期日, 08 十二月 2024 19:24:21 +0800
Subject: [PATCH] 新增故障类型

---
 src/api/platform/threshold.js |   61 ++++++++++++++++++++++++++++++
 1 files changed, 61 insertions(+), 0 deletions(-)

diff --git a/src/api/platform/threshold.js b/src/api/platform/threshold.js
index ef0f6b5..9d3a337 100644
--- a/src/api/platform/threshold.js
+++ b/src/api/platform/threshold.js
@@ -98,3 +98,64 @@
     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