mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-16 06:16:44 +08:00
教师专长翻译
This commit is contained in:
@@ -24,22 +24,21 @@
|
||||
<div v-if="Edittearch">
|
||||
<div class="tearchimg">
|
||||
<h3>教师职业照</h3>
|
||||
<img :src="BaseUrl + teachtext.photo" alt="">
|
||||
<img :src="fileBaseUrl + teachform.photo" alt="">
|
||||
</div>
|
||||
<div class="tearchexperi">
|
||||
<h3>工作经历</h3>
|
||||
<span>{{ teachtext.workExperience }}</span>
|
||||
<span>{{ teachform.workExperience }}</span>
|
||||
</div>
|
||||
<div class="teachphoto" style="height:70px">
|
||||
<div class="tearchexperi" style="height:70px">
|
||||
<h3>擅长课程</h3>
|
||||
<div v-if="teachtext.courses" class="teachexcel">
|
||||
{{ teachtext.courses }}
|
||||
</div>
|
||||
<span>{{ teachform.courses }}</span>
|
||||
|
||||
</div>
|
||||
<div class="teachphoto" style="height:70px">
|
||||
<h3>专长</h3>
|
||||
<div v-if="teachtext.expertise" class="teachexcel">
|
||||
{{ teachtext.expertise }}
|
||||
<div v-for="(item,idx) in workname" :key="idx" class="teachexcel">
|
||||
{{ item }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -80,17 +79,8 @@
|
||||
<div class="tearchexperi">
|
||||
<h3 >教师专长</h3>
|
||||
<div style="float:left;margin-top:10px;">
|
||||
<!-- <el-cascader
|
||||
placeholder="请选择,最多可选择五个"
|
||||
:options="options"
|
||||
:props="props"
|
||||
clearable></el-cascader> -->
|
||||
<!-- <div class="interest" v-show="!interestIsEdit">
|
||||
<ul class="interest-ul">
|
||||
<li class="interest-li" v-for="int in interestList" :key="int.id">{{int.name}}</li>
|
||||
</ul>
|
||||
</div> -->
|
||||
<div >
|
||||
|
||||
<div>
|
||||
<div class="interest" v-for="(sys,index) in sysTypeListtear" :key="sys.id">
|
||||
<span class="interest-title">{{sys.name}}</span>
|
||||
<div style="width:100%">
|
||||
@@ -297,6 +287,7 @@
|
||||
}
|
||||
};
|
||||
return {
|
||||
fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL,
|
||||
sysTypeListtear:[],
|
||||
teaechswich:false,
|
||||
props: { multiple: true },
|
||||
@@ -386,6 +377,8 @@
|
||||
sysTypeListMap:[],
|
||||
interestList:[],//已有兴趣爱好列表
|
||||
interestIsEdit:false,
|
||||
childData:[],
|
||||
workname:[],
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -453,7 +446,26 @@
|
||||
|
||||
Teacherinfo(){
|
||||
apiTeach.detailTeacher(this.userInfo.aid).then(res =>{
|
||||
this.teachtext = res.result;
|
||||
this.teachform.courses = res.result.courses;
|
||||
this.teachform.workExperience = res.result.workExperience;
|
||||
this.teachform.photo = res.result.photo;
|
||||
this.teachform.expertise = res.result.expertise.split( ',' );
|
||||
this.sysTypeListtear.forEach(nm =>{
|
||||
nm.children.forEach(lk =>{
|
||||
this.childData.push(lk);
|
||||
})
|
||||
})
|
||||
this.teachform.expertise.forEach(item =>{
|
||||
this.childData.forEach(it =>{
|
||||
if(item == it.id){
|
||||
this.workname.push(it.name);
|
||||
console.log(this.workname)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
})
|
||||
|
||||
})
|
||||
},
|
||||
Teacherprofile(){
|
||||
@@ -525,6 +537,7 @@
|
||||
this.checkboxGroup.push(item.refId);
|
||||
item.name = this.sysTypeName(item.refId)
|
||||
})
|
||||
// console.log(res.result);
|
||||
this.interestList = res.result;
|
||||
}
|
||||
})
|
||||
@@ -546,7 +559,9 @@
|
||||
apiTeach.updateTeacher(this.teachform).then(res =>{
|
||||
console.log('编辑成功')
|
||||
})
|
||||
this.Edittearch = true
|
||||
this.Edittearch = true;
|
||||
this.Teacherinfo();
|
||||
|
||||
},
|
||||
|
||||
// 更新用户与偏好数据
|
||||
|
||||
Reference in New Issue
Block a user