|
@@ -62,7 +62,7 @@ export default {
|
|
|
teacherFreeTime({id:this.teacherId}).then(res=>{
|
|
|
if(res.code == 200&&res.data){
|
|
|
this.accompanyId = res.data.id;
|
|
|
- this.accompanyForm.count = res.data.totalTimes;
|
|
|
+ res.data.totalTimes?this.accompanyForm.count = res.data.totalTimes:this.accompanyForm.count = null;
|
|
|
res.data.holiday?this.accompanyForm.week = res.data.holiday.toString():this.accompanyForm.week = null;
|
|
|
}
|
|
|
})
|