From f5bd5ce0b6edffa2a526f6fcefe24b4d3e7f906d Mon Sep 17 00:00:00 2001 From: daihh Date: Fri, 13 Jan 2023 10:20:05 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=BB=E9=A1=B5?= =?UTF-8?q?=EF=BC=8C=E6=95=99=E5=B8=88=E6=98=BE=E7=A4=BA=E4=B8=8D=E5=AF=B9?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/HomePage/homePage.vue | 42 ++++++++++++++-------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/components/HomePage/homePage.vue b/src/components/HomePage/homePage.vue index 67988eaf..7a15a068 100644 --- a/src/components/HomePage/homePage.vue +++ b/src/components/HomePage/homePage.vue @@ -22,7 +22,7 @@ 个人设置 个人中心 - 教师简介 + 教师简介 关注TA 已关注 {{pageId == userInfo.aid ? '留言板':'去留言'}} @@ -96,8 +96,6 @@
{{ item }}
- - @@ -162,14 +160,14 @@ } this.orgInfo=cutFullName(this.userInfo.departFullName,1); this.getSysTypeTree().then(rs => { - this.sysTypeListtear = rs; - }); + this.sysTypeListtear = rs; + }); this.loadUserStat(); if(this.pageId !== this.userInfo.aid) { this.followHas(); } this.Teacherprofile(); - this.Teacherinfo(); + }, methods:{ @@ -179,12 +177,16 @@ getSysTypeTree: 'sysType/getSysTypeTree', loadSysTypes: 'sysType/loadSysTypes' }), - Teacherinfo(){ - apiTeach.detailTeacher(this.userInfo.aid).then(res =>{ + showTeacherInfo(){ + this.loadTeacherinfo(); + this.dialogVisible = true + }, + loadTeacherinfo(){ + this.workname=[]; + apiTeach.detailTeacher(this.pageId).then(res =>{ 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){ @@ -201,22 +203,20 @@ }) this.teachtext.expertise = res.result.expertise.split( ',' ); - //console.log(this.teachtext); + //console.log(this.teachtext,"this.teachtext"); + this.childData=[]; this.sysTypeListtear.forEach(nm =>{ nm.children.forEach(lk =>{ this.childData.push(lk); }) - }); - this.teachtext.expertise.forEach(item =>{ - this.childData.forEach(it =>{ - if(item == it.id){ - console.log(item) - this.workname.push(it.name); - - - } - - }) + }); + this.teachtext.expertise.forEach(item =>{ + this.childData.forEach(it =>{ + if(item == it.id){ + //console.log(item) + this.workname.push(it.name); + } + }) }) }) }, From 84d1ed3ab18ff217e1e471ee329fbfa303589d93 Mon Sep 17 00:00:00 2001 From: daihh Date: Fri, 13 Jan 2023 10:22:17 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=B8=BB=E9=A1=B5=E8=AF=BE=E7=A8=8B?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E6=94=BE=E5=A4=A7=E5=90=8E=E9=81=AE=E4=BD=8F?= =?UTF-8?q?=E5=AD=97=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Index.vue b/src/views/Index.vue index cc7995f1..0831b8de 100644 --- a/src/views/Index.vue +++ b/src/views/Index.vue @@ -1116,7 +1116,7 @@