Commit 9edfa67b authored by 刘怀志's avatar 刘怀志

72039 【PC端】考核结果显示中的问答题部分,需要按照最新原型修改

parent 1c027f1d
......@@ -59,7 +59,7 @@
<li
v-for="item in exeOptions"
:class="{
rightLabel: isFinish && item.type == exeQAnswer && isFalse === '0'
rightLabel: isFinish && item.type == exeQAnswer && (isFalse === '0' || isUnitView)
}"
>
<label class="text-label">
......@@ -72,7 +72,7 @@
{{ item.type }}. {{ item.details }}
</div>
<span
v-if="isFinish && item.type == exeQAnswer && isFalse === '0'"
v-if="isFinish && item.type == exeQAnswer && (isFalse === '0' || isUnitView)"
class="answerText"
>正确答案</span>
</label>
......@@ -89,7 +89,7 @@
rightLabel:
isFinish &&
exeQAnswer.indexOf(item.type) != -1 &&
isFalse === '0',
(isFalse === '0' || isUnitView),
options: true,
multOPtions: true,
blueCheck: isFinish
......@@ -102,7 +102,7 @@
v-if="
isFinish &&
exeQAnswer.indexOf(item.type) != -1 &&
isFalse === '0'
(isFalse === '0' || isUnitView)
"
class="answerText"
>正确答案</span>
......@@ -116,7 +116,7 @@
>
<li
:class="{
rightLabel: isFinish && '1' == exeQAnswer && isFalse === '0'
rightLabel: isFinish && ('1' == exeQAnswer || '对' == exeQAnswer) && (isFalse === '0' || isUnitView)
}"
>
<label class="text-label">
......@@ -125,13 +125,13 @@
正确
</div>
<span
v-if="isFinish && '1' == exeQAnswer && isFalse === '0'"
v-if="isFinish && ('1' == exeQAnswer || '对' == exeQAnswer) && (isFalse === '0' || isUnitView)"
class="answerText"
>正确答案</span></label>
</li>
<li
:class="{
rightLabel: isFinish && '0' == exeQAnswer && isFalse === '0'
rightLabel: isFinish && ('0' == exeQAnswer || '错' == exeQAnswer) && (isFalse === '0' || isUnitView)
}"
>
<label class="text-label">
......@@ -140,7 +140,7 @@
错误
</div>
<span
v-if="isFinish && '0' == exeQAnswer"
v-if="isFinish && ('0' == exeQAnswer || '错' == exeQAnswer) && (isFalse === '0' || isUnitView)"
class="answerText"
>正确答案</span></label>
</li>
......@@ -149,7 +149,7 @@
<li>
<label
:class="{
rightLabel: isFinish && isFalse === '0',
rightLabel: isFinish && (isFalse === '0' || isUnitView),
errorLabel: isFinish && isFalse !== '0'
}"
>
......@@ -160,9 +160,9 @@
:rows="5"
/>
<span
v-if="isFinish && '1' == exeQAnswer"
v-if="isFinish && (isFalse === '0' || isUnitView)"
class="answerText"
>正确答案</span>
>正确答案: {{exeQAnswer}}</span>
</label>
</li>
</ul>
......@@ -187,6 +187,7 @@ export default {
'isFinish',
'score',
'isFalse',
'isUnitView',
'getscore',
'black',
'sbumitFinish'
......@@ -410,7 +411,7 @@ export default {
margin: 8px 0;
}
.multText{
color: #292929;
color: #ffffff;
}
}
.exe-answer,
......
......@@ -13,6 +13,7 @@
正在播放第&nbsp;{{ currentChapter.index + '-' + (currentSection.sort) }}&nbsp;&nbsp;&nbsp;&nbsp;{{ currentSection.chapterName || '章节名称' }}
</div>
<div class="lession-download">
<div v-show="showCheck" class="checkSubmit" @click="getAnswer">查看考核内容</div>
课程资料下载:
<img class="zip-img" :src="yasuobao" @click="zipShow">
</div>
......@@ -35,14 +36,14 @@
<div v-if="isExam" class="title-area">
<div class="title-area-left">
<div class="lession-name-exam">{{ lessionName }}
<img :src="kezi_icon_jiantouhui" />
<img :src="kezi_icon_jiantouhui">
考核区 </div>
<div class="title-right-exam">
<div v-show="!unitView" class="title-right-exam">
<img class="rate-img" :src="tishi">
本课程不支持重复考核,仅可以参与一次
</div>
</div>
<div v-show="startExam === 4" class="title-area-right" @click="startExam = 3">
<div v-show="startExam === 4 && !unitView" class="title-area-right" @click="startExam = 3">
<img :src="kezi_icon_fanhui">
返回
</div>
......@@ -117,6 +118,7 @@
<edu-exe
:id="'s'+index"
:is-finish="startExam === 4"
:is-unit-view="unitView"
:exe-index="index+1"
:exe-subject="item.questionStem"
:exe-type="views[item.questionType-1]"
......@@ -384,6 +386,7 @@ export default {
},
data() {
return {
unitView: false,
kezi_icon_jiantouhui,
roleKey: '',
kezi_icon_fanhui,
......@@ -573,6 +576,13 @@ export default {
},
computed: {
...mapGetters(['userId', 'roles']),
showCheck() {
const roleKey = this.roles[0] ? this.roles[0].roleKey : null
if (roleKey && roleKey === 'unit_admin') {
return true
}
return false
},
// 动态获得各个分类题目
ssList() {
return (type) => {
......@@ -648,6 +658,13 @@ export default {
// this.courseBusinessId = this.$route.query.courseBusinessId
// },
methods: {
// 单位管理员直接获取答案试卷
getAnswer() {
this.isExam = true
this.startExam = 4
this.unitView = true
this.examInit()
},
goExam() {
console.log('go')
this.sucessDialog = false
......@@ -1429,6 +1446,7 @@ export default {
justify-content: space-between;
.title-area-left{
display: flex;
align-items: center;
}
.title-area-right{
display: flex;
......@@ -1460,6 +1478,20 @@ export default {
.zip-img{
cursor: pointer;
}
.checkSubmit{
width: 120px;
height: 44px;
background: linear-gradient(90deg,#3683fc, #5be6fc 100%);
border-radius: 8px;
font-size: 16px;
font-family: Source Han Sans CN, Source Han Sans CN-400;
font-weight: 400;
color: #ffffff;
line-height: 44px;
text-align: center;
cursor: pointer;
margin-right: 20px;
}
}
}
.title-right-exam{
......@@ -1488,6 +1520,8 @@ export default {
text-align: LEFT;
color: #ffffff;
line-height: 23px;
display: flex;
align-items: center;
}
.play-title{
padding: 0 24px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment