From 5c6d90d912c802d53738877f9eb6e2f6835ed7a8 Mon Sep 17 00:00:00 2001 From: guoyue Date: Mon, 26 Sep 2022 16:40:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A5=BF=E6=B5=B7=E5=B2=B8=EF=BC=9A=E6=88=91?= =?UTF-8?q?=E7=9A=84=E7=94=B3=E8=AF=B7=E4=B8=AD-=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E9=A2=84=E8=A7=88=20=E5=A2=9E=E5=8A=A0=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/infrastructurePage.vue | 2 +- .../views/personalCenter/components/AbilityApplication.vue | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/front/src/views/home/infrastructurePage.vue b/front/src/views/home/infrastructurePage.vue index fd378fe1..beb5954f 100644 --- a/front/src/views/home/infrastructurePage.vue +++ b/front/src/views/home/infrastructurePage.vue @@ -1666,7 +1666,7 @@ const videoShowMsg = (index) => { itemData = selectedList.value[index] } let msg = '请申请后在我的申请中预览视频!' - if ((itemData && itemData.status !== 1) || (rowClickData.value && rowClickData.value.status !== 1)) { + if ((itemData && itemData.status != 1) || (rowClickData.value && rowClickData.value.status != 1)) { msg = '当前视频离线不可预览!' } else { msg = '请申请后在我的申请中预览视频!' diff --git a/front/src/views/personalCenter/components/AbilityApplication.vue b/front/src/views/personalCenter/components/AbilityApplication.vue index 11567292..3a75af0e 100644 --- a/front/src/views/personalCenter/components/AbilityApplication.vue +++ b/front/src/views/personalCenter/components/AbilityApplication.vue @@ -187,7 +187,7 @@ 视频预览 @@ -440,6 +440,9 @@ // 视频预览 const openVideo = (item) => { console.log('打开视频', item) + if(item && item.status != 1) { + return message.error('当前视频离线不可预览!') + } const param = { key: item.cameraId, }