Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-learn
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-learn
Commits
5e6b1f26
提交
5e6b1f26
authored
10月 22, 2021
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug fixes
上级
10c4fab5
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
21 行增加
和
2 行删除
+21
-2
examCard.vue
src/components/exam/examCard.vue
+8
-1
questionListItem.vue
src/components/exam/questionListItem.vue
+5
-0
questionDetails.vue
src/pages/exam/myExam/questionDetails.vue
+8
-1
没有找到文件。
src/components/exam/examCard.vue
浏览文件 @
5e6b1f26
...
@@ -198,6 +198,7 @@ export default {
...
@@ -198,6 +198,7 @@ export default {
showResult
()
{
showResult
()
{
this
.
hasResult
=
true
this
.
hasResult
=
true
this
.
questionGroups
[
this
.
currentPage
].
hasResult
=
true
this
.
questionGroups
[
this
.
currentPage
].
hasResult
=
true
this
.
$emit
(
'primary'
,
this
.
currentGroupPage
,
this
.
questionGroups
)
},
},
// 上一大题
// 上一大题
prev
()
{
prev
()
{
...
@@ -309,7 +310,13 @@ export default {
...
@@ -309,7 +310,13 @@ export default {
}
}
}
}
}
}
return
{
...{
comment_visible
:
false
},
...
scoreItem
,
...
item
,
user_answer
:
userAnswers
,
sign
}
return
{
...{
comment_visible
:
false
,
result_visible
:
false
},
...
scoreItem
,
...
item
,
user_answer
:
userAnswers
,
sign
}
})
})
result
.
push
(
Object
.
assign
({},
question
,
{
question_list
:
list
}))
result
.
push
(
Object
.
assign
({},
question
,
{
question_list
:
list
}))
})
})
...
...
src/components/exam/questionListItem.vue
浏览文件 @
5e6b1f26
...
@@ -169,6 +169,11 @@ export default {
...
@@ -169,6 +169,11 @@ export default {
}
}
.question-option-item
{
.question-option-item
{
margin-top
:
20px
;
margin-top
:
20px
;
::v-deep
.el-radio
,
::v-deep
.el-checkbox
{
display
:
flex
;
align-items
:
center
;
}
}
}
.question-option-item__text
{
.question-option-item__text
{
display
:
inline-block
;
display
:
inline-block
;
...
...
src/pages/exam/myExam/questionDetails.vue
浏览文件 @
5e6b1f26
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
@
submit=
"handleSubmit"
@
submit=
"handleSubmit"
@
page-change=
"handlePageChange"
@
page-change=
"handlePageChange"
@
delete=
"deleteQuestion"
@
delete=
"deleteQuestion"
@
primary=
"handlePrimary"
ref=
"exam"
ref=
"exam"
v-loading=
"loading"
v-loading=
"loading"
>
>
...
@@ -143,6 +144,12 @@ export default {
...
@@ -143,6 +144,12 @@ export default {
})
})
})
})
},
},
// 确认答案
handlePrimary
(
data
,
groups
)
{
this
.
cacheQuestion
(
this
.
genSubmitData
(
groups
)).
then
(()
=>
{
this
.
getAllQuestion
()
})
},
// 翻页
// 翻页
handlePageChange
(
index
,
data
,
groups
)
{
handlePageChange
(
index
,
data
,
groups
)
{
const
page
=
parseInt
((
index
-
1
)
/
this
.
pageSize
)
const
page
=
parseInt
((
index
-
1
)
/
this
.
pageSize
)
...
@@ -153,7 +160,7 @@ export default {
...
@@ -153,7 +160,7 @@ export default {
this
.
cacheQuestion
(
this
.
genSubmitData
(
groups
))
this
.
cacheQuestion
(
this
.
genSubmitData
(
groups
))
},
},
cacheQuestion
(
param
,
callback
)
{
cacheQuestion
(
param
,
callback
)
{
api
.
setMyCache
(
param
).
then
(
response
=>
{
return
api
.
setMyCache
(
param
).
then
(
response
=>
{
callback
&&
callback
()
callback
&&
callback
()
})
})
},
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论