From feaf0a9778879ef211c5587a513ba4cbdabb52d0 Mon Sep 17 00:00:00 2001
From: ZZJ <10913410+zzj2100@user.noreply.gitee.com>
Date: 星期四, 23 六月 2022 17:42:58 +0800
Subject: [PATCH] bug修复
---
src/api/shuohuang.ts | 102 ++++++++++++++++++++++++++++++++++++++++++++------
1 files changed, 89 insertions(+), 13 deletions(-)
diff --git a/src/api/shuohuang.ts b/src/api/shuohuang.ts
index 8c60ae4..9f76c70 100644
--- a/src/api/shuohuang.ts
+++ b/src/api/shuohuang.ts
@@ -1,4 +1,6 @@
import request from '@/scripts/httpRequest'
+import qs from "qs";
+
//鍒濆鍖栨煡璇�
export const getlstInit = (query: any) =>
@@ -24,15 +26,21 @@
method: 'get'
})
-export const updateVideoAnalyze = (data: any) =>
+export const updateFollow = (data: any) =>
request({
- url: '/data/api-c/lkg/update',
+ url: '/data/api-c/lkg/updateFollow',
method: 'post',
- data
+ data: qs.stringify(data)
})
export const getRelatedVideoInfo = (query: any) =>
request({
url: '/data/api-c/lkg/getRelatedVideo',
+ method: 'get',
+ params: query
+ })
+export const getCarVideos = (query: any) =>
+ request({
+ url: '/data/api-c/lkg/getCarVideos',
method: 'get',
params: query
})
@@ -89,9 +97,9 @@
method: 'get',
params: query
})
-export const getVideoListByTrainNumber = (query: any) =>
+export const getVideoListBySearch = (query: any) =>
request({
- url: '/data/api-c/lkg/getlstB',
+ url: '/data/api-c/lkg/getlstBySearch',
method: 'get',
params: query
})
@@ -103,7 +111,7 @@
})
export const getTaskList = (query: any) =>
request({
- url: '/data/api-c/lkg/getlstB',
+ url: '/data/api-c/lkg/getTaskList',
method: 'get',
params: query
})
@@ -119,17 +127,85 @@
method: 'post',
data
})
-export const uploadDirectory = (data:any) =>
+
+export const cancelAssign = (data: any) =>
request({
- url:'/data/api-c/user/uploadMulti',
- method:'post',
+ url: '/data/api-c/lkg/cancelAssign',
+ method: 'post',
+ data
+ })
+export const uploadDirectory = (data: any) =>
+ request({
+ url: '/data/api-c/user/uploadMulti',
+ method: 'post',
data
})
-export const uploadFile = (data:any) =>{
+export const getTransferRecord = (query: any) => request({
+ url: '/data/api-c/saverecord/getlst',
+ method: 'get',
+ params: query
+})
+
+export const getTransferStatusList = () => request({
+ url: '/data/api-c/saverecord/getStatusList',
+ method: 'get'
+})
+export const addDevice = (data: any) => request({
+ url: '/data/api-c/device/add',
+ method: 'post',
+ data
+})
+export const getDeviceList = () => request({
+ url: '/data/api-c/device/getlst',
+ method: 'get'
+})
+export const getDeviceInfo = (data: any) => request({
+ url: '/data/api-c/slot/getlst',
+ method: 'post',
+ data: data
+})
+
+export const uploadLKG = (data: any) =>
request({
- url:'/data/api-c/user/uploadFile',
- method:'post',
+ url: '/data/api-c/lkg/uploadLKGExcel',
+ method: 'post',
data
})
-}
+
+export const getLKGData = () =>
+ request({
+ url: '/data/api-c/lkg/getLKGData',
+ method: 'get',
+ })
+
+export const delLKGData = (query: any) =>
+ request({
+ url: '/data/api-c/lkg/delLKGData',
+ method: 'get',
+ params: query
+ })
+
+export const getEventVideo = (query: any) => request({
+ url: '/data/api-c/event/getEventClip',
+ method: 'get',
+ params: query
+})
+
+export const getVideoUrl = (query: any) => request({
+ url: '/data/api-c/event/getEventVideo',
+ method: 'get',
+ params: query
+})
+
+export const downloadFile = () => request({
+ url: '/data/api-c/user/downloadExcel',
+ method: 'get',
+ responseType: "blob"
+})
+
+export const getHiddenEventStatistics = (query: any) => request({
+ url: '/data/api-c/index/getHiddenEventStatistics',
+ method: 'get',
+ params: query
+})
--
Gitblit v1.8.0