|
@@ -158,8 +158,8 @@ export default {
|
|
schoolList: []
|
|
schoolList: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- mounted () {
|
|
|
|
- getTeacher().then(res => {
|
|
|
|
|
|
+ async mounted () {
|
|
|
|
+ await getTeacher().then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.teacherList = res.data;
|
|
this.teacherList = res.data;
|
|
}
|
|
}
|
|
@@ -249,12 +249,12 @@ export default {
|
|
address: res.data.schoolId,
|
|
address: res.data.schoolId,
|
|
teachMode: res.data.teachMode,
|
|
teachMode: res.data.teachMode,
|
|
}
|
|
}
|
|
- this.maskForm.assistant = [];
|
|
|
|
- for (let i in res.data.teachingTeachers) {
|
|
|
|
- if (res.data.teachingTeachers[i].teacherRole == "TEACHING") {
|
|
|
|
- this.maskForm.assistant.push(res.data.teachingTeachers[i].userId);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ this.maskForm.assistant = res.data.teachingTeacherIdList;
|
|
|
|
+ // for (let i in res.data.teachingTeachers) {
|
|
|
|
+ // if (res.data.teachingTeachers[i].teacherRole == "TEACHING") {
|
|
|
|
+ // this.maskForm.assistant.push(res.data.teachingTeachers[i].userId);
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
let time = diffTimerFormMinute(dayjs(res.data.classDate).format('YYYY-MM-DD'), dayjs(res.data.startClassTime).format('HH:mm'), dayjs(res.data.endClassTime).format('HH:mm'))
|
|
let time = diffTimerFormMinute(dayjs(res.data.classDate).format('YYYY-MM-DD'), dayjs(res.data.startClassTime).format('HH:mm'), dayjs(res.data.endClassTime).format('HH:mm'))
|
|
console.log(dayjs(res.data.startClassTime).format('HH:mm'))
|
|
console.log(dayjs(res.data.startClassTime).format('HH:mm'))
|
|
this.maskForm.timer = time;
|
|
this.maskForm.timer = time;
|