mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-06 17:36:45 +08:00
cert api edit
This commit is contained in:
@@ -27,7 +27,7 @@ const lecturerCertificationList=function(data){
|
|||||||
@param teacherId 讲师ID
|
@param teacherId 讲师ID
|
||||||
*/
|
*/
|
||||||
const lecturerCertificationInfo=function(data){
|
const lecturerCertificationInfo=function(data){
|
||||||
return ajax.postJson(baseURL,'/teacher/getTeacherInfo',data);
|
return ajax.postJson(baseURL,'/score/getScores',data);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default{
|
export default{
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="info_buttom">
|
<div class="info_buttom">
|
||||||
认证课程名称:{{lecturersInfo.courseName}}
|
<span>认证课程名称:</span>{{lecturersInfo.courseName}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="curriculumDevelopment">
|
<div class="curriculumDevelopment">
|
||||||
@@ -171,8 +171,10 @@
|
|||||||
apiLecturerCert.lecturerCertificationInfo({
|
apiLecturerCert.lecturerCertificationInfo({
|
||||||
teacherId: teacherId
|
teacherId: teacherId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 200 &&res.data.length) {
|
console.log('res::',res)
|
||||||
this.lecturersInfo = res.data[0] || {}
|
if (res.code == 200 && res.data) {
|
||||||
|
|
||||||
|
this.lecturersInfo = res.data || {}
|
||||||
//this.lecturersInfo.scores="" //"1,2,3,1,2,3,1,2,3"
|
//this.lecturersInfo.scores="" //"1,2,3,1,2,3,1,2,3"
|
||||||
if(this.lecturersInfo.scores&&this.lecturersInfo.scores.length>1){
|
if(this.lecturersInfo.scores&&this.lecturersInfo.scores.length>1){
|
||||||
this.scoreDisabled = true
|
this.scoreDisabled = true
|
||||||
@@ -182,6 +184,7 @@
|
|||||||
this.score[name] = Number(arr[key])
|
this.score[name] = Number(arr[key])
|
||||||
key++
|
key++
|
||||||
}
|
}
|
||||||
|
this.stepperChange()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.lecturersInfo = {}
|
this.lecturersInfo = {}
|
||||||
@@ -296,6 +299,10 @@
|
|||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
|
span{
|
||||||
|
width: 110px;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.curriculumDevelopment {
|
.curriculumDevelopment {
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
<view v-if="!itemes.score" class="status" style="color:#409EFF">去评分</view>
|
<view v-if="!itemes.score" class="status" style="color:#409EFF">去评分</view>
|
||||||
</view>
|
</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>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -56,12 +56,12 @@
|
|||||||
apiLecturerCert.lecturerCertificationList({
|
apiLecturerCert.lecturerCertificationList({
|
||||||
reviewId: this.reviewId
|
reviewId: this.reviewId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.lecturersList = res.data
|
this.lecturersList = res.data
|
||||||
} else {
|
} else {
|
||||||
this.lecturersList = []
|
this.lecturersList = []
|
||||||
this.$refs.uToast.show({message:res.msg,type:'error'});
|
// this.$refs.uToast.show({message:res.msg,type:'error'});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -165,7 +165,6 @@
|
|||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
.posts{
|
.posts{
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
|
|||||||
Reference in New Issue
Block a user