西海岸:基础设施-视频离线-预览按钮禁用

This commit is contained in:
guoyue 2022-10-18 14:11:52 +08:00
parent dd100d3867
commit 42af2e980b
1 changed files with 12 additions and 2 deletions

View File

@ -312,7 +312,7 @@
<span>{{ statusText[record.status] || '' }}</span> <span>{{ statusText[record.status] || '' }}</span>
</template> </template>
<template v-if="column.dataIndex === 'operation'"> <template v-if="column.dataIndex === 'operation'">
<a @click=" <a :class="record.status != 1 ? 'disabled-text' : ''" @click="
openVideo( openVideo(
record.channelCode || record.channelCode ||
record.channelId || record.channelId ||
@ -758,7 +758,8 @@ const openVideo = (id, item) => {
rowClickData.value = item rowClickData.value = item
// //
if (item && item.status != 1) { if (item && item.status != 1) {
return message.warning('当前设备离线, 不可预览!') return
// return message.warning('线, ')
} }
console.log('打开视频', id) console.log('打开视频', id)
const param = { const param = {
@ -2367,4 +2368,13 @@ video::-webkit-media-controls {
bottom: 30px; bottom: 30px;
text-align: right; text-align: right;
} }
.disabled-text {
cursor: not-allowed;
opacity: 0.5;
color: #666666;
&:hover {
color: #666666;
}
}
</style> </style>