diff --git a/src/views/lecturer/Index.vue b/src/views/lecturer/Index.vue index 3e8ea732..4166fc96 100644 --- a/src/views/lecturer/Index.vue +++ b/src/views/lecturer/Index.vue @@ -50,7 +50,6 @@ export default { this.getList(); }, methods:{ - jumpRouter(teacherId){ this.$router.push({ path:'/need/draft', @@ -79,6 +78,63 @@ export default { this.params.pageIndex = val; this.getList(); }, + //根据认证状态跳转页面 + getView(item){ + if(item.secondResult==0){ + if (item.endStatus==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){ + 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} + }) + } + } } } @@ -116,9 +172,9 @@ export default {
{{ item.reviewResult==3||item.reviewResult==1?'报名时间':'认证时间' }}:{{ item.reviewResult==3||item.reviewResult==1?item.createTime:item.reviewTime }} - 查看认证记录 + 查看认证记录 填写信息 - 查看 + 查看