mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-18 07:16:44 +08:00
打通流程
This commit is contained in:
@@ -19,10 +19,12 @@ export default {
|
||||
},
|
||||
progressData:{},
|
||||
fileBaseUrl:process.env.VUE_APP_FILE_BASE_URL,
|
||||
disabled:true,
|
||||
disabled:false,
|
||||
statusInfo:'',
|
||||
statusInfo1:'',
|
||||
result:'',
|
||||
newTeacherId:'',
|
||||
pid:'',
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -30,8 +32,6 @@ export default {
|
||||
this.teacherId=this.$route.query.teacherId
|
||||
//获取教师基本信息
|
||||
this.baseInfo()
|
||||
this.getStatus()
|
||||
this.getReviewResult()
|
||||
},
|
||||
methods:{
|
||||
//前往二次认证
|
||||
@@ -43,7 +43,7 @@ export default {
|
||||
},
|
||||
//获取认证结果
|
||||
getReviewResult(){
|
||||
getReviewResult({teacherId:this.teacherId}).then(res=>{
|
||||
getReviewResult({teacherId:this.pid}).then(res=>{
|
||||
this.result=res.data
|
||||
})
|
||||
},
|
||||
@@ -52,6 +52,9 @@ export default {
|
||||
getCertificationProcess({teacherId:this.teacherId}).then(res=>{
|
||||
this.statusInfo=res.data
|
||||
})
|
||||
getCertificationProcess({teacherId:this.pid}).then(res=>{
|
||||
this.statusInfo1=res.data
|
||||
})
|
||||
},
|
||||
baseInfo(){
|
||||
getTeacherInfo({teacherId:this.teacherId}).then(res=>{
|
||||
@@ -74,8 +77,11 @@ export default {
|
||||
}
|
||||
this.form.tutor=res.data[0].tutor.split(',')
|
||||
this.form.tutorTime=res.data[0].tutorTime
|
||||
this.pid=res.data[0].pid
|
||||
//获取学习进度
|
||||
this.addTeacher()
|
||||
this.getStatus()
|
||||
this.getReviewResult()
|
||||
})
|
||||
},
|
||||
addTeacher(){
|
||||
@@ -85,10 +91,13 @@ export default {
|
||||
},
|
||||
getProgress(id){
|
||||
getProgress({teacherId:id}).then(res=>{
|
||||
this.progressData=res.data[0]
|
||||
if (this.progressData.progress==100){
|
||||
this.disabled=false
|
||||
}
|
||||
this.progressData=res.data
|
||||
res.data.forEach((item,index)=>{
|
||||
if (item.progress!=100){
|
||||
this.disabled=true
|
||||
return
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
format(percentage) {
|
||||
@@ -155,18 +164,20 @@ export default {
|
||||
</el-container>
|
||||
<div class="title" style="margin-top: 20px">线上课程</div>
|
||||
<div class="progress">
|
||||
<div class="uc-course-img" style="width: 212px;height:119px">
|
||||
<img :src="fileBaseUrl +progressData.courseImage">
|
||||
<div v-for="(item,index) in progressData" :key="item">
|
||||
<div class="uc-course-img" style="width: 212px;height:119px">
|
||||
<img :src="fileBaseUrl +item.courseImage">
|
||||
</div>
|
||||
<div class="courseName">{{item.courseName}}</div>
|
||||
<div class="smallTitle">当前进度</div>
|
||||
<el-progress :percentage="item.progress" :format="format"></el-progress>
|
||||
</div>
|
||||
<div class="courseName">{{progressData.courseName}}</div>
|
||||
<div class="smallTitle">当前进度</div>
|
||||
<el-progress :percentage="progressData.progress" :format="format"></el-progress>
|
||||
</div>
|
||||
<div>
|
||||
<div class="title" style="margin-top: 20px">认证结果</div>
|
||||
<div v-if="statusInfo.reviewResult==2" class="score" style="color: #797979">请您耐心等待线下认证安排!</div>
|
||||
<div v-if="statusInfo.reviewResult==0" class="score" style="color: #4b7900;">恭喜您,您的认证分数为{{ result.avgScore }}分,已经通过认证!</div>
|
||||
<div v-if="statusInfo.reviewResult==1" class="score" style="color: #ff0000">很遗憾,您的认证分数为{{ result.avgScore }}分,没有通过认证!</div>
|
||||
<div v-if="result.reviewResult==2" class="score" style="color: #797979">请您耐心等待线下认证安排!</div>
|
||||
<div v-if="result.reviewResult==0" class="score" style="color: #4b7900;">恭喜您,您的认证分数为{{ result.avgScore }}分,已经通过认证!</div>
|
||||
<div v-if="result.reviewResult==1" class="score" style="color: #ff0000">很遗憾,您的认证分数为{{ result.avgScore }}分,没有通过认证!</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="title" style="margin-top: 20px">二次线下辅导</div>
|
||||
@@ -204,7 +215,12 @@ export default {
|
||||
margin-top: 20px;
|
||||
}
|
||||
.progress{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.progress>div{
|
||||
max-width: 250px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
.courseName{
|
||||
font-weight: 650;
|
||||
|
||||
Reference in New Issue
Block a user