西海岸:我的申请中-视频预览 增加离线提示

This commit is contained in:
guoyue 2022-09-26 16:40:54 +08:00
parent 076d84bd0a
commit 5c6d90d912
2 changed files with 5 additions and 2 deletions

View File

@ -1666,7 +1666,7 @@ const videoShowMsg = (index) => {
itemData = selectedList.value[index] itemData = selectedList.value[index]
} }
let msg = '请申请后在我的申请中预览视频!' 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 = '当前视频离线不可预览!' msg = '当前视频离线不可预览!'
} else { } else {
msg = '请申请后在我的申请中预览视频!' msg = '请申请后在我的申请中预览视频!'

View File

@ -187,7 +187,7 @@
</div> </div>
<a-button <a-button
type="primary" type="primary"
v-if="item.approveStatus === '通过' && whoShow1.itShowXiHaiAn" v-if="item.approveStatus == '通过' && whoShow1.itShowXiHaiAn"
@click.stop="openVideo(val)" @click.stop="openVideo(val)"
> >
视频预览 视频预览
@ -440,6 +440,9 @@
// //
const openVideo = (item) => { const openVideo = (item) => {
console.log('打开视频', item) console.log('打开视频', item)
if(item && item.status != 1) {
return message.error('当前视频离线不可预览!')
}
const param = { const param = {
key: item.cameraId, key: item.cameraId,
} }