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