From 0b737708e696c45720499759b5c31aced87fdbb6 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@iotlink.com>
Date: 星期三, 07 七月 2021 14:10:03 +0800
Subject: [PATCH] merge master

---
 src/api/shuohuang.ts |   55 ++++++++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 46 insertions(+), 9 deletions(-)

diff --git a/src/api/shuohuang.ts b/src/api/shuohuang.ts
index 20883d8..df3a4f3 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,11 +26,11 @@
     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({
@@ -125,6 +127,13 @@
     method: 'post',
     data
   })
+
+export const cancelAssign = (data: any) =>
+  request({
+    url: '/data/api-c/lkg/cancelAssign',
+    method: 'post',
+    data
+  })
 export const uploadDirectory = (data: any) =>
   request({
     url: '/data/api-c/user/uploadMulti',
@@ -151,18 +160,46 @@
   url: '/data/api-c/device/getlst',
   method: 'get'
 })
-export const getDeviceInfoById = (query: any) => request({
+export const getDeviceInfo = (data: any) => request({
   url: '/data/api-c/slot/getlst',
-  method: 'get',
-  params: query
+  method: 'post',
+  data: data
 })
+
+export const uploadLKG = (data: any) =>
+  request({
+    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/lkg/getEventClip',
+  url: '/data/api-c/event/getEventClip',
   method: 'get',
   params: query
 })
-export const downloadFile = (query: any) => request({
-  url: '/data/api-c/lkg/getEventClip',
+
+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"
 })
\ No newline at end of file

--
Gitblit v1.8.0