Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
transport-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
transport-show-h5
Commits
b50e77de
提交
b50e77de
authored
8月 13, 2020
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改正确选项样式
上级
43e94c41
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
68 行增加
和
8 行删除
+68
-8
ExamTopic.vue
src/modules/exam-module/src/ExamTopic.vue
+60
-6
questionsDetails.vue
src/pages/my/questionsDetails.vue
+8
-2
没有找到文件。
src/modules/exam-module/src/ExamTopic.vue
浏览文件 @
b50e77de
...
...
@@ -29,22 +29,70 @@
<ul
class=
"option"
v-if=
"item.type === '1' || item.type === '6' || item.type === '5' && dItem.answer_count
<
=
1
"
>
<template
v-for=
"(opt, oIndex) in dItem.question_options"
>
<template
v-if=
"requestData2 != 0 && requestData[item.id]"
>
<li
:key=
"oIndex"
v-if=
"requestData[item.id][dItem.id]"
:class=
"dItem.answerOpt.find(cla =>
{ return cla == opaKey[oIndex] })
&&
(isAnalysis || $route.query.id) ? 'active2' : requestData[item.id][dItem.id].answer.find(res => { return res === opt.id }) ? 'active' : ''" @click="selectRadio(dItem, opt.id, oIndex, item)" :data-id="opt.id">
{{
opaKey
[
oIndex
]
}}
.
{{
opt
.
option
}}
</li>
<li
:key=
"oIndex"
v-else
:class=
"dItem.answerOpt.find(cla =>
{ return cla == opaKey[oIndex] })
&&
(isAnalysis || $route.query.id) ? 'active2' : dItem.activeIndex == oIndex ? 'active' : ''" @click="selectRadio(dItem, opt.id, oIndex, item)" :data-id="opt.id">
{{
opaKey
[
oIndex
]
}}
.
{{
opt
.
option
}}
</li>
<li
:key=
"oIndex"
v-if=
"requestData[item.id][dItem.id]"
:class=
"dItem.answerOpt.find(cla =>
{ return cla == opaKey[oIndex] })
&&
(isAnalysis || $route.query.id) ? 'active2' : requestData[item.id][dItem.id].answer.find(res => { return res === opt.id }) ? 'active' : ''" @click="selectRadio(dItem, opt.id, oIndex, item)" :data-id="opt.id">
<van-icon
v-if=
"dItem.answerOpt.find(cla =>
{ return cla == opaKey[oIndex] })
&&
(isAnalysis || $route.query.id)" class="icon" name="checked"/>
<div>
<span
v-if=
"!(dItem.answerOpt.find(cla =>
{ return cla == opaKey[oIndex] })
&&
(isAnalysis || $route.query.id))">
{{
opaKey
[
oIndex
]
}}
.
</span>
{{
opt
.
option
}}
</div>
</li>
<li
:key=
"oIndex"
v-else
:class=
"dItem.answerOpt.find(cla =>
{ return cla == opaKey[oIndex] })
&&
(isAnalysis || $route.query.id) ? 'active2' : dItem.activeIndex == oIndex ? 'active' : ''" @click="selectRadio(dItem, opt.id, oIndex, item)" :data-id="opt.id">
<van-icon
v-if=
"dItem.answerOpt.find(cla =>
{ return cla == opaKey[oIndex] })
&&
(isAnalysis || $route.query.id)" class="icon" name="checked"/>
<div>
<span
v-if=
"!(dItem.answerOpt.find(cla =>
{ return cla == opaKey[oIndex] })
&&
(isAnalysis || $route.query.id))">
{{
opaKey
[
oIndex
]
}}
.
</span>
{{
opt
.
option
}}
</div>
</li>
</
template
>
<
template
v-else
>
<li
:key=
"oIndex"
:class=
"dItem.answerOpt.find(cla =>
{ return cla == opaKey[oIndex] })
&&
(isAnalysis || $route.query.id) ? 'active2' : dItem.activeIndex == oIndex ? 'active' : ''" @click="selectRadio(dItem, opt.id, oIndex, item)" :data-id="opt.id">
{{
opaKey
[
oIndex
]
}}
.
{{
opt
.
option
}}
</li>
<li
:key=
"oIndex"
:class=
"dItem.answerOpt.find(cla =>
{ return cla == opaKey[oIndex] })
&&
(isAnalysis || $route.query.id) ? 'active2' : dItem.activeIndex == oIndex ? 'active' : ''" @click="selectRadio(dItem, opt.id, oIndex, item)" :data-id="opt.id">
<van-icon
v-if=
"dItem.answerOpt.find(cla =>
{ return cla == opaKey[oIndex] })
&&
(isAnalysis || $route.query.id)" class="icon" name="checked"/>
<div>
<span
v-if=
"!(dItem.answerOpt.find(cla =>
{ return cla == opaKey[oIndex] })
&&
(isAnalysis || $route.query.id))">
{{
opaKey
[
oIndex
]
}}
.
</span>
{{
opt
.
option
}}
</div>
</li>
</
template
>
</template>
</ul>
<ul
class=
"option"
v-if=
"item.type === '2' || item.type === '5' && dItem.answer_count > 1"
>
<
template
v-for=
"(opt, oIndex) in dItem.question_options"
>
<template
v-if=
"requestData2 != 0 && requestData[item.id]"
>
<li
:key=
"oIndex+'-'"
v-if=
"requestData[item.id][dItem.id]"
:class=
"dItem.answerOpt.find(cla =>
{ return cla == opaKey[oIndex] })
&&
(isAnalysis || $route.query.id) ? 'active2' : opt.active ? 'active' : ''" @click="selectCheckbox(opt, opt.id, dItem, item, oIndex)" :data-id="opt.id">
{{
opaKey
[
oIndex
]
}}
.
{{
opt
.
option
}}
</li>
<li
:key=
"oIndex+'-'"
v-else
:class=
"dItem.answerOpt.find(cla =>
{ return cla == opaKey[oIndex] })
&&
(isAnalysis || $route.query.id) ? 'active2' :opt.active ? 'active' : ''" @click="selectCheckbox(opt, opt.id, dItem, item, oIndex)" :data-id="opt.id">
{{
opaKey
[
oIndex
]
}}
.
{{
opt
.
option
}}
</li>
<li
:key=
"oIndex+'-'"
v-if=
"requestData[item.id][dItem.id]"
:class=
"dItem.answerOpt.find(cla =>
{ return cla == opaKey[oIndex] })
&&
(isAnalysis || $route.query.id) ? 'active2' : opt.active ? 'active' : ''" @click="selectCheckbox(opt, opt.id, dItem, item, oIndex)" :data-id="opt.id">
<van-icon
v-if=
"dItem.answerOpt.find(cla =>
{ return cla == opaKey[oIndex] })
&&
(isAnalysis || $route.query.id)" class="icon" name="checked"/>
<div>
<span
v-if=
"!(dItem.answerOpt.find(cla =>
{ return cla == opaKey[oIndex] })
&&
(isAnalysis || $route.query.id))">
{{
opaKey
[
oIndex
]
}}
.
</span>
{{
opt
.
option
}}
</div>
</li>
<li
:key=
"oIndex+'-'"
v-else
:class=
"dItem.answerOpt.find(cla =>
{ return cla == opaKey[oIndex] })
&&
(isAnalysis || $route.query.id) ? 'active2' :opt.active ? 'active' : ''" @click="selectCheckbox(opt, opt.id, dItem, item, oIndex)" :data-id="opt.id">
<van-icon
v-if=
"dItem.answerOpt.find(cla =>
{ return cla == opaKey[oIndex] })
&&
(isAnalysis || $route.query.id)" class="icon" name="checked"/>
<div>
<span
v-if=
"!(dItem.answerOpt.find(cla =>
{ return cla == opaKey[oIndex] })
&&
(isAnalysis || $route.query.id))">
{{
opaKey
[
oIndex
]
}}
.
</span>
{{
opt
.
option
}}
</div>
</li>
</
template
>
<
template
v-else
>
<li
:key=
"oIndex+'-'"
:class=
"dItem.answerOpt.find(cla =>
{ return cla == opaKey[oIndex] })
&&
(isAnalysis || $route.query.id) ? 'active2' :opt.active ? 'active' : ''" @click="selectCheckbox(opt, opt.id, dItem, item, oIndex)" :data-id="opt.id">
{{
opaKey
[
oIndex
]
}}
.
{{
opt
.
option
}}
</li>
<li
:key=
"oIndex+'-'"
:class=
"dItem.answerOpt.find(cla =>
{ return cla == opaKey[oIndex] })
&&
(isAnalysis || $route.query.id) ? 'active2' :opt.active ? 'active' : ''" @click="selectCheckbox(opt, opt.id, dItem, item, oIndex)" :data-id="opt.id">
<van-icon
v-if=
"dItem.answerOpt.find(cla =>
{ return cla == opaKey[oIndex] })
&&
(isAnalysis || $route.query.id)" class="icon" name="checked"/>
<div>
<span
v-if=
"!(dItem.answerOpt.find(cla =>
{ return cla == opaKey[oIndex] })
&&
(isAnalysis || $route.query.id))">
{{
opaKey
[
oIndex
]
}}
.
</span>
{{
opt
.
option
}}
</div>
</li>
</
template
>
</template>
</ul>
...
...
@@ -836,6 +884,12 @@ export default {
padding
:
.35rem
.2rem
;
margin-bottom
:
.2rem
;
word-wrap
:break-word
;
display
:
flex
;
align-items
:
center
;
.icon
{
margin-right
:
0
.1rem
;
color
:
#5CB9A2
;
}
}
.active
{
color
:
#5F95DE
;
...
...
src/pages/my/questionsDetails.vue
浏览文件 @
b50e77de
...
...
@@ -36,7 +36,10 @@
: ''"
>
<van-icon
class=
"icon"
name=
"checked"
v-if=
"item.user_answer.length != 0 && item.question_answer.find(id =>
{ return id === opt.id })"/>
<div>
{{
A_Z
[
optIndex
]
}}
.
{{
opt
.
option
}}
</div>
<div>
<span
v-if=
"!(item.user_answer.length != 0 && item.question_answer.find(id =>
{ return id === opt.id }))">
{{
A_Z
[
optIndex
]
}}
.
</span>
{{
opt
.
option
}}
</div>
</li>
<li
v-else
...
...
@@ -49,7 +52,10 @@
: ''"
>
<van-icon
class=
"icon"
name=
"checked"
v-if=
"item.user_answer.length != 0 && item.question_answer.find(id =>
{ return id === opt.id })"/>
<div>
{{
A_Z
[
optIndex
]
}}
.
{{
opt
.
option
}}
</div>
<div>
<span
v-if=
"!(item.question_answer.find(id =>
{ return id === opt.id }))">
{{
A_Z
[
optIndex
]
}}
.
</span>
{{
opt
.
option
}}
</div>
</li>
</
template
>
</ul>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论