Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-learn
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-learn
Commits
ce6e62e2
提交
ce6e62e2
authored
12月 09, 2021
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug修复
上级
c4774539
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
41 行增加
和
5 行删除
+41
-5
AppList.vue
src/components/base/AppList.vue
+1
-1
api.js
src/modules/teacher/data/exam/api.js
+9
-0
RankingAll.vue
src/modules/teacher/data/exam/components/RankingAll.vue
+2
-1
PersonalList.vue
src/modules/teacher/data/exam/views/PersonalList.vue
+29
-3
没有找到文件。
src/components/base/AppList.vue
浏览文件 @
ce6e62e2
...
@@ -101,7 +101,7 @@ export default {
...
@@ -101,7 +101,7 @@ export default {
// 是否含有翻页
// 是否含有翻页
hasPagination
:
{
type
:
Boolean
,
default
:
true
},
hasPagination
:
{
type
:
Boolean
,
default
:
true
},
// 每页多少条数据
// 每页多少条数据
limit
:
{
type
:
Number
,
default
:
1
0
},
limit
:
{
type
:
Number
,
default
:
2
0
},
pagationLayout
:
{
type
:
String
,
default
:
'total, prev, pager, next, sizes, jumper'
}
pagationLayout
:
{
type
:
String
,
default
:
'total, prev, pager, next, sizes, jumper'
}
},
},
data
()
{
data
()
{
...
...
src/modules/teacher/data/exam/api.js
浏览文件 @
ce6e62e2
...
@@ -82,6 +82,15 @@ export function getClassDetail(params) {
...
@@ -82,6 +82,15 @@ export function getClassDetail(params) {
params
params
})
})
}
}
/**
* 获取班级详情
*/
export
function
exportClassDetail
(
params
)
{
return
httpRequest
.
get
(
'/api/zy/v3-teacher/statistics/class-details'
,
{
params
,
responseType
:
'blob'
})
}
/**
/**
* 考试数据-看板(题目数据)
* 考试数据-看板(题目数据)
*/
*/
...
...
src/modules/teacher/data/exam/components/RankingAll.vue
浏览文件 @
ce6e62e2
...
@@ -52,7 +52,8 @@ export default {
...
@@ -52,7 +52,8 @@ export default {
{
label
:
'总分'
,
prop
:
'score'
,
align
:
'center'
,
sortable
:
'custom'
},
{
label
:
'总分'
,
prop
:
'score'
,
align
:
'center'
,
sortable
:
'custom'
},
{
label
:
'操作'
,
slots
:
'table_operate'
,
align
:
'center'
}
{
label
:
'操作'
,
slots
:
'table_operate'
,
align
:
'center'
}
],
],
pagationLayout
:
'prev, pager, next'
pagationLayout
:
'prev, pager, next'
,
limit
:
10
}
}
}
}
},
},
...
...
src/modules/teacher/data/exam/views/PersonalList.vue
浏览文件 @
ce6e62e2
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
</div>
</div>
<template
#
header-aside
>
<template
#
header-aside
>
<el-button
type=
"text"
size=
"mini"
@
click=
"
toExamData(row)
"
>
导出
</el-button>
<el-button
type=
"text"
size=
"mini"
@
click=
"
exportClassDetail
"
>
导出
</el-button>
</
template
>
</
template
>
<!-- 操作 -->
<!-- 操作 -->
<
template
v-slot:table-operate=
"{ row }"
>
<
template
v-slot:table-operate=
"{ row }"
>
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
getClassDetail
}
from
'../api'
import
{
getClassDetail
,
exportClassDetail
}
from
'../api'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -43,7 +43,7 @@ export default {
...
@@ -43,7 +43,7 @@ export default {
queryInfo
:
{
queryInfo
:
{
query
:
''
,
query
:
''
,
pagenum
:
1
,
pagenum
:
1
,
pagesize
:
1
0
pagesize
:
2
0
}
}
}
}
},
},
...
@@ -152,6 +152,32 @@ export default {
...
@@ -152,6 +152,32 @@ export default {
this
.
tableOptions
.
remote
.
params
.
sort
=
columns
.
prop
this
.
tableOptions
.
remote
.
params
.
sort
=
columns
.
prop
}
}
this
.
$refs
.
list
.
refetch
()
this
.
$refs
.
list
.
refetch
()
},
// 导出
exportClassDetail
()
{
const
params
=
{
type
:
this
.
$route
.
query
.
type
,
course_id
:
this
.
$route
.
query
.
course_id
,
examination_id
:
this
.
$route
.
query
.
examination_id
,
chapter_id
:
this
.
$route
.
query
.
chapter_id
,
class_id
:
this
.
$route
.
query
.
class_id
,
status
:
this
.
$route
.
query
.
status
,
download
:
'true'
}
exportClassDetail
(
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
)
}
})
}
}
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论