|
|
@@ -268,17 +268,18 @@
|
|
|
<el-button type="primary" link @click="handleEditCamera(row)">
|
|
|
<Icon icon="mdi:note-edit-outline" width="20" height="20" />
|
|
|
</el-button>
|
|
|
+ <!-- :tooltip="t('查看Cloudflare Stream')" -->
|
|
|
+ <el-button type="primary" link @click="handleViewCamera(row)">
|
|
|
+ <Icon
|
|
|
+ icon="mdi:controller-right"
|
|
|
+ :class="['crosshairs-btn', { active: row.streamSn }]"
|
|
|
+ width="20"
|
|
|
+ height="20"
|
|
|
+ />
|
|
|
+ </el-button>
|
|
|
<el-button type="danger" link @click="handleDeleteCamera(row)">
|
|
|
<Icon icon="mdi:delete" width="20" height="20" />
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- :tooltip="t('查看Cloudflare Stream')"
|
|
|
- link
|
|
|
- :class="['crosshairs-btn', { active: row.streamSn }]"
|
|
|
- @click="handleViewCamera(row)"
|
|
|
- >
|
|
|
- <Icon icon="mdi:controller-right" width="20" height="20" />
|
|
|
- </el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -608,14 +609,12 @@ function formatStatus(status: LssNodeStatus | undefined): string {
|
|
|
// 获取状态标签类型
|
|
|
function getStatusTagType(status: LssNodeStatus | undefined): 'success' | 'danger' | 'warning' | 'info' {
|
|
|
switch (status) {
|
|
|
- case 'ONLINE':
|
|
|
+ case 'active':
|
|
|
return 'success'
|
|
|
- case 'OFFLINE':
|
|
|
+ case 'hold':
|
|
|
return 'danger'
|
|
|
- case 'BUSY':
|
|
|
+ case 'dead':
|
|
|
return 'warning'
|
|
|
- case 'MAINTENANCE':
|
|
|
- return 'info'
|
|
|
default:
|
|
|
return 'info'
|
|
|
}
|
|
|
@@ -652,9 +651,16 @@ async function handleViewCamera(row: CameraInfoDTO) {
|
|
|
confirmButtonText: t('新增 Live Stream'),
|
|
|
cancelButtonText: t('取消'),
|
|
|
type: 'warning',
|
|
|
- center: true
|
|
|
+ center: true,
|
|
|
+ customClass: 'custom-dialog',
|
|
|
+ customStyle: {
|
|
|
+ height: '300px',
|
|
|
+ display: 'inline-flex',
|
|
|
+ flexDirection: 'column',
|
|
|
+ justifyContent: 'center',
|
|
|
+ alignItems: 'center'
|
|
|
+ }
|
|
|
})
|
|
|
- // 用户点击了"新增 Live Stream",跳转到直播管理页面
|
|
|
router.push(`/live-stream?cameraId=${row.cameraId}&lssId=${row.lssId}&action=create`)
|
|
|
} catch {
|
|
|
// 用户点击了取消,不做任何操作
|