提交调整

This commit is contained in:
daihh
2022-12-28 12:08:17 +08:00
parent fe78a0930b
commit 1dffc6ee40
8 changed files with 136 additions and 112 deletions

View File

@@ -75,13 +75,7 @@
-->
</div>
</div>
<el-dialog
title="教师信息"
:visible.sync="dialogVisible"
width="42%"
class="teardiabox"
>
<el-dialog title="教师信息" :visible.sync="dialogVisible" width="42%" class="teardiabox">
<div class="teachphoto">
<h6>教师职业照</h6>
<img :src="tearchUrl" alt="">
@@ -95,15 +89,15 @@
<div>
{{ teachtext.courses }}
</div>
</div>
<div class="teachphoto" style="height:70px">
<h6>专长</h6>
<div v-for="(item,idx) in workname" :key="idx" class="teachexcel">
{{ item }}
</div>
</div>
</el-dialog>
</div>
@@ -116,6 +110,7 @@
import apiStart from '@/api/phase2/stat.js';
import apiFollow from "@/api/phase2/userfollow.js"
import apiUser from "@/api/system/user.js";
import apiBoeTeahcer from "@/api/boe/teacher.js"
export default {
name: 'UcHeader',
computed:{
@@ -142,6 +137,7 @@
totalStudyDays:0, //累计学习天数
uvalue:0 //U币数量
},
tearchUrl:'',
orgInfo:'',
sex:'',
pageId:'',
@@ -175,7 +171,7 @@
this.Teacherprofile();
this.Teacherinfo();
},
methods:{
...mapActions({
getResOwnerTree: 'resOwner/getResOwnerTree',
@@ -188,8 +184,24 @@
this.teachtext.workExperience = res.result.workExperience;
this.teachtext.courses = res.result.courses;
this.tearchUrl = this.fileBaseUrl + res.result.photo;
apiBoeTeahcer.simpleInfo(this.userInfo.sysId).then(sinfo=>{
if(sinfo.status=='200'){
if(sinfo.result.courses){
this.teachtext.courses = sinfo.result.courses;
}
if(sinfo.result.work){
this.teachtext.workExperience = sinfo.result.work;
}
if(sinfo.result.photo){
this.teachtext.photo = sinfo.result.photo;
this.tearchUrl = this.fileBaseUrl + sinfo.result.photo;
}
}
})
this.teachtext.expertise = res.result.expertise.split( ',' );
console.log(this.teachtext);
//console.log(this.teachtext);
this.sysTypeListtear.forEach(nm =>{
nm.children.forEach(lk =>{
this.childData.push(lk);
@@ -201,7 +213,7 @@
console.log(item)
this.workname.push(it.name);
}
})