|
@@ -21,8 +21,9 @@ export const getAssetsHomeFile = (fileName: string) => {
|
|
|
interface IProps {
|
|
|
courseTime: string
|
|
|
coursePlan: string
|
|
|
- videoPosterUrl?: string
|
|
|
roomUid?: string
|
|
|
+ teacherName: string
|
|
|
+ subjectName: string
|
|
|
liveState?: number
|
|
|
id?: number | string
|
|
|
}
|
|
@@ -66,6 +67,7 @@ export default defineComponent({
|
|
|
},
|
|
|
courseInfo() {
|
|
|
const tempArr = [] as IProps[]
|
|
|
+ const live = this.live
|
|
|
const coursePlanList = this.live.planList || []
|
|
|
coursePlanList.forEach((item: any) => {
|
|
|
const startTime = item.startTime || new Date()
|
|
@@ -75,6 +77,8 @@ export default defineComponent({
|
|
|
startTime
|
|
|
).format('HH:mm')}~${dayjs(endTime).format('HH:mm')}`,
|
|
|
coursePlan: item.plan,
|
|
|
+ teacherName: live.userName,
|
|
|
+ subjectName: live.subjectName,
|
|
|
roomUid: item.roomUid,
|
|
|
liveState: item.liveState,
|
|
|
id: item.courseId
|