课件列表调整

This commit is contained in:
Yjhon 2022-03-16 11:40:56 +08:00
parent 2b89952c95
commit ec5b218c2b
1 changed files with 4 additions and 2 deletions

View File

@ -56,9 +56,11 @@ export default {
return res
})
},
courseType: ['视频','文本'],
columns: [
{ title: '课件名称', width: '160px', align: 'center', dataIndex: 'name', key: 'name' },
{ title: '课件时长/分', width: '160px', align: 'center', dataIndex: 'duration', key: 'duration' },
{ title: '课件时长/分', width: '160px', align: 'center', dataIndex: 'duration', key: 'duration', customRender: (text, record, index) => { if(!text) {return '-' } else {return text} }},
{ title: '类别', width: 'auto', align: 'center', dataIndex: 'type', key: 'type', customRender: (text, record, index) => { return this.courseType[Number(text) - 1] } },
{ title: '课件大小(MB)', width: '160px', align: 'center', dataIndex: 'sizeStr', key: 'sizeStr' },
{ title: '操作', key: 'operation', width: '200px', align: 'center', scopedSlots: { customRender: 'action' } },
],