mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-18 15:26:45 +08:00
上传http与https的处理,优化Aajx的超时时间
This commit is contained in:
@@ -1,87 +1,15 @@
|
||||
<template>
|
||||
<div class="study-index" v-loading="loading">
|
||||
<Remark>
|
||||
1.学员个人中心首页,当前简单,后续会美化<br/>
|
||||
2.<br/>
|
||||
3.<br/>
|
||||
1.学员个人中心首页,根据需求无需此页,直接打开我的任务->我报名的
|
||||
</Remark>
|
||||
<!-- <div style="display: flex;justify-content:space-between; padding: 10px;">
|
||||
<div style="display: flex;justify-content: flex-start;">
|
||||
<div><el-input v-model="params.name" placeholder="查询名称"></el-input></div>
|
||||
<div style="padding-left: 10px;">
|
||||
<el-select v-model="params.type" clearable placeholder="请选择">
|
||||
<el-option label="微课" value="1"></el-option>
|
||||
<el-option label="在线课" value="2"></el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
<div style="padding-left: 10px;">
|
||||
<el-button type="primary" icon="el-icon-search">查询</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<el-badge :value="2" class="uc-badge">
|
||||
<el-button >未开始</el-button>
|
||||
</el-badge>
|
||||
<el-badge :value="3" class="uc-badge">
|
||||
<el-button >学习中</el-button>
|
||||
</el-badge>
|
||||
<el-badge :value="1" class="uc-badge" type="primary">
|
||||
<el-button >已完成</el-button>
|
||||
</el-badge>
|
||||
</div>
|
||||
</div> -->
|
||||
<!--课程列表内容-->
|
||||
<div>
|
||||
<!-- <div v-if="lastStudy.itemId && lastStudy.itemId!=''">
|
||||
<p class="title"><i class="el-icon-caret-right"></i> 上次学习</p>
|
||||
<div>
|
||||
<div>
|
||||
<span>【{{getCourseType(lastStudy.courseType)}}】 {{lastStudy.courseName}}, </span>
|
||||
<span style="margin: 0px 10px;"> {{lastStudy.lastTime}} </span>
|
||||
<span> {{lastStudy.contentName}} </span>
|
||||
<span style="margin: 0px 10px;">
|
||||
<el-link type="primary" :href="continueStudy(lastStudy)" target="_blank">继续学习</el-link>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
<div>
|
||||
<div>
|
||||
<!-- <p class="title">
|
||||
<router-link to="/uc/study/courses"><i class="el-icon-caret-right"></i> 正在学习</router-link>
|
||||
<span v-if="couresList.length>5" class="more"><router-link to="/uc/study/courses">更多 ></router-link></span>
|
||||
</p> -->
|
||||
<div>
|
||||
<!-- <div v-if="couresList.length>0" style="">
|
||||
|
||||
</div> -->
|
||||
<!-- <div v-else style="text-align: center;padding: 20px;color: #ffaa00;">目前您没有正在学习的课程</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<!-- <p class="title">
|
||||
<router-link to="/uc/study/task"><i class="el-icon-caret-right"></i> 正在进行的任务</router-link>
|
||||
<span v-if="taskList.length>5" class="more"><router-link to="/uc/study/task">更多 ></router-link></span>
|
||||
</p> -->
|
||||
<div>
|
||||
<!-- <div v-if="taskList.length>0">
|
||||
|
||||
</div> -->
|
||||
<!-- <div v-else style="text-align: center;padding: 20px;color: #ffaa00; ">目前您没有正在进行的任务</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import studyItem from '@/components/Course/studyItem.vue'
|
||||
import apicourseStudy from '@/api/modules/courseStudy.js';
|
||||
import apiBoeCourse from '@/api/boe/course.js';
|
||||
// import apiBoeCourse from '@/api/boe/course.js';
|
||||
import {resListMap, resOwnerListMap,courseType,getType} from '@/utils/tools.js';
|
||||
import apiBoe from '@/api/boe/boeApiAjax.js';
|
||||
import axios from 'axios'
|
||||
@@ -130,33 +58,33 @@
|
||||
// cmtask_status:this.cmtask_status,
|
||||
// cmtask_name:this.cmtask_name,
|
||||
}
|
||||
|
||||
apiBoeCourse.cmtaskList(params).then(res=>{
|
||||
if(res.status==200){
|
||||
this.total = res.result.count
|
||||
this.couresList = res.result.list;
|
||||
this.loading = false;
|
||||
if(this.$route.fullPath != '/uc/study/task' && this.$route.fullPath != '/uc/study/courses' && this.$route.fullPath != '/study/index') {
|
||||
return;
|
||||
}
|
||||
if(res.result.count > 0) {
|
||||
this.$router.push('/uc/study/task')
|
||||
} else {
|
||||
if(this.$route.query.study == '1') {
|
||||
this.$router.push('/uc/study/task')
|
||||
} else {
|
||||
this.$router.push('/uc/study/courses')
|
||||
}
|
||||
}
|
||||
}else{
|
||||
this.$router.push('/uc/study/courses')
|
||||
}
|
||||
}).catch(err=>{
|
||||
if(this.$route.fullPath != '/uc/study/task' || this.$route.fullPath != '/uc/study/courses' || this.$route.fullPath != '/study/index') {
|
||||
return;
|
||||
}
|
||||
this.$router.push('/uc/study/courses');
|
||||
})
|
||||
|
||||
// apiBoeCourse.cmtaskList(params).then(res=>{
|
||||
// if(res.status==200){
|
||||
// this.total = res.result.count
|
||||
// this.couresList = res.result.list;
|
||||
// this.loading = false;
|
||||
// if(this.$route.fullPath != '/uc/study/task' && this.$route.fullPath != '/uc/study/courses' && this.$route.fullPath != '/study/index') {
|
||||
// return;
|
||||
// }
|
||||
// if(res.result.count > 0) {
|
||||
// this.$router.push('/uc/study/task')
|
||||
// } else {
|
||||
// if(this.$route.query.study == '1') {
|
||||
// this.$router.push('/uc/study/task')
|
||||
// } else {
|
||||
// this.$router.push('/uc/study/courses')
|
||||
// }
|
||||
// }
|
||||
// }else{
|
||||
// this.$router.push('/uc/study/courses')
|
||||
// }
|
||||
// }).catch(err=>{
|
||||
// if(this.$route.fullPath != '/uc/study/task' || this.$route.fullPath != '/uc/study/courses' || this.$route.fullPath != '/study/index') {
|
||||
// return;
|
||||
// }
|
||||
// this.$router.push('/uc/study/courses');
|
||||
// })
|
||||
},
|
||||
created() {
|
||||
//this.$router.push('/uc/study/courses');
|
||||
|
||||
Reference in New Issue
Block a user