Compare commits

...

2 Commits

1 changed files with 18 additions and 2 deletions

View File

@ -505,6 +505,9 @@
}"
>
<template #bodyCell="{ column, record }">
<template v-if="isXiHaiAn && column.dataIndex === 'status'">
<span>{{ statusText[record.status] || '' }}</span>
</template>
<template v-if="column.dataIndex === 'operation'">
<a
v-if="isXiHaiAn"
@ -550,6 +553,7 @@
@change="handleTableChange"
>
<template #bodyCell="{ column, record }">
<template v-if="column.dataIndex === 'operation'">
<a-button
@click="goToApply(record)"
@ -1023,8 +1027,10 @@
const rowClickData = ref(null)
//
const openVideo = (id, item) => {
if (item) {
rowClickData.value = item
//
if (item && item.status != 1) {
rowClickData.value = item;
return message.warning('当前设备离线!')
}
console.log('打开视频', id)
const param = {
@ -1903,6 +1909,10 @@
//
const dataSource = ref([])
const dataSource2 = ref([])
const statusText = ref({
0: '离线',
1: '在线',
})
const columns = ref([
{
title: '名称',
@ -1915,6 +1925,12 @@
width: '60%',
key: 'nodeName',
},
{
title: '状态',
dataIndex: 'status',
width: '10%',
key: 'status',
},
{
title: '操作',
dataIndex: 'operation',