From b1fb1c4616a1924496465c6cff60acf328d7ab05 Mon Sep 17 00:00:00 2001 From: QingObject <1120359293@qq.com> Date: 星期五, 28 四月 2023 14:39:50 +0800 Subject: [PATCH] 1、新增视频回放、视频回放控制Template 2、修复直播控制指令BUG --- web_src/src/components/dialog/recordDownload.vue | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/web_src/src/components/dialog/recordDownload.vue b/web_src/src/components/dialog/recordDownload.vue index b3f46c8..c90cf13 100644 --- a/web_src/src/components/dialog/recordDownload.vue +++ b/web_src/src/components/dialog/recordDownload.vue @@ -161,7 +161,7 @@ } setTimeout( ()=>{ if (!this.showDialog) return; - this.getProgressForFile(this.getProgressForFileTimer()) + this.getProgressForFile(this.getProgressForFileTimer) }, 1000) }, getProgressForFile: function (callback){ @@ -179,9 +179,12 @@ if (res.data.code === 0) { if (res.data.data.length === 0){ this.percentage = 0 + // 寰�寰�鍦ㄥ娆¤姹傚悗锛堝疄楠屼簲鍒嗛挓鐨勮棰戞槸涓夋璇锋眰锛夛紝鎵嶄細杩斿洖鏁版嵁锛岀涓�娆¤姹傞�氬父鏄繑鍥炵┖鏁扮粍 + if (callback)callback() return } - this.percentage = parseFloat(res.data.data.percentage)*100 + // res.data.data搴旀槸鏁扮粍绫诲瀷 + this.percentage = parseFloat(res.data.data[0].percentage)*100 if (res.data.data[0].percentage === '1') { this.getProgressForFileRun = false; window.open(res.data.data[0].downloadFile) -- Gitblit v1.8.0