|
|
@@ -16,7 +16,7 @@
|
|
|
<div class="progress-box">
|
|
|
<p class="progress-title-box">学习进度</p>
|
|
|
<div class="progress-min-box">
|
|
|
- <el-progress :stroke-width="12" :percentage="newData.coursewares[0].progress?newData.coursewares[0].progress:0"></el-progress>
|
|
|
+ <el-progress :stroke-width="12" :percentage="newData.progress?newData.progress:0"></el-progress>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="learning-for-max-big-box scrollbar-box">
|
|
|
@@ -26,7 +26,7 @@
|
|
|
:class="checkLearningIndex == index ?'check-for-box':''">
|
|
|
<p>{{item.coursewareName}}</p>
|
|
|
<p>已学习:{{formatTime(item.learnedDuration)}} / {{formatTime(item.minLearningDuration)}}</p>
|
|
|
- <p :class="item.learnStatus ==2 ?'colorA':''">{{item.learnStatus==2?'已学完':'未学完'}}</p>
|
|
|
+ <p :class="item.learnStatus ==2 ?'colorA':(item.learnStatus ==1 ?'colorB':'')">{{item.learnStatus==2?'已学完':(item.learnStatus==1?'学习中':'未学完')}}</p>
|
|
|
</div>
|
|
|
<p class="for-button" @click="finishStudying(index)"
|
|
|
v-if="item.learnStatus != 2 && item.learnedDuration == item.minLearningDuration && checkLearningIndex == index">
|
|
|
@@ -82,72 +82,72 @@
|
|
|
totalCoursewareCount:0,
|
|
|
progress:0,
|
|
|
coursewares:[
|
|
|
- {
|
|
|
- coursewareName:'视频课件名称',
|
|
|
- listData2:1,
|
|
|
- learnedDuration:590,
|
|
|
- minLearningDuration:600,
|
|
|
- learnStatus:2,
|
|
|
- attachmentPath:'http://192.168.1.8/statics/bigFile/20260801/0731dbcb-622b-4468-ade2-e20820b122eb.mp4',
|
|
|
- attachmentType:'mp4',
|
|
|
- materialType:'1',
|
|
|
- articleContent:'',
|
|
|
- },
|
|
|
- {
|
|
|
- coursewareName:'docx课件名称',
|
|
|
- listData2:1,
|
|
|
- learnedDuration:600,
|
|
|
- minLearningDuration:600,
|
|
|
- learnStatus:0,
|
|
|
- attachmentPath:'http://192.168.1.8/statics/2026/08/01/b68f1b1d-99ea-44e0-94b5-4bad4ac3ff1f.docx',
|
|
|
- attachmentType:'.docx',
|
|
|
- materialType:'3',
|
|
|
- articleContent:'',
|
|
|
- },
|
|
|
- {
|
|
|
- coursewareName:'xlsx课件名称',
|
|
|
- listData2:1,
|
|
|
- learnedDuration:600,
|
|
|
- minLearningDuration:600,
|
|
|
- learnStatus:1,
|
|
|
- attachmentPath:'http://192.168.1.8/statics/2026/08/01/270eb79e-627b-4fdf-9f1a-397bd9784d39.xlsx',
|
|
|
- attachmentType:'.xlsx',
|
|
|
- materialType:'3',
|
|
|
- articleContent:'',
|
|
|
- },
|
|
|
- {
|
|
|
- coursewareName:'pdf课件名称',
|
|
|
- listData2:1,
|
|
|
- learnedDuration:600,
|
|
|
- minLearningDuration:600,
|
|
|
- learnStatus:1,
|
|
|
- attachmentPath:'http://192.168.1.8/statics/2026/08/01/b251bd69-120c-48d5-b662-c28e308cd61b.pdf',
|
|
|
- attachmentType:'.pdf',
|
|
|
- materialType:'3',
|
|
|
- articleContent:'',
|
|
|
- },
|
|
|
- {
|
|
|
- coursewareName:'富文本课件名称',
|
|
|
- listData2:1,
|
|
|
- learnedDuration:600,
|
|
|
- minLearningDuration:600,
|
|
|
- learnStatus:1,
|
|
|
- attachmentPath:'',
|
|
|
- attachmentType:'',
|
|
|
- materialType:'4',
|
|
|
- articleContent:"<p><img style=\"max-width: 100%;\" src=\"../statics/2026/08/01/e2788e82-745c-4b49-82e0-ebb6f2a30713.jpeg\" alt=\"1.jpeg\"> </p>"
|
|
|
- },
|
|
|
- {
|
|
|
- coursewareName:'xlsx课件名称',
|
|
|
- listData2:1,
|
|
|
- learnedDuration:600,
|
|
|
- minLearningDuration:600,
|
|
|
- learnStatus:1,
|
|
|
- attachmentPath:'http://192.168.1.8/statics/2026/08/01/270eb79e-627b-4fdf-9f1a-397bd9784d39.xlsx',
|
|
|
- attachmentType:'.xlsx',
|
|
|
- materialType:'3',
|
|
|
- articleContent:'',
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // coursewareName:'视频课件名称',
|
|
|
+ // listData2:1,
|
|
|
+ // learnedDuration:590,
|
|
|
+ // minLearningDuration:600,
|
|
|
+ // learnStatus:2,
|
|
|
+ // attachmentPath:'http://192.168.1.8/statics/bigFile/20260801/0731dbcb-622b-4468-ade2-e20820b122eb.mp4',
|
|
|
+ // attachmentType:'mp4',
|
|
|
+ // materialType:'1',
|
|
|
+ // articleContent:'',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // coursewareName:'docx课件名称',
|
|
|
+ // listData2:1,
|
|
|
+ // learnedDuration:600,
|
|
|
+ // minLearningDuration:600,
|
|
|
+ // learnStatus:0,
|
|
|
+ // attachmentPath:'http://192.168.1.8/statics/2026/08/01/b68f1b1d-99ea-44e0-94b5-4bad4ac3ff1f.docx',
|
|
|
+ // attachmentType:'.docx',
|
|
|
+ // materialType:'3',
|
|
|
+ // articleContent:'',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // coursewareName:'xlsx课件名称',
|
|
|
+ // listData2:1,
|
|
|
+ // learnedDuration:600,
|
|
|
+ // minLearningDuration:600,
|
|
|
+ // learnStatus:1,
|
|
|
+ // attachmentPath:'http://192.168.1.8/statics/2026/08/01/270eb79e-627b-4fdf-9f1a-397bd9784d39.xlsx',
|
|
|
+ // attachmentType:'.xlsx',
|
|
|
+ // materialType:'3',
|
|
|
+ // articleContent:'',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // coursewareName:'pdf课件名称',
|
|
|
+ // listData2:1,
|
|
|
+ // learnedDuration:600,
|
|
|
+ // minLearningDuration:600,
|
|
|
+ // learnStatus:1,
|
|
|
+ // attachmentPath:'http://192.168.1.8/statics/2026/08/01/b251bd69-120c-48d5-b662-c28e308cd61b.pdf',
|
|
|
+ // attachmentType:'.pdf',
|
|
|
+ // materialType:'3',
|
|
|
+ // articleContent:'',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // coursewareName:'富文本课件名称',
|
|
|
+ // listData2:1,
|
|
|
+ // learnedDuration:600,
|
|
|
+ // minLearningDuration:600,
|
|
|
+ // learnStatus:1,
|
|
|
+ // attachmentPath:'',
|
|
|
+ // attachmentType:'',
|
|
|
+ // materialType:'4',
|
|
|
+ // articleContent:"<p><img style=\"max-width: 100%;\" src=\"../statics/2026/08/01/e2788e82-745c-4b49-82e0-ebb6f2a30713.jpeg\" alt=\"1.jpeg\"> </p>"
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // coursewareName:'xlsx课件名称',
|
|
|
+ // listData2:1,
|
|
|
+ // learnedDuration:600,
|
|
|
+ // minLearningDuration:600,
|
|
|
+ // learnStatus:1,
|
|
|
+ // attachmentPath:'http://192.168.1.8/statics/2026/08/01/270eb79e-627b-4fdf-9f1a-397bd9784d39.xlsx',
|
|
|
+ // attachmentType:'.xlsx',
|
|
|
+ // materialType:'3',
|
|
|
+ // articleContent:'',
|
|
|
+ // },
|
|
|
],
|
|
|
},
|
|
|
//当前选中
|
|
|
@@ -264,6 +264,9 @@
|
|
|
url = this.newData.coursewares[index].articleContent;
|
|
|
}
|
|
|
this.$refs['coursewareComponent'].initialize(name,url,type);
|
|
|
+ if(this.newData.coursewares[this.checkLearningIndex].learnStatus == 0){
|
|
|
+ this.$set(this.newData.coursewares[this.checkLearningIndex],'learnStatus',1);
|
|
|
+ }
|
|
|
},
|
|
|
//学习完成
|
|
|
examUserCoursewareLearningConfirmCompletion(){
|
|
|
@@ -527,7 +530,7 @@
|
|
|
position: absolute;
|
|
|
bottom: 16px;
|
|
|
right: 16px;
|
|
|
- color:#fff!important;
|
|
|
+ color:#fff;
|
|
|
background-color: #999;
|
|
|
border-radius:4px;
|
|
|
width:60px;
|
|
|
@@ -536,6 +539,12 @@
|
|
|
}
|
|
|
.colorA{
|
|
|
background-color: #0183fa!important;
|
|
|
+ color:#fff!important;
|
|
|
+ }
|
|
|
+ .colorB{
|
|
|
+ background-color: #fff!important;
|
|
|
+ border:1px solid #0183fa!important;
|
|
|
+ color:#0183fa!important;
|
|
|
}
|
|
|
}
|
|
|
.for-button{
|