mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 02:46:44 +08:00
修改查看
This commit is contained in:
@@ -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}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -116,9 +172,9 @@ export default {
|
||||
</div>
|
||||
<div class="uc-course-text">
|
||||
{{ item.reviewResult==3||item.reviewResult==1?'报名时间':'认证时间' }}:{{ item.reviewResult==3||item.reviewResult==1?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">查看认证记录</span>
|
||||
<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">查看</span>
|
||||
<span type="text" style="margin-left:10px;font-size:14px;cursor: pointer;color:#3da8f0" v-if="item.reviewResult==2" @click="getView(item)">查看</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user