Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-learn
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-learn
Commits
71f6820d
提交
71f6820d
authored
12月 09, 2021
作者:
lihuihui
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'vite' of
https://gitlab.ezijing.com/ezijing/x-learn
into vite
上级
506dee41
ce6e62e2
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
87 行增加
和
19 行删除
+87
-19
AppList.vue
src/components/base/AppList.vue
+1
-1
ClassList.vue
src/modules/teacher/data/course/views/ClassList.vue
+23
-5
List.vue
src/modules/teacher/data/course/views/List.vue
+14
-4
PersonalList.vue
src/modules/teacher/data/course/views/PersonalList.vue
+5
-3
Process.vue
src/modules/teacher/data/course/views/Process.vue
+1
-0
ProcessDetail.vue
src/modules/teacher/data/course/views/ProcessDetail.vue
+2
-0
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
+30
-5
没有找到文件。
src/components/base/AppList.vue
浏览文件 @
71f6820d
...
@@ -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/course/views/ClassList.vue
浏览文件 @
71f6820d
...
@@ -31,8 +31,24 @@ export default {
...
@@ -31,8 +31,24 @@ export default {
{
label
:
'班级人数'
,
prop
:
'student_total'
,
align
:
'center'
,
sortable
:
'custom'
},
{
label
:
'班级人数'
,
prop
:
'student_total'
,
align
:
'center'
,
sortable
:
'custom'
},
{
label
:
'完成人数'
,
prop
:
'finished_student_total'
,
align
:
'center'
,
sortable
:
'custom'
},
{
label
:
'完成人数'
,
prop
:
'finished_student_total'
,
align
:
'center'
,
sortable
:
'custom'
},
{
label
:
'课程完成率'
,
prop
:
'course_completion_rate'
,
align
:
'center'
,
sortable
:
'custom'
},
{
label
:
'课程完成率'
,
prop
:
'course_completion_rate'
,
align
:
'center'
,
sortable
:
'custom'
},
{
label
:
'累计学习时长'
,
prop
:
'study_length'
,
align
:
'center'
,
sortable
:
'custom'
},
{
{
label
:
'人均学习时长'
,
prop
:
'avg_study_length'
,
align
:
'center'
,
sortable
:
'custom'
}
label
:
'累计学习时长'
,
prop
:
'study_length'
,
align
:
'center'
,
sortable
:
'custom'
,
computed
({
row
})
{
return
row
.
study_length_format
}
},
{
label
:
'人均学习时长'
,
prop
:
'avg_study_length'
,
align
:
'center'
,
sortable
:
'custom'
,
computed
({
row
})
{
return
row
.
avg_study_length_format
}
}
]
]
}
}
}
}
...
@@ -56,11 +72,13 @@ export default {
...
@@ -56,11 +72,13 @@ export default {
})
})
},
},
sortChange
(
columns
)
{
sortChange
(
columns
)
{
console
.
log
(
columns
,
'hfjsdfhs'
)
if
(
columns
.
order
===
'ascending'
)
{
if
(
columns
.
order
===
'ascending'
)
{
this
.
tableOptions
.
remote
.
params
.
sort
=
columns
.
prop
this
.
tableOptions
.
remote
.
params
.
sort
=
'asc'
this
.
tableOptions
.
remote
.
params
.
sort_column
=
columns
.
prop
}
else
{
}
else
{
columns
.
prop
=
'-'
+
columns
.
prop
this
.
tableOptions
.
remote
.
params
.
sort
=
'desc'
this
.
tableOptions
.
remote
.
params
.
sort
=
columns
.
prop
this
.
tableOptions
.
remote
.
params
.
sort
_column
=
columns
.
prop
}
}
this
.
$refs
.
list
.
refetch
()
this
.
$refs
.
list
.
refetch
()
}
}
...
...
src/modules/teacher/data/course/views/List.vue
浏览文件 @
71f6820d
...
@@ -47,7 +47,15 @@ export default {
...
@@ -47,7 +47,15 @@ export default {
columns
:
[
columns
:
[
{
label
:
'图片'
,
prop
:
'course_picture'
,
slots
:
'table-img'
},
{
label
:
'图片'
,
prop
:
'course_picture'
,
slots
:
'table-img'
},
{
label
:
'课程名称'
,
prop
:
'course_name'
,
align
:
'center'
},
{
label
:
'课程名称'
,
prop
:
'course_name'
,
align
:
'center'
},
{
label
:
'人均学习时长'
,
prop
:
'course_avg_study_len'
,
align
:
'center'
,
sortable
:
'custom'
},
{
label
:
'人均学习时长'
,
prop
:
'course_avg_study_len'
,
align
:
'center'
,
sortable
:
'custom'
,
computed
({
row
})
{
return
row
.
course_avg_study_len_format
}
},
{
label
:
'课程完成率'
,
prop
:
'course_finish_progress'
,
align
:
'center'
,
sortable
:
'custom'
},
{
label
:
'课程完成率'
,
prop
:
'course_finish_progress'
,
align
:
'center'
,
sortable
:
'custom'
},
{
label
:
'操作'
,
align
:
'center'
,
slots
:
'table-operate'
}
{
label
:
'操作'
,
align
:
'center'
,
slots
:
'table-operate'
}
]
]
...
@@ -59,11 +67,13 @@ export default {
...
@@ -59,11 +67,13 @@ export default {
},
},
methods
:
{
methods
:
{
sortChange
(
columns
)
{
sortChange
(
columns
)
{
console
.
log
(
columns
,
'hfjsdfhs'
)
if
(
columns
.
order
===
'ascending'
)
{
if
(
columns
.
order
===
'ascending'
)
{
this
.
tableOptions
.
remote
.
params
.
sort
=
columns
.
prop
this
.
tableOptions
.
remote
.
params
.
sort
=
'asc'
this
.
tableOptions
.
remote
.
params
.
sort_column
=
columns
.
prop
}
else
{
}
else
{
columns
.
prop
=
'-'
+
columns
.
prop
this
.
tableOptions
.
remote
.
params
.
sort
=
'desc'
this
.
tableOptions
.
remote
.
params
.
sort
=
columns
.
prop
this
.
tableOptions
.
remote
.
params
.
sort
_column
=
columns
.
prop
}
}
this
.
$refs
.
list
.
refetch
()
this
.
$refs
.
list
.
refetch
()
},
},
...
...
src/modules/teacher/data/course/views/PersonalList.vue
浏览文件 @
71f6820d
...
@@ -49,11 +49,13 @@ export default {
...
@@ -49,11 +49,13 @@ export default {
})
})
},
},
sortChange
(
columns
)
{
sortChange
(
columns
)
{
console
.
log
(
columns
,
'hfjsdfhs'
)
if
(
columns
.
order
===
'ascending'
)
{
if
(
columns
.
order
===
'ascending'
)
{
this
.
tableOptions
.
remote
.
params
.
sort
=
columns
.
prop
this
.
tableOptions
.
remote
.
params
.
sort
=
'asc'
this
.
tableOptions
.
remote
.
params
.
sort_column
=
columns
.
prop
}
else
{
}
else
{
columns
.
prop
=
'-'
+
columns
.
prop
this
.
tableOptions
.
remote
.
params
.
sort
=
'desc'
this
.
tableOptions
.
remote
.
params
.
sort
=
columns
.
prop
this
.
tableOptions
.
remote
.
params
.
sort
_column
=
columns
.
prop
}
}
this
.
$refs
.
list
.
refetch
()
this
.
$refs
.
list
.
refetch
()
}
}
...
...
src/modules/teacher/data/course/views/Process.vue
浏览文件 @
71f6820d
...
@@ -32,6 +32,7 @@ export default {
...
@@ -32,6 +32,7 @@ export default {
// 列表配置
// 列表配置
tableOptions
()
{
tableOptions
()
{
return
{
return
{
hasPagination
:
false
,
data
:
this
.
list
,
data
:
this
.
list
,
columns
:
[
columns
:
[
{
label
:
'课程ID'
,
align
:
'center'
,
prop
:
'id'
},
{
label
:
'课程ID'
,
align
:
'center'
,
prop
:
'id'
},
...
...
src/modules/teacher/data/course/views/ProcessDetail.vue
浏览文件 @
71f6820d
...
@@ -14,6 +14,8 @@ export default {
...
@@ -14,6 +14,8 @@ export default {
// 列表配置
// 列表配置
tableOptions
()
{
tableOptions
()
{
return
{
return
{
hasPagination
:
false
,
data
:
this
.
$route
.
query
.
row
,
data
:
this
.
$route
.
query
.
row
,
columns
:
[
columns
:
[
{
label
:
'章节名称'
,
align
:
'center'
,
prop
:
'name'
},
{
label
:
'章节名称'
,
align
:
'center'
,
prop
:
'name'
},
...
...
src/modules/teacher/data/exam/api.js
浏览文件 @
71f6820d
...
@@ -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
浏览文件 @
71f6820d
...
@@ -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
浏览文件 @
71f6820d
...
@@ -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
}
}
}
}
},
},
...
@@ -113,8 +113,7 @@ export default {
...
@@ -113,8 +113,7 @@ export default {
callback
(
val
)
{
callback
(
val
)
{
this
.
total
=
val
.
total
this
.
total
=
val
.
total
this
.
callList
=
val
.
list
this
.
callList
=
val
.
list
console
.
log
(
val
,
'999'
)
this
.
callList
.
length
=
this
.
queryInfo
.
pagesize
// console.log(val.list, 'val')
return
this
.
callList
return
this
.
callList
},
},
// 搜索
// 搜索
...
@@ -153,6 +152,32 @@ export default {
...
@@ -153,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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论