提交 048794ac authored 作者: haodaking's avatar haodaking

chore: 增加视频状态字段

上级 89da2632
......@@ -8,7 +8,7 @@ defineEmits<{
(e: 'update:modelValue', visible: boolean): void
}>()
function formatDuration(seconds) {
function formatDuration(seconds: number) {
const minutes = Math.floor(seconds / 60)
const remainingSeconds = seconds % 60
return minutes > 0 ? `${minutes}m${remainingSeconds}s` : `${remainingSeconds}s`
......@@ -34,7 +34,7 @@ const listOptions = $computed(() => {
{
label: '直播时长',
prop: 'live_duration',
computed({ row }) {
computed({ row }: { row: any }) {
return formatDuration(row.live_duration)
},
},
......@@ -46,6 +46,13 @@ const listOptions = $computed(() => {
},
},
{ label: '上传时间', prop: 'live_end_time' },
{
label: '视频状态',
prop: 'live_video_addres',
computed({ row }: { row: any }) {
return row.live_video_addres ? '已上传' : '未上传'
},
},
{ label: '操作', slots: 'table-x', width: 130 },
],
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论