Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
d69faf21
提交
d69faf21
authored
5月 29, 2020
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 课程考试#159,#158,#157,#154
上级
2f647ce4
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
10 行增加
和
10 行删除
+10
-10
chapterExam2.vue
client/src/pages/player/chapterExam/chapterExam2.vue
+3
-3
exam.vue
client/src/pages/player/exam/exam.vue
+7
-7
没有找到文件。
client/src/pages/player/chapterExam/chapterExam2.vue
浏览文件 @
d69faf21
...
@@ -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
}}
.
简答题
</div>
>
{{
question
.
radioList
.
length
+
question
.
checkboxList
.
length
+
index
+
1
}}
.
简答题
</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
...
...
client/src/pages/player/exam/exam.vue
浏览文件 @
d69faf21
...
@@ -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
}}
.
简答题
</div>
>
{{
question
.
radioList
.
length
+
question
.
checkboxList
.
length
+
index
+
1
}}
.
简答题
</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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论