|
|
@@ -19,41 +19,50 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="study-card-box for-max-big-box">
|
|
|
- <div class="year-card-top-title-box">
|
|
|
- <p>学习任务</p>
|
|
|
- <p>待完成的学习任务</p>
|
|
|
- </div>
|
|
|
- <div class="bottom-content-box scrollbar-box">
|
|
|
- <p class="null-p" v-if="!studyMinList[0]">暂无数据</p>
|
|
|
- <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>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="examination-card-box for-max-big-box">
|
|
|
- <div class="year-card-top-title-box">
|
|
|
- <p>模拟考试</p>
|
|
|
- <p>待完成的考前模拟练习</p>
|
|
|
- </div>
|
|
|
- <div class="bottom-content-box scrollbar-box">
|
|
|
- <p class="null-p" v-if="!examinationMinList[0]">暂无数据</p>
|
|
|
- <div class="bottom-big-box-3" v-for="(item,index) in examinationMinList" @click="mockTableButton(item)">
|
|
|
- <p>{{item.examName}}</p>
|
|
|
- <p >最高成绩 {{item.maxScore?item.maxScore:0}}</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <!--学习任务卡-->
|
|
|
+ <!--<div class="study-card-box for-max-big-box">-->
|
|
|
+ <!--<div class="year-card-top-title-box">-->
|
|
|
+ <!--<p>学习任务</p>-->
|
|
|
+ <!--<p>待完成的学习任务</p>-->
|
|
|
+ <!--</div>-->
|
|
|
+ <!--<div class="bottom-content-box scrollbar-box">-->
|
|
|
+ <!--<p class="null-p" v-if="!studyMinList[0]">暂无数据</p>-->
|
|
|
+ <!--<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>-->
|
|
|
+ <!--</div>-->
|
|
|
+ <!--</div>-->
|
|
|
+ <!--模拟任务卡-->
|
|
|
+ <!--<div class="examination-card-box for-max-big-box">-->
|
|
|
+ <!--<div class="year-card-top-title-box">-->
|
|
|
+ <!--<p>模拟考试</p>-->
|
|
|
+ <!--<p>待完成的考前模拟练习</p>-->
|
|
|
+ <!--</div>-->
|
|
|
+ <!--<div class="bottom-content-box scrollbar-box">-->
|
|
|
+ <!--<p class="null-p" v-if="!examinationMinList[0]">暂无数据</p>-->
|
|
|
+ <!--<div class="bottom-big-box-3" v-for="(item,index) in examinationMinList" @click="mockTableButton(item)">-->
|
|
|
+ <!--<p>{{item.examName}}</p>-->
|
|
|
+ <!--<p >最高成绩 {{item.maxScore?item.maxScore:0}}</p>-->
|
|
|
+ <!--</div>-->
|
|
|
+ <!--</div>-->
|
|
|
+ <!--</div>-->
|
|
|
+ <!--在线任务卡-->
|
|
|
<div class="for-max-big-box" v-for="(item,index) in dataList" :key="index">
|
|
|
<div class="year-card-top-title-box">
|
|
|
<p>{{item.examTypeName}}</p>
|
|
|
- <p>满足前置条件后可参加考试</p>
|
|
|
+ <p v-if="item.examKind==1&&item.conditionType != 4">满足前置条件后可参加考试</p>
|
|
|
+ <p v-if="item.examKind==1&&item.conditionType == 4">
|
|
|
+ <span :class="!item.isPassed&&item.maxScore==0?'color-A':(!item.isPassed&&item.maxScore>0?'color-B':(item.isPassed?'color-C':''))">{{!item.isPassed&&item.maxScore==0?'未开始':(!item.isPassed&&item.maxScore>0?'未通过':(item.isPassed?'已通过':''))}}</span>
|
|
|
+ <span style="margin-left:20px;">{{item.maxScore>0?'成绩:'+item.maxScore+'分':''}}</span>
|
|
|
+ </p>
|
|
|
</div>
|
|
|
<div class="bottom-content-box scrollbar-box">
|
|
|
- <div class="bottom-big-box-4" v-if="item.needStudy">
|
|
|
- <p>学时要求</p>
|
|
|
- <p class="colorA" @click="tableButton(1,item)">开始学习</p>
|
|
|
+ <div class="bottom-big-box-4">
|
|
|
+ <p :class="item.completedStudyHours<item.studyHoursRequirement?'text-name':''">学时要求</p>
|
|
|
+ <p class="colorA" v-if="item.needStudy" @click="tableButton(1,item)">开始学习</p>
|
|
|
+ <p class="position-p-1" v-if="item.completedStudyHours<item.studyHoursRequirement">{{item.completedStudyHours}} / {{item.studyHoursRequirement}}</p>
|
|
|
+ <p class="text-type" v-if="item.completedStudyHours>=item.studyHoursRequirement">已达标</p>
|
|
|
</div>
|
|
|
<div class="bottom-big-box-4" v-if="item.examStudy">
|
|
|
<p>考前学习</p>
|
|
|
@@ -82,6 +91,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import { Encrypt,Decrypt} from '@/utils/secret'
|
|
|
import {
|
|
|
examUserCoursewareLearningRestart,examElLabEduRelationAcademicYearProgress,
|
|
|
examUserCourseLearningList,examUserExamMockList,examUserExamList,examUserExamStart,
|
|
|
@@ -107,15 +117,15 @@ export default {
|
|
|
methods: {
|
|
|
initialization(){
|
|
|
this.examElLabEduRelationAcademicYearProgress();
|
|
|
- this.examUserCourseLearningList();
|
|
|
- this.examUserExamMockList();
|
|
|
+ // this.examUserCourseLearningList();
|
|
|
+ // this.examUserExamMockList();
|
|
|
this.examUserExamList();
|
|
|
},
|
|
|
//学习任务
|
|
|
studyTableButton(item){
|
|
|
let self = this;
|
|
|
if(item.conditionType == 1){
|
|
|
- this.$confirm('还未达到学时要求,是否现在去学习?', "警告", {
|
|
|
+ this.$confirm('还未达到学时要求,是否现在去学习?', "提示", {
|
|
|
confirmButtonText: "确认",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
@@ -142,7 +152,7 @@ export default {
|
|
|
mockTableButton(item){
|
|
|
let self = this;
|
|
|
if(item.conditionType == 1){
|
|
|
- this.$confirm('完成学时要求后解锁,是否现在去学习?', "警告", {
|
|
|
+ this.$confirm('完成学时要求后解锁,是否现在去学习?', "提示", {
|
|
|
confirmButtonText: "确认",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
@@ -155,7 +165,7 @@ export default {
|
|
|
})
|
|
|
}).catch(() => {});
|
|
|
}else if(item.conditionType == 2){
|
|
|
- this.$confirm('完成考前课程学习后解锁,是否现在去学习?', "警告", {
|
|
|
+ this.$confirm('完成考前课程学习后解锁,是否现在去学习?', "提示", {
|
|
|
confirmButtonText: "确认",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
@@ -202,9 +212,18 @@ export default {
|
|
|
let self = this;
|
|
|
if(type == 1){
|
|
|
//学时要求
|
|
|
+ let obj = {
|
|
|
+ examName:item.examName,
|
|
|
+ knowledgePointIds:item.knowledgePointIds,
|
|
|
+ completedStudyHours:item.completedStudyHours,
|
|
|
+ studyHoursRequirement:item.studyHoursRequirement,
|
|
|
+ }
|
|
|
+ let text = Encrypt(JSON.stringify(obj))
|
|
|
self.$router.push({
|
|
|
- name: 'knowledgeLearning',
|
|
|
- params: {}
|
|
|
+ path: '/safetyEducationExaminationNew/safetyEducation/knowledgeLearning',
|
|
|
+ query: {
|
|
|
+ text : text
|
|
|
+ }
|
|
|
})
|
|
|
}else if(type == 2){
|
|
|
//学习课程
|
|
|
@@ -370,7 +389,7 @@ export default {
|
|
|
p:nth-child(2){
|
|
|
font-size:14px;
|
|
|
line-height:20px;
|
|
|
- margin-top:4px;
|
|
|
+ margin-top:6px;
|
|
|
|
|
|
}
|
|
|
p:nth-child(3){
|
|
|
@@ -385,6 +404,15 @@ export default {
|
|
|
right:10px;
|
|
|
padding:0 10px;
|
|
|
}
|
|
|
+ .color-A{
|
|
|
+ color:#999;
|
|
|
+ }
|
|
|
+ .color-B{
|
|
|
+ color:#f56c6c;
|
|
|
+ }
|
|
|
+ .color-C{
|
|
|
+ color:#4fbe7e;
|
|
|
+ }
|
|
|
}
|
|
|
.bottom-content-box{
|
|
|
height:168px;
|
|
|
@@ -456,6 +484,7 @@ export default {
|
|
|
margin-bottom:12px;
|
|
|
height:68px;
|
|
|
display: flex;
|
|
|
+ position: relative;
|
|
|
p{
|
|
|
font-size:14px;
|
|
|
line-height:44px;
|
|
|
@@ -477,6 +506,19 @@ export default {
|
|
|
.colorC{
|
|
|
color:#999;
|
|
|
}
|
|
|
+ .position-p-1{
|
|
|
+ position: absolute;
|
|
|
+ bottom:0;
|
|
|
+ left:10px;
|
|
|
+ width: 60px;
|
|
|
+ text-align: center!important;
|
|
|
+ }
|
|
|
+ .text-name{
|
|
|
+ margin-top:-10px;
|
|
|
+ }
|
|
|
+ .text-type{
|
|
|
+ color: #4fbe7e;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|