Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-learn
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-learn
Commits
64035e41
提交
64035e41
authored
12月 07, 2021
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:分页修改
上级
83a92229
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
42 行增加
和
21 行删除
+42
-21
AppList.vue
src/components/base/AppList.vue
+3
-2
RankingAll.vue
src/modules/teacher/data/exam/components/RankingAll.vue
+2
-1
TitleData.vue
src/modules/teacher/data/exam/components/TitleData.vue
+27
-7
ClassList.vue
src/modules/teacher/data/exam/views/ClassList.vue
+1
-1
ExamData.vue
src/modules/teacher/data/exam/views/ExamData.vue
+5
-7
List.vue
src/modules/teacher/data/test/views/List.vue
+4
-3
没有找到文件。
src/components/base/AppList.vue
浏览文件 @
64035e41
...
...
@@ -71,7 +71,7 @@
</div>
<el-pagination
class=
"table-list-pagination"
layout=
"total, prev, pager, next, sizes, jumper
"
:layout=
"pagationLayout
"
:page-sizes=
"[10, 20, 30, 50, 100]"
:page-size=
"page.size"
:total=
"page.total"
...
...
@@ -101,7 +101,8 @@ export default {
// 是否含有翻页
hasPagination
:
{
type
:
Boolean
,
default
:
true
},
// 每页多少条数据
limit
:
{
type
:
Number
,
default
:
20
}
limit
:
{
type
:
Number
,
default
:
20
},
pagationLayout
:
{
type
:
String
,
default
:
'total, prev, pager, next, sizes, jumper'
}
},
data
()
{
return
{
...
...
src/modules/teacher/data/exam/components/RankingAll.vue
浏览文件 @
64035e41
...
...
@@ -38,7 +38,8 @@ export default {
{
label
:
'主观题'
,
prop
:
'objective'
,
align
:
'center'
,
sortable
:
'custom'
,
minWidth
:
100
},
{
label
:
'总分'
,
prop
:
'score'
,
align
:
'center'
,
sortable
:
'custom'
},
{
label
:
'操作'
,
slots
:
'table_operate'
,
align
:
'center'
}
]
],
pagationLayout
:
'prev, pager, next'
}
}
},
...
...
src/modules/teacher/data/exam/components/TitleData.vue
浏览文件 @
64035e41
...
...
@@ -27,11 +27,11 @@
</div>
<app-list
v-bind=
"tableOptions"
ref=
"list"
@
sort-change=
"sortChange"
>
<template
v-slot:title=
"
{ row }">
<
el-button
<
a
type=
"text"
style=
"white-space: nowrap; overflow: hidden; text-overflow: ellipsis"
style=
"white-space: nowrap; overflow: hidden; text-overflow: ellipsis
; color: #c01540
"
@
click=
"toDetail"
>
{{
row
.
title
}}
</
el-button
>
{{
row
.
title
}}
</
a
>
</
template
>
</app-list>
...
...
@@ -43,7 +43,7 @@ import { getTitleList, exportTitleList } from '../api'
export
default
{
data
()
{
return
{
value
:
1
,
value
:
''
,
conditionList
:
{
examList
:
[],
courseList
:
[]
...
...
@@ -114,10 +114,11 @@ export default {
}
}
},
{
label
:
'正确率'
,
prop
:
'rate'
,
align
:
'center'
,
sortable
:
'custom'
},
{
label
:
'正确率'
,
prop
:
'rate'
,
align
:
'center'
,
minWidth
:
150
,
sortable
:
'custom'
},
{
label
:
'总分'
,
prop
:
'total_score'
,
align
:
'center'
},
{
label
:
'平均得分'
,
prop
:
'average'
,
align
:
'center'
,
sortable
:
'custom'
}
]
{
label
:
'平均得分'
,
prop
:
'average'
,
align
:
'center'
,
sortable
:
'custom'
,
minWidth
:
150
}
],
pagationLayout
:
'prev, pager, next'
}
}
},
...
...
@@ -174,7 +175,26 @@ export default {
question_id
:
row
.
question_id
}
})
},
refetch
()
{
this
.
$refs
.
list
.
refetch
()
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
::v-deep
.table-list-filter
{
display
:
none
;
}
::v-deep
{
.el-table
{
th
{
padding
:
0
;
}
td
{
padding
:
0
;
height
:
46px
;
}
}
}
</
style
>
src/modules/teacher/data/exam/views/ClassList.vue
浏览文件 @
64035e41
<
template
>
<div>
<div
style=
"font-size: 32px; margin-bottom: 15px"
>
测试班级一
</div>
<div
style=
"font-size: 32px; margin-bottom: 15px"
>
{{
$route
.
query
.
examination_name
}}
</div>
<app-card>
<h1
class=
"title"
style=
"font-size: 28px"
>
班级排名
</h1>
<el-button
type=
"text"
style=
"float: right; margin-top: -40px"
@
click=
"exportClassList"
>
导出
</el-button>
...
...
src/modules/teacher/data/exam/views/ExamData.vue
浏览文件 @
64035e41
...
...
@@ -11,7 +11,7 @@
pdf-content-width=
"100%"
ref=
"html2Pdf"
>
<section
slot=
"pdf-content"
>
<section
slot=
"pdf-content"
:key=
"value"
>
<div
class=
"container"
>
<el-row
type=
"flex"
class=
"row-bg"
justify=
"space-between"
style=
"margin-bottom: 30px"
>
<el-col
...
...
@@ -21,7 +21,7 @@
</h1>
</el-col>
<el-col
:span=
"10"
>
<el-select
v-model=
"value"
placeholder=
"
请选择
"
@
change=
"refreshPage"
>
<el-select
v-model=
"value"
placeholder=
"
全部数据
"
@
change=
"refreshPage"
>
<el-option
v-for=
"item in dataInfo.class_map"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
</el-option>
</el-select>
...
...
@@ -42,7 +42,6 @@
:chapter_id=
"$route.query.chapter_id"
:type=
"$route.query.type"
:dataInfo=
"dataInfo.need_check_num"
ref=
"scoreRankingRef"
:classValue=
"value"
/></el-col>
<el-col
:span=
"11"
...
...
@@ -52,7 +51,6 @@
:chapter_id=
"$route.query.chapter_id"
:type=
"$route.query.type"
:dataInfo=
"dataInfo.need_check_num"
ref=
"titleDataRef"
:classValue=
"value"
/></el-col>
</el-row>
...
...
@@ -82,7 +80,7 @@ export default {
components
:
{
VueHtml2pdf
,
ExamInfo
,
Submission
,
Score
,
ScoreRanking
,
TitleData
,
Result
,
ScoreRange
,
QuestionType
},
data
()
{
return
{
value
:
'
001
'
,
value
:
''
,
dataInfo
:
{
need_check_num
:
''
}
...
...
@@ -95,8 +93,8 @@ export default {
methods
:
{
refreshPage
()
{
this
.
getExamDataInfo
()
this
.
$refs
.
scoreRankingRef
.
getScoreRanking
()
this
.
$refs
.
titleDataRef
.
getTitleList
()
//
this.$refs.scoreRankingRef.getScoreRanking()
// this.$refs.titleDataRef.refetch
()
},
getExamDataInfo
()
{
const
params
=
{
...
...
src/modules/teacher/data/test/views/List.vue
浏览文件 @
64035e41
...
...
@@ -83,8 +83,8 @@ export default {
query
:
{
course_id
:
row
.
course_id
,
chapter_id
:
row
.
chapter_id
,
type
:
'chapter'
//
examination_name: row.examination_name
type
:
'chapter'
,
examination_name
:
row
.
examination_name
}
})
},
...
...
@@ -94,7 +94,8 @@ export default {
query
:
{
course_id
:
row
.
course_id
,
chapter_id
:
row
.
chapter_id
,
type
:
'chapter'
type
:
'chapter'
,
examination_name
:
row
.
examination_name
}
})
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论