提交 7cea37bb authored 作者: lhh's avatar lhh

update

上级 80f091d2
...@@ -16,12 +16,15 @@ const listOptions = $computed(() => { ...@@ -16,12 +16,15 @@ const listOptions = $computed(() => {
params: { params: {
experiment_id: props.data.eid, experiment_id: props.data.eid,
student_id: props.data.sid student_id: props.data.sid
},
callback(res: any) {
return { list: res.items }
} }
}, },
columns: [ columns: [
{ label: '序号', type: 'index', width: 60 }, { label: '序号', type: 'index', width: 60 },
{ label: '选手姓名', prop: 'student_name' }, { label: '选手姓名', prop: 'student_name' },
{ label: '商品名称', prop: 'live_commodity' }, { label: '商品名称', prop: 'live_commodity.title' },
{ label: '直播时长', prop: 'live_duration' }, { label: '直播时长', prop: 'live_duration' },
{ label: '文件大小(M)', prop: 'live_video_size' }, { label: '文件大小(M)', prop: 'live_video_size' },
{ label: '上传时间', prop: 'live_end_time' }, { label: '上传时间', prop: 'live_end_time' },
...@@ -29,9 +32,9 @@ const listOptions = $computed(() => { ...@@ -29,9 +32,9 @@ const listOptions = $computed(() => {
] ]
} }
}) })
const handleViewLive = function () { const handleViewLive = function (row: any) {
window.open( window.open(
`https://saas-dml-pro.ezijing.com/one/live/test/view?experiment_id=${props.data.eid}&id=直播练习ID&record_id=直播记录ID&student_id=${props.data.sid}` `https://saas-dml-pro.ezijing.com/one/live/test/view?experiment_id=${props.data.eid}&id=${row.live_practice_id}&record_id=${row.id}&student_id=${props.data.sid}`
) )
} }
</script> </script>
...@@ -49,13 +52,7 @@ const handleViewLive = function () { ...@@ -49,13 +52,7 @@ const handleViewLive = function () {
<span :class="{ 'is-info': row.score_name !== '--' }">{{ row.score_name }}</span> <span :class="{ 'is-info': row.score_name !== '--' }">{{ row.score_name }}</span>
</template> </template>
<template #table-x="{ row }"> <template #table-x="{ row }">
<el-button <el-button text type="primary" @click="handleViewLive(row)">观看回放</el-button>
text
type="primary"
@click="handleViewLive"
v-if="row.experiment_id !== '0' && row.experiment_id"
>观看回放</el-button
>
</template> </template>
</AppList> </AppList>
<el-row justify="center"> <el-row justify="center">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论