打通流程

This commit is contained in:
李志发
2024-05-15 22:28:12 +08:00
parent b58383e9d9
commit 2314773e59
9 changed files with 220 additions and 131 deletions

View File

@@ -13,7 +13,7 @@ export default {
},
progressData:{},
fileBaseUrl:process.env.VUE_APP_FILE_BASE_URL,
disabled:true,
disabled:false,
statusInfo:''
}
},
@@ -59,10 +59,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) {
@@ -129,12 +132,14 @@ 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>
@@ -172,7 +177,12 @@ export default {
margin-top: 20px;
}
.progress{
display: flex;
align-items: center;
}
.progress>div{
max-width: 250px;
margin-right: 20px;
}
.courseName{
font-weight: 650;

View File

@@ -145,7 +145,7 @@ export default {
<template>
<div>
<div class="title">上传稿</div>
<div class="title">上传稿</div>
<el-container>
<div class="form-table">
<el-form ref="form" :model="form" :rules="rules" :label-position="labelPosition" label-width="140px">

View File

@@ -19,7 +19,7 @@ export default {
},
progressData:{},
fileBaseUrl:process.env.VUE_APP_FILE_BASE_URL,
disabled:true,
disabled:false,
statusInfo:'',
result:'',
newTeacherId:'',
@@ -86,10 +86,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) {
@@ -156,12 +159,14 @@ 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>
@@ -207,7 +212,12 @@ export default {
margin-top: 20px;
}
.progress{
display: flex;
align-items: center;
}
.progress>div{
max-width: 250px;
margin-right: 20px;
}
.courseName{
font-weight: 650;

View File

@@ -1,7 +1,7 @@
<script>
import {mapGetters} from "vuex";
import courseImage from "@/components/Course/courseImage.vue";
import {getCertificationProcess, pageList} from "@/api/modules/lecturer"
import {getCertificationProcess, getReviewResult, pageList} from "@/api/modules/lecturer"
export default {
name: "index",
components: {courseImage},
@@ -52,60 +52,66 @@ export default {
},
//根据认证状态跳转页面
getView(item){
if(item.secondResult==0){
if (item.endStatus==0){
getCertificationProcess({teacherId:item.teacherId}).then(res=>{
var data = res.data
if(data.secondResult==0){
if (data.endStatus==0){
this.$router.push({
path:'/need/twofinals',
query:{teacherId:item.teacherId}
})
}else if (data.offlineTutoring==0){
this.$router.push({
path:'/need/twocoachingsuccess',
query:{teacherId:item.teacherId}
})
}else if (data.offlineTutoring==1){
this.$router.push({
path:'/need/twocoaching',
query:{teacherId:item.teacherId}
})
}
}else if (data.secondResult==1){
if (data.endStatus==0){
this.$router.push({
path:'/need/finalsuccess',
query:{teacherId:item.teacherId}
})
}else if (data.offlineTutoring==0 && data.endStatus==1){
this.$router.push({
path:'/need/final',
query:{teacherId:item.teacherId}
})
}else if (data.offlineTutoring==1 && data.onlineLearning==0){
this.$router.push({
path:'/need/coaching',
query:{teacherId:item.teacherId}
})
}else if (data.onlineLearning==2 || data.onlinelearning==1){
this.$router.push({
path:'/need/onlinelearning',
query:{teacherId:item.teacherId}
})
}
}
})
},
//查看认证记录
getRecording(item){
getCertificationProcess({teacherId:item.teacherId}).then(res=>{
var data = res.data
if (data.secondResult==0){
this.$router.push({
path:'/need/twofinals',
query:{teacherId:item.teacherId}
})
}else if (item.offlineTutoring==0){
this.$router.push({
path:'/need/twocoachingsuccess',
query:{teacherId:item.teacherId}
})
}else if (item.offlineTutoring==1){
this.$router.push({
path:'/need/twocoaching',
query:{teacherId:item.teacherId}
})
}
}else if (item.secondResult==1){
if (item.endStatus==0){
}else {
this.$router.push({
path:'/need/finalsuccess',
query:{teacherId:item.teacherId}
})
}else if (item.offlineTutoring==0 && item.endStatus==1){
this.$router.push({
path:'/need/final',
query:{teacherId:item.teacherId}
})
}else if (item.offlineTutoring==1 && item.onlineLearning==0){
this.$router.push({
path:'/need/coaching',
query:{teacherId:item.teacherId}
})
}else if (item.onlineLearning==2 || item.onlinelearning==1){
this.$router.push({
path:'/need/onlinelearning',
query:{teacherId:item.teacherId}
})
}
}
},
//查看认证记录
getRecording(item){
if (item.secondResult==0){
this.$router.push({
path:'/need/twofinals',
query:{teacherId:item.teacherId}
})
}else {
this.$router.push({
path:'/need/finalsuccess',
query:{teacherId:item.teacherId}
})
}
})
}
}
}
@@ -143,7 +149,7 @@ export default {
<div>{{ item.draftStatus==1?item.description:item.courseIntroduction }}</div>
</div>
<div class="uc-course-text">
{{ item.reviewResult==3||item.reviewResult==1?'报名时间':'认证时间' }}{{ item.reviewResult==3||item.reviewResult==1?item.createTime:item.reviewTime }}
{{ item.reviewResult==3||item.reviewResult==2?'报名时间':'认证时间' }}{{ item.reviewResult==3||item.reviewResult==2?item.createTime:item.reviewTime }}
<span type="text" style="margin-left:10px;font-size:14px;cursor: pointer;color:#b6b6b6" v-if="item.reviewResult==1||item.reviewResult==0" @click="getRecording(item)">查看认证记录</span>
<span type="text" style="margin-left:10px;font-size:14px;cursor: pointer;color:#3da8f0" v-if="item.reviewResult==3" @click="jumpRouter(item.teacherId)">填写信息</span>
<span type="text" style="margin-left:10px;font-size:14px;cursor: pointer;color:#3da8f0" v-if="item.reviewResult==2" @click="getView(item)">查看</span>

View File

@@ -13,7 +13,7 @@ export default {
},
progressData:{},
fileBaseUrl:process.env.VUE_APP_FILE_BASE_URL,
disabled:true,
disabled:false,
statusInfo:''
}
},
@@ -50,10 +50,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) {
@@ -120,15 +123,17 @@ 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 class="tip">
提示您的课程还未学习完毕不能进行下一步
{{ disabled==false?'提示:您的线上课程已经学习完毕,快去进行下一步吧':'提示:您的课程还未学习完毕不能进行下一步!'}}
</div>
<el-button type="primary" :disabled="disabled" style="margin-top: 20px;margin-left: 80px" @click="getJump()">下一步</el-button>
</div>
@@ -147,7 +152,12 @@ export default {
margin-top: 20px;
}
.progress{
display: flex;
align-items: center;
}
.progress>div{
max-width: 250px;
margin-right: 20px;
}
.courseName{
font-weight: 650;

View File

@@ -19,10 +19,12 @@ export default {
},
progressData:{},
fileBaseUrl:process.env.VUE_APP_FILE_BASE_URL,
disabled:true,
disabled:false,
statusInfo:'',
result:'',
newTeacherId:'',
pid:'',
statusInfo1:''
}
},
mounted() {
@@ -30,7 +32,6 @@ export default {
this.teacherId=this.$route.query.teacherId
//获取教师基本信息
this.baseInfo()
this.getStatus()
this.getReviewResult()
},
methods:{
@@ -38,7 +39,6 @@ export default {
getoFactor(){
secondExamine({teacherId:this.teacherId}).then(res=>{
this.newTeacherId=res.data.replace(/[^0-9]/ig,'')
})
},
//获取认证结果
@@ -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=>{
@@ -68,10 +71,10 @@ export default {
this.form.courseContent=res.data[0].courseContent
this.form.courseIntroduction=res.data[0].courseIntroduction
this.form.coursewareName=res.data[0].examineCourseware.coursewareName
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()
})
},
addTeacher(){
@@ -81,10 +84,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) {
@@ -151,18 +157,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="statusInfo1.reviewResult==2" class="score" style="color: #797979">请您耐心等待线下认证安排</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>
<div>
<div class="title" style="margin-top: 20px">线下辅导</div>
@@ -185,7 +193,12 @@ export default {
margin-top: 20px;
}
.progress{
display: flex;
align-items: center;
}
.progress>div{
max-width: 250px;
margin-right: 20px;
}
.courseName{
font-weight: 650;

View File

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

View File

@@ -102,6 +102,11 @@ export default {
path:'/need/twofinals',
query:{teacherId:this.teacherId}
})
}else {
this.$message({
message: res.msg,
type: 'error'
});
}
})
}

View File

@@ -19,10 +19,13 @@ export default {
},
progressData:{},
fileBaseUrl:process.env.VUE_APP_FILE_BASE_URL,
disabled:true,
disabled:false,
statusInfo:'',
statusInfo1:'',
result:'',
result1:'',
newTeacherId:'',
pid:'',
}
},
mounted() {
@@ -30,15 +33,12 @@ export default {
this.teacherId=this.$route.query.teacherId
//获取教师基本信息
this.baseInfo()
this.getStatus()
this.getReviewResult()
},
methods:{
//前往二次认证
getoFactor(){
secondExamine({teacherId:this.teacherId}).then(res=>{
this.newTeacherId=res.data.replace(/[^0-9]/ig,'')
})
},
//获取认证结果
@@ -46,12 +46,18 @@ export default {
getReviewResult({teacherId:this.teacherId}).then(res=>{
this.result=res.data
})
getReviewResult({teacherId:this.pid}).then(res=>{
this.result1=res.data
})
},
//获取教师认证状态
getStatus(){
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 +80,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 +94,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 +167,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="result1.reviewResult==2" class="score" style="color: #797979">请您耐心等待线下认证安排</div>
<div v-if="result1.reviewResult==0" class="score" style="color: #4b7900;">恭喜您您的认证分数为{{ result1.avgScore }}已经通过认证</div>
<div v-if="result1.reviewResult==1" class="score" style="color: #ff0000">很遗憾您的认证分数为{{ result1.avgScore }}没有通过认证</div>
</div>
<div>
<div class="title" style="margin-top: 20px">二次线下辅导</div>
@@ -185,9 +199,9 @@ export default {
</div>
<div>
<div class="title" style="margin-top: 20px">二次认证结果</div>
<div v-if="statusInfo.secondResult==2" class="score" style="color: #797979">请您耐心等待线下认证安排</div>
<div v-if="statusInfo.secondResult==0" class="score" style="color: #4b7900;">恭喜您您的认证分数为{{ result.avgScore }}已经通过认证</div>
<div v-if="statusInfo.secondResult==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>
</template>
@@ -205,7 +219,12 @@ export default {
margin-top: 20px;
}
.progress{
display: flex;
align-items: center;
}
.progress>div{
max-width: 250px;
margin-right: 20px;
}
.courseName{
font-weight: 650;