Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-learn
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-learn
Commits
951710b7
提交
951710b7
authored
12月 03, 2021
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
代码提交
上级
bf00be8d
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
49 行增加
和
21 行删除
+49
-21
api.js
src/modules/teacher/data/exam/api.js
+6
-0
ExamInfo.vue
src/modules/teacher/data/exam/components/ExamInfo.vue
+1
-1
Score.vue
src/modules/teacher/data/exam/components/Score.vue
+1
-1
ScoreRanking.vue
src/modules/teacher/data/exam/components/ScoreRanking.vue
+2
-5
Submission.vue
src/modules/teacher/data/exam/components/Submission.vue
+17
-6
TitleData.vue
src/modules/teacher/data/exam/components/TitleData.vue
+21
-7
ExamData.vue
src/modules/teacher/data/exam/views/ExamData.vue
+1
-1
没有找到文件。
src/modules/teacher/data/exam/api.js
浏览文件 @
951710b7
...
...
@@ -41,3 +41,9 @@ export function getScoreRanking(params) {
export
function
getTitleList
(
params
)
{
return
httpRequest
.
get
(
'/api/zy/v3-teacher/statistics/sheet-questions'
,
{
params
})
}
/**
* 考试数据-看板(题目数据导出)
*/
export
function
exportTitleList
(
params
)
{
return
httpRequest
.
get
(
'/api/zy/v3-teacher/statistics/sheet-questions/download'
,
{
params
})
}
src/modules/teacher/data/exam/components/ExamInfo.vue
浏览文件 @
951710b7
...
...
@@ -7,7 +7,7 @@
</h1>
<img
class=
"logo"
src=
"https://webapp-pub.oss-cn-beijing.aliyuncs.com/x-learning/data/exam.png"
alt=
""
/>
</div>
<el-row
:gutter=
"20"
class=
"row-bg"
justify=
"space-around"
>
<el-row
:gutter=
"20"
class=
"row-bg"
justify=
"space-around"
v-if=
"dataInfo.paper_info"
>
<el-col
:span=
"8"
>
<div
class=
"title"
>
总分
</div>
<div>
...
...
src/modules/teacher/data/exam/components/Score.vue
浏览文件 @
951710b7
...
...
@@ -7,7 +7,7 @@
</h1>
<img
class=
"logo"
src=
"https://webapp-pub.oss-cn-beijing.aliyuncs.com/x-learning/data/score.png"
alt=
""
/>
</div>
<el-row
:gutter=
"20"
class=
"row-bg"
justify=
"space-around"
>
<el-row
:gutter=
"20"
class=
"row-bg"
justify=
"space-around"
v-if=
"dataInfo.score_info"
>
<el-col
:span=
"8"
>
<div
class=
"title"
>
平均分
</div>
<div>
...
...
src/modules/teacher/data/exam/components/ScoreRanking.vue
浏览文件 @
951710b7
...
...
@@ -2,7 +2,7 @@
<el-card
style=
"height: 650px"
>
<div
slot=
"header"
class=
"clearfix"
>
<h1
style=
"color: #333; font-size: 16px; border-left: 3px solid #aa1941; padding-left: 7px"
>
<span
style=
"color: #c01540"
v-show=
"dataInfo
.need_check_num =
== 0"
>
*
</span>
分数排名
<span
style=
"color: #c01540"
v-show=
"dataInfo
== 0"
>
*
</span>
分数排名
</h1>
<el-button
type=
"text"
style=
"font-size: 16px; color: #aa1941; float: right; margin-top: -30px"
>
导出
</el-button>
</div>
...
...
@@ -45,10 +45,7 @@ export default {
type
:
String
,
default
:
''
},
dataInfo
:
{
type
:
String
,
default
:
''
}
dataInfo
:
{}
},
data
()
{
return
{
...
...
src/modules/teacher/data/exam/components/Submission.vue
浏览文件 @
951710b7
...
...
@@ -2,21 +2,32 @@
<el-card
class=
"box-card"
>
<img
class=
"bg"
src=
"https://webapp-pub.oss-cn-beijing.aliyuncs.com/x-learning/data/bgc2.png"
alt=
""
/>
<div
slot=
"header"
style=
"display: flex; align-items: center"
>
<h1
style=
"font-size: 16px"
>
<span
style=
"color: #c01540"
v-show=
"dataInfo.need_check_num === 0"
>
*
</span>
交卷统计
</h1>
<h1
style=
"font-size: 16px"
>
<span
style=
"color: #c01540"
v-show=
"dataInfo.need_check_num === 0"
>
*
</span>
交卷统计
</h1>
<img
class=
"logo"
src=
"https://webapp-pub.oss-cn-beijing.aliyuncs.com/x-learning/data/time.png"
alt=
""
/>
</div>
<el-row
:gutter=
"20"
class=
"row-bg"
justify=
"space-around"
>
<el-row
:gutter=
"20"
class=
"row-bg"
justify=
"space-around"
v-if=
"dataInfo.submit_info"
>
<el-col
:span=
"8"
>
<div
class=
"title"
>
最早交卷
</div>
<div><span
class=
"num"
>
{{
dataInfo
.
submit_info
.
first
}}
</span><span
class=
"fen"
>
分钟
</span></div>
<div>
<span
class=
"num"
>
{{
dataInfo
.
submit_info
.
first
}}
</span
><span
class=
"fen"
>
分钟
</span>
</div>
</el-col>
<el-col
:span=
"8"
>
<div
class=
"title"
>
最迟交卷
</div>
<div><span
class=
"num"
>
{{
dataInfo
.
submit_info
.
last
}}
</span><span
class=
"fen"
>
分钟
</span></div>
<div>
<span
class=
"num"
>
{{
dataInfo
.
submit_info
.
last
}}
</span
><span
class=
"fen"
>
分钟
</span>
</div>
</el-col>
<el-col
:span=
"8"
>
<div
class=
"title"
style=
"white-space: nowrap"
>
平均交卷时长
</div>
<div><span
class=
"num"
>
{{
dataInfo
.
submit_info
.
average
}}
</span><span
class=
"fen"
>
分钟
</span></div>
<div>
<span
class=
"num"
>
{{
dataInfo
.
submit_info
.
average
}}
</span
><span
class=
"fen"
>
分钟
</span>
</div>
</el-col>
</el-row>
</el-card>
...
...
@@ -47,7 +58,7 @@ export default {
margin-left
:
9px
;
}
.title
{
white-space
:
nowrap
;
white-space
:
nowrap
;
font-size
:
16px
;
color
:
#909090
;
font-weight
:
400
;
...
...
src/modules/teacher/data/exam/components/TitleData.vue
浏览文件 @
951710b7
...
...
@@ -2,7 +2,8 @@
<el-card
style=
"margin-right: -20px; height: 650px"
>
<div
slot=
"header"
class=
"clearfix"
>
<h1
style=
"color: #333; font-size: 16px; border-left: 3px solid #aa1941; padding-left: 7px"
>
<span
style=
"color: #c01540"
v-show=
"dataInfo.need_check_num === 0"
>
*
</span>
题目数据
{{
dataInfo
}}
<span
style=
"color: #c01540"
v-show=
"dataInfo == 0"
>
*
</span>
题目数据
</h1>
<el-button
type=
"text"
...
...
@@ -16,7 +17,7 @@
</
template
>
<
script
>
import
{
getTitleList
}
from
'../api'
import
{
getTitleList
,
exportTitleList
}
from
'../api'
export
default
{
data
()
{
return
{
...
...
@@ -43,10 +44,7 @@ export default {
type
:
String
,
default
:
''
},
dataInfo
:
{
type
:
String
,
default
:
''
}
dataInfo
:
{}
},
computed
:
{
// 列表配置
...
...
@@ -76,7 +74,23 @@ export default {
console
.
log
(
this
.
type
,
'type'
)
},
methods
:
{
exportTitleData
()
{}
exportTitleData
()
{
const
params
=
this
.
tableOptions
.
remote
.
params
exportTitleList
(
params
).
then
(
r
=>
{
const
content
=
r
const
blob
=
new
Blob
([
content
],
{
type
:
'application/vnd.ms-excel'
})
if
(
'download'
in
document
.
createElement
(
'a'
))
{
const
elink
=
document
.
createElement
(
'a'
)
elink
.
download
=
'题目数据.xlsx'
elink
.
style
.
display
=
'none'
elink
.
href
=
URL
.
createObjectURL
(
blob
)
document
.
body
.
appendChild
(
elink
)
elink
.
click
()
URL
.
revokeObjectURL
(
elink
.
href
)
document
.
body
.
removeChild
(
elink
)
}
})
}
}
}
</
script
>
src/modules/teacher/data/exam/views/ExamData.vue
浏览文件 @
951710b7
...
...
@@ -13,7 +13,7 @@
<el-button
type=
"text"
style=
"margin-left: 30px"
>
导出pdf
</el-button>
</el-col>
</el-row>
<template
v-if=
"
Object.keys(dataInfo).length
"
>
<template
v-if=
"
dataInfo.paper_info
"
>
<el-row
:gutter=
"10"
class=
"row-bg"
>
<el-col
:span=
"8"
class=
"col"
><exam-info
:dataInfo=
"dataInfo"
/></el-col>
<el-col
:span=
"8"
class=
"col"
><submission
:dataInfo=
"dataInfo"
/></el-col>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论