修改bug3.0

This commit is contained in:
李志发
2024-05-22 12:20:10 +08:00
parent c7267a0acd
commit 958a93c935
14 changed files with 354 additions and 320 deletions

View File

@@ -11,91 +11,89 @@ import processStatus from "@/components/processStatus.vue";
export default {
name: "TwoCos",
components: {processStatus},
data() {
return {
teacherId: '',
form: {
teacherName: '',
teacherNo: '',
orgName: ''
data(){
return{
teacherId:'',
form:{
teacherName:'',
teacherNo:'',
orgName:''
},
progressData: {},
fileBaseUrl: process.env.VUE_APP_BOE_MOBILE_URL,
disabled: false,
statusInfo: '',
statusInfo1: '',
result: '',
newTeacherId: '',
pid: '',
teacherInfo: ''
progressData:{},
fileBaseUrl:process.env.VUE_APP_BOE_MOBILE_URL,
disabled:false,
statusInfo:'',
result:'',
newTeacherId:'',
pid:'',
statusInfo1:'',
teacherInfo:'',
form1:{}
}
},
created() {
//读取路由参数
this.teacherId = this.$route.query.teacherId
this.teacherId=this.$route.query.teacherId
//获取教师基本信息
this.baseInfo()
// this.getReviewResult()
},
methods: {
methods:{
//获取认证结果
getReviewResult() {
getReviewResult({teacherId: this.pid}).then(res => {
this.result = res.data
getReviewResult(){
getReviewResult({teacherId:this.pid}).then(res=>{
this.result=res.data
})
},
//获取教师认证状态
getStatus() {
getCertificationProcess({teacherId: this.teacherId}).then(res => {
this.statusInfo = res.data
getStatus(){
getCertificationProcess({teacherId:this.teacherId}).then(res=>{
this.statusInfo=res.data
})
getCertificationProcess({teacherId: this.pid}).then(res => {
this.statusInfo1 = res.data
getCertificationProcess({teacherId:this.pid}).then(res=>{
this.statusInfo1=res.data
})
},
baseInfo() {
getTeacherInfo({teacherId: this.teacherId}).then(res => {
this.pid = res.data[0].pid
this.form.tutor = res.data[0].tutor.split(',')
this.form.tutorTime = res.data[0].tutorTime
getTeacherInfo({teacherId: res.data[0].pid}).then(resquest => {
baseInfo(){
getTeacherInfo({teacherId:this.teacherId}).then(res=>{
this.pid=res.data[0].pid
this.form1.tutor = res.data[0].tutor.split(',')
this.form1.tutorTime = res.data[0].tutorTime
getTeacherInfo({teacherId:res.data[0].pid}).then(resquest=>{
this.teacherInfo = resquest.data[0]
this.form.teacherName = resquest.data[0].teacherName
this.form.teacherNo = resquest.data[0].teacherNo
this.form.orgName = resquest.data[0].orgName
this.form.positionName = resquest.data[0].positionName
this.form.bandCode = resquest.data[0].bandCode
this.form.courseName = resquest.data[0].courseName
this.form.courseContent = resquest.data[0].courseContent
this.form.courseIntroduction = resquest.data[0].courseIntroduction
if (res.data[0].examineCourseware == '' || resquest.data[0].examineCourseware == null) {
} else {
this.form.coursewareName = resquest.data[0].examineCourseware.coursewareName
}
this.form.teacherName=resquest.data[0].teacherName
this.form.teacherNo=resquest.data[0].teacherNo
this.form.orgName=resquest.data[0].orgName
this.form.positionName=resquest.data[0].positionName
this.form.bandCode=resquest.data[0].bandCode
this.form.courseName=resquest.data[0].courseName
this.form.courseContent=resquest.data[0].courseContent
this.form.courseIntroduction=resquest.data[0].courseIntroduction
this.form.coursewareName=resquest.data[0].examineCourseware.coursewareName
this.form.tutor = resquest.data[0].tutor.split(',')
this.form.tutorTime = resquest.data[0].tutorTime
//获取学习进度
this.getReviewResult()
this.addTeacher()
this.getStatus()
this.getReviewResult()
})
/*
* teacherName:教师姓名 teacherNo:教师工号 orgName:组织 positionName:岗位 bandCode:职级 courseName:认证课程名称 courseContent课程内容分类
* courseIntroduction:课程简介
* */
})
},
addTeacher() {
addTeacher({pageNo: 1, pageSize: 10, keyword: this.form.teacherNo}).then(res => {
addTeacher(){
addTeacher({pageNo:1,pageSize:10,keyword:this.form.teacherNo}).then(res=>{
this.getProgress(res.data[0].id)
})
},
getProgress(id) {
getProgress({teacherId: id}).then(res => {
this.progressData = res.data
res.data.forEach((item, index) => {
if (item.progress != 100) {
this.disabled = true
getProgress(id){
getProgress({teacherId:id}).then(res=>{
this.progressData=res.data
res.data.forEach((item,index)=>{
if (item.progress!=100){
this.disabled=true
return
}
})
@@ -104,13 +102,13 @@ export default {
format(percentage) {
return percentage === 100 ? '满' : `${percentage}%`;
},
getJump() {
getJump(){
this.$router.push({
path: '/need/twofinal',
query: {teacherId: this.teacherId}
path:'/need/twofinal',
query:{teacherId:this.teacherId}
})
},
toCaseData(courseId) {
toCaseData(courseId){
this.$router.push("/course/studyindex?id=" + courseId);
},
downloadFile() {
@@ -136,7 +134,7 @@ export default {
<template>
<div>
<process-status :teacherId="teacherId"></process-status>
<process-status :teacherId="pid.toString()" :pid="teacherId.toString()"></process-status>
<div class="title">基本信息</div>
<el-container>
<div class="form-table">
@@ -168,7 +166,9 @@ export default {
<div>
<el-col :span="11">
<el-form-item label="认证课程名称:" prop="courseName">
{{ form.courseName }}
<div style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;cursor: pointer;" :title="form.courseName">
{{ form.courseName }}
</div>
</el-form-item>
</el-col>
<el-col :span="11" :offset="2">
@@ -195,26 +195,14 @@ export default {
<img style="width: 100%;" v-if="item.courseImage!=''" :src="item.courseImage">
<img style="width: 100%;" v-else :src="fileBaseUrl+'/pc/images/bgimg/course.png'">
</div>
<div class="courseName">{{ item.courseName }}</div>
<div class="courseName" :title="item.courseName">{{ item.courseName }}</div>
<div class="smallTitle">当前进度</div>
<el-progress :percentage="parseInt(item.progress)"
:color="parseInt(item.progress)=='100'?'#31AF0D':'#FFA050'"></el-progress>
</div>
</div>
<div>
<div class="title" style="margin-top: 20px">认证结果</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>
<div class="title" style="margin-top: 20px">线下辅导</div>
<el-container>
<div class="form-table">
<el-form>
@@ -229,73 +217,86 @@ export default {
</div>
</el-container>
</div>
<div class="tip">
提示您已完成线下辅导快去进行下一步吧
<div>
<div class="title" style="margin-top: 20px">认证结果</div>
<div v-if="statusInfo1.reviewResult==2" class="score">请您耐心等待线下认证安排</div>
<div v-if="statusInfo1.reviewResult==0" class="score" style="color: #4b7900;">恭喜您您的认证分数为{{ result.avgScore }}已经通过认证</div>
<div v-if="statusInfo1.reviewResult==1" class="score" style="color: #ff0000">很遗憾您的认证分数为{{ result.avgScore }}没有通过认证</div>
</div>
<el-button type="primary" style="margin-top: 20px;" @click="getJump()">下一步</el-button>
<div>
<div class="title" style="margin-top: 20px">二次线下辅导</div>
<el-container>
<div class="form-table">
<el-form>
<el-form-item label="辅导老师:">
<span v-for="(item,index) in form1.tutor" :key="item"
style="display: inline-block;margin-right: 20px">{{ item }}</span>
</el-form-item>
<el-form-item label="辅导时间:">
{{ form1.tutorTime }}
</el-form-item>
</el-form>
</div>
</el-container>
</div>
<el-button type="primary" style="margin-top: 20px;margin-left: 80px" @click="getJump()">下一步</el-button>
</div>
</template>
<style scoped lang="scss">
.title {
.title{
font-size: 16px;
font-weight: 800;
border-bottom: 1px solid rgba(153, 153, 153, 0.2);
padding: 2px 2px 20px 2px;
}
.form-table {
.form-table{
width: 100%;
margin-top: 20px;
}
.progress {
display: flex;
align-items: center;
margin-top: 20px;
}
.progress > div {
width: 300px;
margin-right: 30px;
}
.courseName {
font-weight: 650;
color: #333333;
font-size: 14px;
margin-top: 12px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
cursor: pointer;
width: 100%;
}
.smallTitle {
color: #134054;
font-size: 12px;
.smallTitle{
color:#134054;
font-size:12px;
margin-top: 7px;
}
::v-deep .el-form-item__content {
::v-deep .el-form-item__content{
font-weight: 500;
}
::v-deep .el-form-item {
::v-deep .el-form-item{
margin-bottom: 0px;
}
.tip {
.tip{
color: #333333;
font-size: 14px;
margin-top: 20px;
}
.score {
margin-top: 28px;
font-size: 14px;
font-size: 18px;
color: #333333;
font-weight: 400;
}
.twoFactorAuthentication {
.twoFactorAuthentication{
width: 344px;
height: 135px;
padding: 2px 2px 2px 2px;
@@ -308,7 +309,6 @@ export default {
justify-content: center;
align-items: center;
}
.remind {
margin-bottom: 20px;
box-sizing: border-box;