提交 ef73e700 authored 作者: haodaking's avatar haodaking

feat: 直播记录增加视频状态

上级 4af39641
......@@ -10,6 +10,7 @@ function formatDuration(seconds) {
const remainingSeconds = seconds % 60
return minutes > 0 ? `${minutes}m${remainingSeconds}s` : `${remainingSeconds}s`
}
const appList = ref()
// 列表配置
const listOptions = {
hasPagination: false,
......@@ -38,6 +39,13 @@ const listOptions = {
},
{ label: '开始时间', prop: 'live_start_time' },
{ label: '结束时间', prop: 'live_end_time' },
{
label: '视频状态',
prop: 'live_video_addres',
computed({ row }) {
return row.live_video_addres ? '已上传' : '未上传'
},
},
{ label: '操作', slots: 'table-x', width: 100 },
],
}
......@@ -60,6 +68,7 @@ const handleUpload = (row) => {
live_video_size: file.size.toString(),
})
ElMessage.success('上传成功')
appList.value?.refetch()
} catch (error) {
console.error(error)
ElMessage.error('上传失败')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论