mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 20:06:44 +08:00
Merge branch 'master' of codeup.aliyun.com:6265f483e4166464dc2f9c14/boeu/portal
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
<!-- <div style="float:right"> -->
|
<!-- <div style="float:right"> -->
|
||||||
<router-link v-if="pageId == userInfo.aid" to="/user/Setting"><span class="content-one-info pointer" style="line-height: 30px;">个人设置</span></router-link>
|
<router-link v-if="pageId == userInfo.aid" to="/user/Setting"><span class="content-one-info pointer" style="line-height: 30px;">个人设置</span></router-link>
|
||||||
<span v-if="pageId == userInfo.aid" style="margin-left:10px;line-height: 30px;" class="content-one-info" ><router-link to="/uc/study/courses" class="pointer" style="color:#0060FF;">个人中心</router-link></span>
|
<span v-if="pageId == userInfo.aid" style="margin-left:10px;line-height: 30px;" class="content-one-info" ><router-link to="/uc/study/courses" class="pointer" style="color:#0060FF;">个人中心</router-link></span>
|
||||||
<span @click="dialogVisible = true" v-if="teaechswich" style="margin-left:10px;line-height: 30px;" class="content-one-info">教师简介</span>
|
<span @click="showTeacherInfo" v-if="teaechswich" style="margin-left:10px;line-height: 30px;" class="content-one-info">教师简介</span>
|
||||||
<span class="content-one-info" v-if="pageId != userInfo.aid && !isFollowHas" @click="toFollow()">关注TA</span>
|
<span class="content-one-info" v-if="pageId != userInfo.aid && !isFollowHas" @click="toFollow()">关注TA</span>
|
||||||
<span class="Followed" @click="cancelFollow()" v-if="isFollowHas">已关注</span>
|
<span class="Followed" @click="cancelFollow()" v-if="isFollowHas">已关注</span>
|
||||||
<el-button type="text" round class="btn-user" > <router-link :to="'/home/'+pageId+'/leaving'">{{pageId == userInfo.aid ? '留言板':'去留言'}}<i class="el-icon-arrow-right"></i> </router-link> </el-button>
|
<el-button type="text" round class="btn-user" > <router-link :to="'/home/'+pageId+'/leaving'">{{pageId == userInfo.aid ? '留言板':'去留言'}}<i class="el-icon-arrow-right"></i> </router-link> </el-button>
|
||||||
@@ -96,8 +96,6 @@
|
|||||||
<div v-for="(item,idx) in workname" :key="idx" class="teachexcel">
|
<div v-for="(item,idx) in workname" :key="idx" class="teachexcel">
|
||||||
{{ item }}
|
{{ item }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
@@ -162,14 +160,14 @@
|
|||||||
}
|
}
|
||||||
this.orgInfo=cutFullName(this.userInfo.departFullName,1);
|
this.orgInfo=cutFullName(this.userInfo.departFullName,1);
|
||||||
this.getSysTypeTree().then(rs => {
|
this.getSysTypeTree().then(rs => {
|
||||||
this.sysTypeListtear = rs;
|
this.sysTypeListtear = rs;
|
||||||
});
|
});
|
||||||
this.loadUserStat();
|
this.loadUserStat();
|
||||||
if(this.pageId !== this.userInfo.aid) {
|
if(this.pageId !== this.userInfo.aid) {
|
||||||
this.followHas();
|
this.followHas();
|
||||||
}
|
}
|
||||||
this.Teacherprofile();
|
this.Teacherprofile();
|
||||||
this.Teacherinfo();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
methods:{
|
methods:{
|
||||||
@@ -179,12 +177,16 @@
|
|||||||
getSysTypeTree: 'sysType/getSysTypeTree',
|
getSysTypeTree: 'sysType/getSysTypeTree',
|
||||||
loadSysTypes: 'sysType/loadSysTypes'
|
loadSysTypes: 'sysType/loadSysTypes'
|
||||||
}),
|
}),
|
||||||
Teacherinfo(){
|
showTeacherInfo(){
|
||||||
apiTeach.detailTeacher(this.userInfo.aid).then(res =>{
|
this.loadTeacherinfo();
|
||||||
|
this.dialogVisible = true
|
||||||
|
},
|
||||||
|
loadTeacherinfo(){
|
||||||
|
this.workname=[];
|
||||||
|
apiTeach.detailTeacher(this.pageId).then(res =>{
|
||||||
this.teachtext.workExperience = res.result.workExperience;
|
this.teachtext.workExperience = res.result.workExperience;
|
||||||
this.teachtext.courses = res.result.courses;
|
this.teachtext.courses = res.result.courses;
|
||||||
this.tearchUrl = this.fileBaseUrl + res.result.photo;
|
this.tearchUrl = this.fileBaseUrl + res.result.photo;
|
||||||
|
|
||||||
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(sinfo.result.courses){
|
||||||
@@ -201,22 +203,20 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
this.teachtext.expertise = res.result.expertise.split( ',' );
|
this.teachtext.expertise = res.result.expertise.split( ',' );
|
||||||
//console.log(this.teachtext);
|
//console.log(this.teachtext,"this.teachtext");
|
||||||
|
this.childData=[];
|
||||||
this.sysTypeListtear.forEach(nm =>{
|
this.sysTypeListtear.forEach(nm =>{
|
||||||
nm.children.forEach(lk =>{
|
nm.children.forEach(lk =>{
|
||||||
this.childData.push(lk);
|
this.childData.push(lk);
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
this.teachtext.expertise.forEach(item =>{
|
this.teachtext.expertise.forEach(item =>{
|
||||||
this.childData.forEach(it =>{
|
this.childData.forEach(it =>{
|
||||||
if(item == it.id){
|
if(item == it.id){
|
||||||
console.log(item)
|
//console.log(item)
|
||||||
this.workname.push(it.name);
|
this.workname.push(it.name);
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
|
||||||
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1116,7 +1116,7 @@
|
|||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.xindex-course-image:hover{
|
.xindex-course-image:hover{
|
||||||
transform: scale(1.3);
|
transform: scale(1.3) translateY(-15px);
|
||||||
transition: all 0.6s;
|
transition: all 0.6s;
|
||||||
}
|
}
|
||||||
.Recent{
|
.Recent{
|
||||||
|
|||||||
Reference in New Issue
Block a user