From 189ca09a15c86ede234b1a00a6e4ac2163e565f8 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Wed, 22 Jan 2025 15:14:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/deviceManagement/index.js | 35 +++ .../streamingConfiguration/index.vue | 258 +++++++++++------- .../videoDeviceMgmt/index.vue | 71 ++++- 3 files changed, 262 insertions(+), 102 deletions(-) diff --git a/src/api/deviceManagement/index.js b/src/api/deviceManagement/index.js index 49a36598..6ea56080 100644 --- a/src/api/deviceManagement/index.js +++ b/src/api/deviceManagement/index.js @@ -28,4 +28,39 @@ export const delVideoDevice = (id) => { // 获取视频设备详情 export const getVideoDeviceDetail = (id) => { return request.get(`/smart-site/video_equipment/${id}`); +}; + +// 下载二维码 +export const qrCodeDownZip = (params) => { + return request.get('/smart-site/video_equipment/downZip', { params, responseType: 'blob' }); +}; + +// 获取流媒体平台配置列表 +export const getPlatformConfigurationList = (params) => { + return request.get('/smart-site/platform_configuration/list', { params }); +}; + +// 获取流媒体平台配置详情 +export const getPlatformConfigurationDetail = (id) => { + return request.get(`/smart-site/platform_configuration/${id}`); +}; + +// 新增流媒体平台配置 +export const addPlatformConfiguration = (data) => { + return request.post('/smart-site/platform_configuration/add', data); +}; + +// 编辑流媒体平台配置 +export const editPlatformConfiguration = (data) => { + return request.post('/smart-site/platform_configuration/edit', data); +}; + +// 删除流媒体平台配置 +export const delPlatformConfiguration = (id) => { + return request.post(`/smart-site/platform_configuration/del/${id}`); +}; + +// 修改流媒体平台配置状态 +export const changeStatus = (data) => { + return request.post('/smart-site/platform_configuration/changeStatus', data); }; \ No newline at end of file diff --git a/src/views/deviceManagement/streamingConfiguration/index.vue b/src/views/deviceManagement/streamingConfiguration/index.vue index 8a7b5823..e83146aa 100644 --- a/src/views/deviceManagement/streamingConfiguration/index.vue +++ b/src/views/deviceManagement/streamingConfiguration/index.vue @@ -26,7 +26,7 @@ - + 自建平台 统一视频平台 @@ -35,7 +35,7 @@ - + @@ -87,52 +87,60 @@ - + 自建平台 统一视频平台 - - + + 清新 创世 - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + @@ -144,10 +152,19 @@