Compare commits

...

4 Commits

4 changed files with 486 additions and 518 deletions

File diff suppressed because it is too large Load Diff

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>

View File

@ -262,35 +262,27 @@ const goPage = (item) => {
} }
} }
} }
let isQingDao = whoShow.itShowQingDao;
// //
const read = (item) => { const read = (item) => {
if (selectData.value.length === 0 && !item) { if (selectData.value.length === 0 && !item) {
message.error('未选择消息!') return message.error('未选择消息!')
return
} }
console.log(selectData.value) console.log(selectData.value)
if (item) { if (item) {
// // ,
if (item.readStatus === 1) { if (item.readStatus === 1) {
if(isQingDao) { return goPage(item)
goPage(item)
}
//
return
} }
mynoticeRead(item.id).then((res) => { mynoticeRead(item.id).then((res) => {
if (res.data.code == 0) { if (res.data.code == 0) {
message.success('通知已读!') message.success('通知已读!')
mybus.emit('getMynotice') mybus.emit('getMynotice')
init() init()
if (isQingDao) { //
// setTimeout(() => {
setTimeout(() => { goPage(item)
goPage(item) }, 1500)
}, 1000)
}
} else { } else {
message.error('操作失败!') message.error('操作失败!')
} }

View File

@ -85,19 +85,15 @@ export default defineComponent({
} }
onMounted(() => { onMounted(() => {
if (itShowXiHaiAn) { if (type) {
handleClick(menuList[0]) console.log('type---------->', type)
let _obj = menuList.find(v => v.key == type)
handleClick(_obj)
} else { } else {
if (type) { if (menuList[1]) {
console.log('type---------->', type) handleClick(menuList[1])
let _obj = menuList.find(v => v.key == type)
handleClick(_obj)
} else { } else {
if (menuList[1]) { handleClick(menuList[0])
handleClick(menuList[1])
}else {
handleClick(menuList[0])
}
} }
} }
}) })