From 5ecad3830da60262fb7ce5887aea1dd29b0f4619 Mon Sep 17 00:00:00 2001 From: dawnwinterLiu <1737801684@qq.com> Date: Wed, 24 Aug 2022 15:53:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(equipmentCloud):=20=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E7=9B=91=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.js | 2 +- src/views/DeviceCloud/manage/editdevices.vue | 41 ++++++++++++++++++- .../DeviceCloud/manage/js/editdevices.js | 11 +++++ 3 files changed, 51 insertions(+), 3 deletions(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 6ef0b974dc..2ba4974edc 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -434,7 +434,7 @@ const actions = { window.jstoken?.setJsToken( window.location.hostname, objectId, - sessionToken + sessionToken + '_uniapp' ) } if (sessionToken) { diff --git a/src/views/DeviceCloud/manage/editdevices.vue b/src/views/DeviceCloud/manage/editdevices.vue index 4d78cb426c..35ffceb9d4 100644 --- a/src/views/DeviceCloud/manage/editdevices.vue +++ b/src/views/DeviceCloud/manage/editdevices.vue @@ -580,6 +580,43 @@ + + + + + + + + + + 播放 + diff --git a/src/views/DeviceCloud/manage/js/editdevices.js b/src/views/DeviceCloud/manage/js/editdevices.js index 7e15080d05..ff97dd1603 100644 --- a/src/views/DeviceCloud/manage/js/editdevices.js +++ b/src/views/DeviceCloud/manage/js/editdevices.js @@ -129,6 +129,7 @@ export default { }, } return { + videoOptions: ['m3u8', 'mp4', 'flv', 'mp3'], commandInfo: { dialog: false, data: {}, @@ -1219,5 +1220,15 @@ export default { this.devicesTableData[index] = newData }) }, + updatevideoSrc(deviceInfo) { + const params = { + detail: deviceInfo.detail, + } + this.$putDevice(deviceInfo.objectId, params) + this.activeName = 'first' + this.$nextTick(function () { + this.activeName = 'video' + }) + }, }, }