考试学习状态修改

This commit is contained in:
zhangsir
2024-05-09 13:27:49 +08:00
parent b4be42034b
commit 37544bea60

View File

@@ -192,7 +192,7 @@
</el-table-column>-->
<el-table-column label="学习人员" width="110">
<template slot-scope="scope">
<el-button size="mini" type="info" @click="getCatalogue(scope.row)" >学习人员</el-button>
<el-button size="mini" type="info" @click="getCatalogue(scope.row,scope.row.contentName)" >学习人员</el-button>
</template>
</el-table-column>
</el-table>
@@ -260,13 +260,13 @@
</el-table-column>
<el-table-column prop="status" label="状态">
<template slot-scope="scope">
<span>{{scope.row.status == 9? '已完成':'未开始'}}</span>
<span>{{scope.row.contentName.split('--')[1]!=='考试'?scope.row.status == 9? '已完成':'未开始':scope.row.status == 9? '已完成':scope.row.status == 2?'进行中':'未开始'}}</span>
</template>
</el-table-column>
<el-table-column prop="duration" label="进度">
<template slot-scope="scope">
<!-- {{scope.row.studyDuration == 0?'0':scope.row.studyDuration/60}}-->
{{scope.row.studyDuration}}
{{scope.row.contentName.split('--')[1]!=='考试'?scope.row.studyDuration:''}}
</template>
</el-table-column>
</el-table>
@@ -297,7 +297,7 @@
<el-table-column prop="finishTime" label="完成时间" width="180"></el-table-column>
<el-table-column label="状态" width="100">
<template slot-scope="scope">
{{scope.row.progress}}%
{{!typePress?scope.row.progress+'%':scope.row.status==9?'已完成':scope.row.status==2?'进行中':'未开始'}}
</template>
</el-table-column>
</el-table>
@@ -346,6 +346,7 @@ export default {
},
data() {
return {
typePress: false,
catalogRecordTree:[],
catalogRecordList:[],
resOwnerListMap:[],
@@ -693,7 +694,12 @@ export default {
this.study.pageIndex = val;
this.getSignupList();
},
getCatalogue(row) {
getCatalogue(row,type) {
if(type=='考试'){
this.typePress = true
}else{
this.typePress = false
}
this.contentId = row.id;
this.study.catalogueShow = true;
this.learningSituation.pageIndex = 1;//重置为第一页