教师编辑的处理

This commit is contained in:
daihh
2022-12-29 16:24:04 +08:00
parent a18320e755
commit 69a08cd697

View File

@@ -408,13 +408,13 @@
apiBoeTeahcer.simpleInfo(this.userInfo.sysId).then(sinfo=>{ apiBoeTeahcer.simpleInfo(this.userInfo.sysId).then(sinfo=>{
if(sinfo.status=='200'){ if(sinfo.status=='200'){
if(sinfo.result.courses){ if(!this.teachform.courses){
this.teachform.courses = sinfo.result.courses; this.teachform.courses = sinfo.result.courses;
} }
if(sinfo.result.work){ if(!this.teachform.workExperience){
this.teachform.workExperience = sinfo.result.work; this.teachform.workExperience = sinfo.result.work;
} }
if(sinfo.result.photo){ if(!this.teachform.photo){
this.teachform.photo = sinfo.result.photo; this.teachform.photo = sinfo.result.photo;
this.tearchUrl = this.fileBaseUrl + sinfo.result.photo; this.tearchUrl = this.fileBaseUrl + sinfo.result.photo;
} }
@@ -552,6 +552,8 @@
} }
}) })
}else{
this.$message.error(res.message);
} }
}) })