|
|
@@ -9,7 +9,7 @@
|
|
|
<div class="year-card-top-title-box">
|
|
|
<p>学年数据统计</p>
|
|
|
<p>按学年统计历年考试通过情况与成绩</p>
|
|
|
- <p v-if="yearType">毕业报告</p>
|
|
|
+ <!--<p v-if="yearType">成绩报告</p>-->
|
|
|
</div>
|
|
|
<div class="bottom-content-box scrollbar-box">
|
|
|
<div class="bottom-big-box-1" v-for="(item,index) in yearMinList">
|
|
|
@@ -24,7 +24,7 @@
|
|
|
<p>待完成的学习任务</p>
|
|
|
</div>
|
|
|
<div class="bottom-content-box scrollbar-box">
|
|
|
- <div class="bottom-big-box-2" v-for="(item,index) in studyMinList" @click="tableButton(2,item)">
|
|
|
+ <div class="bottom-big-box-2" v-for="(item,index) in studyMinList" @click="studyTableButton(item)">
|
|
|
<p>{{item.courseName}}</p>
|
|
|
<p >{{item.deptName}}丨{{item.learnStatus==0?'待完成':(item.learnStatus==1?'进行中':(item.learnStatus==2?'已完成':''))}}</p>
|
|
|
</div>
|
|
|
@@ -36,9 +36,9 @@
|
|
|
<p>待完成的考前模拟练习</p>
|
|
|
</div>
|
|
|
<div class="bottom-content-box scrollbar-box">
|
|
|
- <div class="bottom-big-box-3" v-for="(item,index) in examinationMinList" @click="tableButton(3,item)">
|
|
|
+ <div class="bottom-big-box-3" v-for="(item,index) in examinationMinList" @click="mockTableButton(item)">
|
|
|
<p>{{item.examName}}</p>
|
|
|
- <p >最高成绩 {{item.maxScore}}</p>
|
|
|
+ <p >最高成绩 {{item.maxScore?item.maxScore:0}}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -124,6 +124,92 @@ export default {
|
|
|
this.examUserExamMockList();
|
|
|
this.examUserExamList();
|
|
|
},
|
|
|
+ //学习任务
|
|
|
+ studyTableButton(item){
|
|
|
+ let self = this;
|
|
|
+ if(item.conditionType == 1){
|
|
|
+ this.$confirm('还未达到学时要求,是否现在去学习?', "警告", {
|
|
|
+ confirmButtonText: "确认",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(function() {
|
|
|
+ }).then(() => {
|
|
|
+ //学时要求
|
|
|
+ self.$router.push({
|
|
|
+ name: 'knowledgeLearning',
|
|
|
+ params: {}
|
|
|
+ })
|
|
|
+ }).catch(() => {});
|
|
|
+ }else{
|
|
|
+ //学习课程
|
|
|
+ this.$router.push({
|
|
|
+ name: 'learningCourse',
|
|
|
+ params: {
|
|
|
+ courseId: item.courseId,
|
|
|
+ examId: item.examId,
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //模拟考试
|
|
|
+ mockTableButton(item){
|
|
|
+ let self = this;
|
|
|
+ if(item.conditionType == 1){
|
|
|
+ this.$confirm('完成学时要求后解锁,是否现在去学习?', "警告", {
|
|
|
+ confirmButtonText: "确认",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(function() {
|
|
|
+ }).then(() => {
|
|
|
+ //学时要求
|
|
|
+ self.$router.push({
|
|
|
+ name: 'knowledgeLearning',
|
|
|
+ params: {}
|
|
|
+ })
|
|
|
+ }).catch(() => {});
|
|
|
+ }else if(item.conditionType == 2){
|
|
|
+ this.$confirm('完成考前课程学习后解锁,是否现在去学习?', "警告", {
|
|
|
+ confirmButtonText: "确认",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(function() {
|
|
|
+ }).then(() => {
|
|
|
+ //学习课程
|
|
|
+ self.$router.push({
|
|
|
+ name: 'learningCourse',
|
|
|
+ params: {
|
|
|
+ courseId: item.courseId,
|
|
|
+ examId: item.examId,
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }).catch(() => {});
|
|
|
+ }else{
|
|
|
+ //模拟考试
|
|
|
+ if(item.attemptId){
|
|
|
+ this.$router.push({
|
|
|
+ name: 'mockExam',
|
|
|
+ params: {
|
|
|
+ examId: item.examId,
|
|
|
+ attemptId: item.attemptId,
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ examUserExamStart({examId:item.examId,examScene:2,}).then(response => {
|
|
|
+ if(response.data.attemptId){
|
|
|
+ this.$router.push({
|
|
|
+ name: 'mockExam',
|
|
|
+ params: {
|
|
|
+ examId: item.examId,
|
|
|
+ attemptId: response.data.attemptId,
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.msgError(response.message)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
//考试跳转
|
|
|
tableButton(type,item){
|
|
|
let self = this;
|