提交调整

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

@@ -673,7 +673,7 @@
paperJson:{items:[]},
paperShow:false,
customerShow:false,
onlyQuestion:true,
onlyQuestion:false,
info:{
courseId:'',
contentId:'',
@@ -711,7 +711,7 @@
paperJson:{items:[]},
paperShow:false,
customerShow:false,
onlyQuestion:true,
onlyQuestion:false,
info:{
courseId:'',
contentId:'',

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);
}
})

View File

@@ -16,19 +16,19 @@
<el-tooltip effect="light" content="点赞" placement="top" :visible-arrow="false" popper-class="text-tooltip">
<svg-icon style="margin-right: 0;font-size: 18px;" icon-class="dianzan"></svg-icon>
</el-tooltip>
<span class="interact-bar-value"> {{ data.praises? data.praises:0}}</span>
<span class="interact-bar-value"> {{ data.praises>0? data.praises:0}}</span>
</div>
<div :style="`min-width: ${nodeWidth};`" class="interact-bar-btn" :class="{cursor:!readonly}">
<el-tooltip effect="light" content="收藏" placement="top" :visible-arrow="false" popper-class="text-tooltip">
<svg-icon style="font-size: 18px;margin-right: 0;" icon-class="xihuan"></svg-icon>
</el-tooltip>
<span class="interact-bar-value"> {{ data.favorites? data.favorites:0}}</span>
<span class="interact-bar-value"> {{ data.favorites>0? data.favorites:0}}</span>
</div>
</div>
</template>
@@ -648,7 +648,7 @@ export default {
color: #999;
}
}
}
// .eyes-view{
// color: #000;