Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-learn
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-learn
Commits
48dbc0d1
提交
48dbc0d1
authored
12月 07, 2020
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改bug
上级
00c84d7d
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
14 行增加
和
11 行删除
+14
-11
resultCard.vue
src/pages/exam/components/resultCard.vue
+8
-7
result.vue
src/pages/exam/testExam/exam/result.vue
+6
-4
没有找到文件。
src/pages/exam/components/resultCard.vue
浏览文件 @
48dbc0d1
...
@@ -48,7 +48,14 @@ export default {
...
@@ -48,7 +48,14 @@ export default {
isClass
()
{
isClass
()
{
return
(
id
,
cId
)
=>
{
return
(
id
,
cId
)
=>
{
const
findItems
=
this
.
data
.
answers
[
id
]
const
findItems
=
this
.
data
.
answers
[
id
]
const
scoreItems
=
this
.
data
.
score_items
[
id
][
cId
]
const
scoreItems
=
this
.
data
.
score_item
// ? this.data.score_item[id][cId]
?
this
.
data
.
score_item
[
id
]
?
this
.
data
.
score_item
[
id
][
cId
]
?
this
.
data
.
score_item
[
id
][
cId
]
:
[]
:
[]
:
[]
return
findItems
return
findItems
?
findItems
[
cId
]
?
findItems
[
cId
]
?
findItems
[
cId
].
answer
?
findItems
[
cId
].
answer
...
@@ -91,12 +98,6 @@ export default {
...
@@ -91,12 +98,6 @@ export default {
},
},
goQuestion
(
id
)
{
goQuestion
(
id
)
{
this
.
$emit
(
'goQuestion'
,
id
)
this
.
$emit
(
'goQuestion'
,
id
)
// this.$router.push({
// path: '/testExam/exam',
// query: {
// id: id
// }
// })
}
}
}
}
}
}
...
...
src/pages/exam/testExam/exam/result.vue
浏览文件 @
48dbc0d1
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<div
class=
"chart-box"
>
<div
class=
"chart-box"
>
<chart
:accuracy=
"accuracy"
:accuracScore=
"accuracScore"
>
<chart
:accuracy=
"accuracy"
:accuracScore=
"accuracScore"
>
<template
v-slot:tips
>
<template
v-slot:tips
>
<div
class=
"num"
>
{{
accurac
y
}}
%
</div>
<div
class=
"num"
>
{{
accurac
Text
}}
%
</div>
<div
class=
"t"
>
正确率
</div>
<div
class=
"t"
>
正确率
</div>
</
template
>
</
template
>
</chart>
</chart>
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</div>
</div>
<div
class=
"icon"
></div>
<div
class=
"icon"
></div>
</div>
</div>
<div
class=
"text"
>
{{ accurac
y
!== 100 ? '您离成功还有一段距离,继续努力!' : '成功近在眼前,再接再厉!' }}
</div>
<div
class=
"text"
>
{{ accurac
Text
!== 100 ? '您离成功还有一段距离,继续努力!' : '成功近在眼前,再接再厉!' }}
</div>
<!-- <div class="btn">全部考试服务</div> -->
<!-- <div class="btn">全部考试服务</div> -->
</div>
</div>
</div>
</div>
...
@@ -52,7 +52,8 @@ export default {
...
@@ -52,7 +52,8 @@ export default {
return
{
return
{
data
:
{},
data
:
{},
accuracy
:
0
,
accuracy
:
0
,
accuracScore
:
0
accuracScore
:
0
,
accuracText
:
0
}
}
},
},
created
()
{
created
()
{
...
@@ -60,7 +61,7 @@ export default {
...
@@ -60,7 +61,7 @@ export default {
},
},
computed
:
{
computed
:
{
setStyle
()
{
setStyle
()
{
return
`width:
${
this
.
accurac
y
}
%`
return
`width:
${
this
.
accurac
Text
}
%`
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -84,6 +85,7 @@ export default {
...
@@ -84,6 +85,7 @@ export default {
.
then
(
response
=>
{
.
then
(
response
=>
{
const
data
=
JSON
.
parse
(
response
.
data
)
const
data
=
JSON
.
parse
(
response
.
data
)
this
.
accuracy
=
parseInt
(
data
.
sheet
.
score
)
this
.
accuracy
=
parseInt
(
data
.
sheet
.
score
)
this
.
accuracText
=
parseInt
(
data
.
sheet
.
score
/
data
.
sheet
.
questions
.
total_question_count
*
100
)
this
.
data
=
data
this
.
data
=
data
this
.
accuracScore
=
parseInt
(
data
.
sheet
.
questions
.
total_score
)
this
.
accuracScore
=
parseInt
(
data
.
sheet
.
questions
.
total_score
)
})
})
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论