diff --git a/package.json b/package.json index 8ce55f0d..46a31d09 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "echarts": "5.4.0", "element-ui": "2.15.14", "file-saver": "2.0.5", + "flv.js": "^1.6.2", "fuse.js": "6.4.3", "highlight.js": "9.18.5", "js-beautify": "1.13.0", diff --git a/prettier.config.js b/prettier.config.js index e5197092..2fc52788 100644 --- a/prettier.config.js +++ b/prettier.config.js @@ -1,6 +1,6 @@ module.exports = { printWidth: 120, - tabWidth: 4, + tabWidth: 2, semi: false, vueIndentScriptAndStyle: false, singleQuote: true, diff --git a/src/api/deviceManagement/index.js b/src/api/deviceManagement/index.js index 6ea56080..4a649053 100644 --- a/src/api/deviceManagement/index.js +++ b/src/api/deviceManagement/index.js @@ -63,4 +63,19 @@ export const delPlatformConfiguration = (id) => { // 修改流媒体平台配置状态 export const changeStatus = (data) => { return request.post('/smart-site/platform_configuration/changeStatus', data); +}; + +// 获取清新token +export const getQxToken = (params) => { + return request.get('/smart-site/video_equipment/getQxToken', { params }); +}; + +// 获取清新视频设备列表 +export const getVideoEquipment = (params) => { + return request.get('/smart-site/video_equipment/getVideoEquipment', { params }); +}; + +// 更新水印 +export const updateWaterMark = (data) => { + return request.post('/smart-site/video_equipment/updateWaterMark', data); }; \ No newline at end of file diff --git a/src/views/deviceManagement/streamingConfiguration/index.vue b/src/views/deviceManagement/streamingConfiguration/index.vue index e83146aa..e1900ac1 100644 --- a/src/views/deviceManagement/streamingConfiguration/index.vue +++ b/src/views/deviceManagement/streamingConfiguration/index.vue @@ -230,7 +230,7 @@ export default { wsUrl: [{ required: true, message: '请输入视频连接地址-公网', trigger: 'blur' }], epid: [ { required: true, message: '请输入epid', trigger: 'blur' }, - { pattern: /^[0-9]*$/, message: '只能输入正整数', trigger: 'blur' }, + { pattern: /^[A-Za-z0-9]+$/, message: '只能输入数字和字母', trigger: 'blur' }, ], bfix: [{ required: true, message: '请输入bfix', trigger: 'blur' }], }, diff --git a/src/views/deviceManagement/videoDeviceMgmt/index.vue b/src/views/deviceManagement/videoDeviceMgmt/index.vue index f76b9150..ea029b03 100644 --- a/src/views/deviceManagement/videoDeviceMgmt/index.vue +++ b/src/views/deviceManagement/videoDeviceMgmt/index.vue @@ -190,7 +190,7 @@ - + @@ -249,6 +249,7 @@ export default { qrData: { devName: '', }, + row: {}, // 当前行 dialogTitle: '新增', isAdd: true, dialogVisible: false, @@ -418,6 +419,7 @@ export default { // 监控调试 handleMonitoringAndDebug(row) { console.log('监控调试', row) + this.row = row this.videoDebug = true }, // 查看配置 diff --git a/src/views/deviceManagement/videoDeviceMgmt/monitoringAndDebug.vue b/src/views/deviceManagement/videoDeviceMgmt/monitoringAndDebug.vue index 36736536..2d60b20b 100644 --- a/src/views/deviceManagement/videoDeviceMgmt/monitoringAndDebug.vue +++ b/src/views/deviceManagement/videoDeviceMgmt/monitoringAndDebug.vue @@ -2,16 +2,18 @@
-
视频播放
+
+ 视频播放 + + + + +
-
-
{{ currentTime }}
-
-
{{ coordinates.line1 }}
-
{{ coordinates.line2 }}
-
-
电池: {{ batteryInfo }}
-
+ +
@@ -23,34 +25,30 @@
- - +
- - - - + +
- - +
- + - +
聚焦
- + - +
缩放
@@ -72,9 +70,10 @@
- 本地录像 + 本地录像 + 停止录像
-
+
本地抓拍
@@ -104,15 +103,9 @@
-
应用水印
- - +
应用水印
+ +
快捷键设置
@@ -122,13 +115,13 @@
- {{item.label}} + {{ item.label }} + />
@@ -138,66 +131,123 @@ -