From 3c6bdb6f439ff7af04765259fd6a91b6d201d095 Mon Sep 17 00:00:00 2001 From: zxl <763096477@qq.com> Date: 星期四, 19 六月 2025 17:12:25 +0800 Subject: [PATCH] 工单,数据中心用户查看数据的权限,合同考核每日,以及导出每日和按月 --- src/api/platform/threshold.js | 129 +++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 123 insertions(+), 6 deletions(-) diff --git a/src/api/platform/threshold.js b/src/api/platform/threshold.js index f11bf24..9d3a337 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,108 @@ // 鍒犻櫎杩愮淮闃堝�� 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 + }) +} + +// 鑾峰彇宸ュ崟鐧藉悕鍗曞垪琛� +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