From 24386d2d54ddf3c9e20b1b60a8b7a77e979cfa60 Mon Sep 17 00:00:00 2001 From: joshen <445497689@qq.com> Date: Tue, 21 May 2024 15:36:24 +0800 Subject: [PATCH] cert api edit --- api/lecturer/certification.js.js | 2 +- pages/lecturer/certification/info.vue | 13 ++++++++++--- pages/lecturer/certification/list.vue | 15 +++++++-------- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/api/lecturer/certification.js.js b/api/lecturer/certification.js.js index e5cd372..b644297 100644 --- a/api/lecturer/certification.js.js +++ b/api/lecturer/certification.js.js @@ -27,7 +27,7 @@ const lecturerCertificationList=function(data){ @param teacherId 讲师ID */ const lecturerCertificationInfo=function(data){ - return ajax.postJson(baseURL,'/teacher/getTeacherInfo',data); + return ajax.postJson(baseURL,'/score/getScores',data); } export default{ diff --git a/pages/lecturer/certification/info.vue b/pages/lecturer/certification/info.vue index ecb871e..656c79c 100644 --- a/pages/lecturer/certification/info.vue +++ b/pages/lecturer/certification/info.vue @@ -20,7 +20,7 @@
- 认证课程名称:{{lecturersInfo.courseName}} + 认证课程名称:{{lecturersInfo.courseName}}
@@ -171,8 +171,10 @@ apiLecturerCert.lecturerCertificationInfo({ teacherId: teacherId }).then(res => { - if (res.code == 200 &&res.data.length) { - this.lecturersInfo = res.data[0] || {} + console.log('res::',res) + if (res.code == 200 && res.data) { + + this.lecturersInfo = res.data || {} //this.lecturersInfo.scores="" //"1,2,3,1,2,3,1,2,3" if(this.lecturersInfo.scores&&this.lecturersInfo.scores.length>1){ this.scoreDisabled = true @@ -182,6 +184,7 @@ this.score[name] = Number(arr[key]) key++ } + this.stepperChange() } } else { this.lecturersInfo = {} @@ -296,6 +299,10 @@ line-height: 20px; text-align: left; font-style: normal; + span{ + width: 110px; + display: inline-block; + } } } .curriculumDevelopment { diff --git a/pages/lecturer/certification/list.vue b/pages/lecturer/certification/list.vue index 9edf62f..a744652 100644 --- a/pages/lecturer/certification/list.vue +++ b/pages/lecturer/certification/list.vue @@ -29,7 +29,7 @@ 去评分 - + @@ -56,12 +56,12 @@ apiLecturerCert.lecturerCertificationList({ reviewId: this.reviewId }).then(res => { - if (res.code == 200) { - this.lecturersList = res.data - } else { - this.lecturersList = [] - this.$refs.uToast.show({message:res.msg,type:'error'}); - } + if (res.code == 200) { + this.lecturersList = res.data + } else { + this.lecturersList = [] + // this.$refs.uToast.show({message:res.msg,type:'error'}); + } }); } }, @@ -165,7 +165,6 @@ line-height: 20px; text-align: left; font-style: normal; - display: flex; align-items: center; .posts{ margin-right: 20px;