提交 d69faf21 authored 作者: 王鹏飞's avatar 王鹏飞

fix: 课程考试#159,#158,#157,#154

上级 2f647ce4
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<el-radio <el-radio
v-bind:key="item1.id" v-bind:key="item1.id"
:label="item1.id" :label="item1.id"
:disabled="!!item.right_answer && !!exam.type" :disabled="isSubmited"
:class="['radio', ((item.right_answer && !!exam.type) ? (item1.id === item.right_answer ? 'success' : 'error') : '')]" :class="['radio', ((item.right_answer && !!exam.type) ? (item1.id === item.right_answer ? 'success' : 'error') : '')]"
>{{ index1 | getLetter() }}. {{item1.option}}</el-radio> >{{ index1 | getLetter() }}. {{item1.option}}</el-radio>
</template> </template>
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<el-checkbox <el-checkbox
v-bind:key="item1.id" v-bind:key="item1.id"
:label="item1.id" :label="item1.id"
:disabled="!!item.right_answer.length && !!exam.type" :disabled="isSubmited"
:class="['checkbox', ((item.right_answer.length && !!exam.type) ? (isCheckboxChecked(item1.id, item.right_answer) ? 'success' : 'error') : '')]" :class="['checkbox', ((item.right_answer.length && !!exam.type) ? (isCheckboxChecked(item1.id, item.right_answer) ? 'success' : 'error') : '')]"
>{{ index1 | getLetter() }}. {{item1.option}}</el-checkbox> >{{ index1 | getLetter() }}. {{item1.option}}</el-checkbox>
</template> </template>
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
class="q-sa-title" class="q-sa-title"
>{{question.radioList.length+question.checkboxList.length+index+1}}.&nbsp;&nbsp;简答题</div> >{{question.radioList.length+question.checkboxList.length+index+1}}.&nbsp;&nbsp;简答题</div>
<div class="edit_html" v-html="item.content || ''"></div> <div class="edit_html" v-html="item.content || ''"></div>
<v-editor v-model="item.user_answer"></v-editor> <v-editor v-model="item.user_answer" :disabled="isSubmited"></v-editor>
<div style="height: 10px;"></div> <div style="height: 10px;"></div>
<!-- 利用key值自动更新组件 --> <!-- 利用key值自动更新组件 -->
<component <component
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</div> </div>
</div> </div>
<template v-if="status.isStart"> <template v-if="status.isStart">
<div class="play-paper-content play-chapter-exam"> <div class="play-paper-content">
<template v-if="exam.id"> <template v-if="exam.id">
<div class="exam"> <div class="exam">
<!-- <div style='text-align: center;'> --> <!-- <div style='text-align: center;'> -->
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<div style="font-size: 18px;">总分:{{exam.score.total}}</div> <div style="font-size: 18px;">总分:{{exam.score.total}}</div>
</template> </template>
</template> </template>
<template v-else-if="exam.type === 1 || exam.type === 2"> <template v-else-if="exam.type === 1">
<div class="no-exam">试卷批改中,请耐心等待</div> <div class="no-exam">试卷批改中,请耐心等待</div>
</template> </template>
<!-- </div> --> <!-- </div> -->
...@@ -61,8 +61,8 @@ ...@@ -61,8 +61,8 @@
<el-radio <el-radio
v-bind:key="item1.id" v-bind:key="item1.id"
:label="item1.id" :label="item1.id"
:disabled="!!item.right_answer && !!exam.type" :disabled="isSubmited"
:class="['radio', ((item.right_answer && !!exam.type) ? (item1.id === item.right_answer ? 'success' : 'error') : '')]" :class="['radio', ((item.right_answer) ? (item1.id === item.right_answer ? 'success' : 'error') : '')]"
>{{ index1 | getLetter() }}. {{item1.option}}</el-radio> >{{ index1 | getLetter() }}. {{item1.option}}</el-radio>
</template> </template>
</el-radio-group> </el-radio-group>
...@@ -94,8 +94,8 @@ ...@@ -94,8 +94,8 @@
<el-checkbox <el-checkbox
v-bind:key="item1.id" v-bind:key="item1.id"
:label="item1.id" :label="item1.id"
:disabled="!!item.right_answer.length && !!exam.type" :disabled="isSubmited"
:class="['checkbox', ((item.right_answer.length && !!exam.type) ? (isCheckboxChecked(item1.id, item.right_answer) ? 'success' : 'error') : '')]" :class="['checkbox', ((item.right_answer.length) ? (isCheckboxChecked(item1.id, item.right_answer) ? 'success' : 'error') : '')]"
>{{ index1 | getLetter() }}. {{item1.option}}</el-checkbox> >{{ index1 | getLetter() }}. {{item1.option}}</el-checkbox>
</template> </template>
</el-checkbox-group> </el-checkbox-group>
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
class="q-sa-title" class="q-sa-title"
>{{question.radioList.length+question.checkboxList.length+index+1}}.&nbsp;&nbsp;简答题</div> >{{question.radioList.length+question.checkboxList.length+index+1}}.&nbsp;&nbsp;简答题</div>
<div class="edit_html" v-html="item.content || ''"></div> <div class="edit_html" v-html="item.content || ''"></div>
<v-editor v-model="item.user_answer"></v-editor> <v-editor v-model="item.user_answer" :disabled="isSubmited"></v-editor>
<div style="height: 10px;"></div> <div style="height: 10px;"></div>
<!-- 利用key值自动更新组件 --> <!-- 利用key值自动更新组件 -->
<component <component
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论