cert api edit

This commit is contained in:
joshen
2024-05-21 15:36:24 +08:00
parent bf10e5fd85
commit 24386d2d54
3 changed files with 18 additions and 12 deletions

View File

@@ -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{

View File

@@ -20,7 +20,7 @@
</div>
</div>
<div class="info_buttom">
认证课程名称{{lecturersInfo.courseName}}
<span>认证课程名称:</span>{{lecturersInfo.courseName}}
</div>
</div>
<div class="curriculumDevelopment">
@@ -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 {

View File

@@ -29,7 +29,7 @@
<view v-if="!itemes.score" class="status" style="color:#409EFF">去评分</view>
</view>
</view>
<u-empty v-if="lecturersList.length == 0 && lecturersList!==''" mode="list" icon="http://cdn.uviewui.com/uview/empty/car.png"></u-empty>
<u-empty v-if="lecturersList.length == 0 && lecturersList!==''" mode="data" icon="http://cdn.uviewui.com/uview/empty/car.png"></u-empty>
</view>
</view>
</view>
@@ -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;