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

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

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