Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-learn
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-learn
Commits
7dd45f36
提交
7dd45f36
authored
12月 08, 2021
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug修复
上级
dc605c4a
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
52 行增加
和
5 行删除
+52
-5
Finished.vue
src/modules/teacher/data/exam/components/Finished.vue
+6
-1
RankingAll.vue
src/modules/teacher/data/exam/components/RankingAll.vue
+24
-2
ScoreRanking.vue
src/modules/teacher/data/exam/components/ScoreRanking.vue
+14
-2
TitleData.vue
src/modules/teacher/data/exam/components/TitleData.vue
+7
-0
ExamData.vue
src/modules/teacher/data/exam/views/ExamData.vue
+1
-0
没有找到文件。
src/modules/teacher/data/exam/components/Finished.vue
浏览文件 @
7dd45f36
...
@@ -2,7 +2,12 @@
...
@@ -2,7 +2,12 @@
<app-container>
<app-container>
<app-list
v-bind=
"tableOptions"
ref=
"list"
@
sort-change=
"sortChange"
>
<app-list
v-bind=
"tableOptions"
ref=
"list"
@
sort-change=
"sortChange"
>
<template
v-slot:paper_title=
"
{ row }">
<template
v-slot:paper_title=
"
{ row }">
<div
:class=
"`paper-title active$
{row.ranking}`">
{{
row
.
ranking
}}
</div>
<div
:class=
"`paper-title active$
{row.ranking}`" v-if="tabActive === '2' || tabActive === '1'">
{{
row
.
ranking
}}
</div>
<div
v-else
>
{{
row
.
ranking
}}
</div>
</
template
>
</
template
>
<
template
v-slot:table-name=
"{ row }"
>
<
template
v-slot:table-name=
"{ row }"
>
<el-button
type=
"text"
@
click=
"toPersonal(row)"
v-if=
"tabActive === '2' || tabActive === '1'"
>
{{
<el-button
type=
"text"
@
click=
"toPersonal(row)"
v-if=
"tabActive === '2' || tabActive === '1'"
>
{{
...
...
src/modules/teacher/data/exam/components/RankingAll.vue
浏览文件 @
7dd45f36
<
template
>
<
template
>
<app-list
v-bind=
"tableOptions"
ref=
"list"
@
sort-change=
"sortChange"
>
<app-list
v-bind=
"tableOptions"
ref=
"list"
@
sort-change=
"sortChange"
:row-class-name=
"scoreRow"
>
<template
v-slot:paper_title=
"
{ row }">
<template
v-slot:paper_title=
"
{ row }">
<div
:class=
"`paper-title active$
{row.ranking}`">
{{
row
.
ranking
}}
</div>
<div
:class=
"`paper-title active$
{row.ranking}`" v-if="tabActive === '2' || tabActive === '1'">
{{
row
.
ranking
}}
</div>
<div
v-else
>
{{
row
.
ranking
}}
</div>
</
template
>
</
template
>
<
template
v-slot:table_operate=
"{ row }"
>
<
template
v-slot:table_operate=
"{ row }"
>
<el-button
type=
"text"
@
click=
"toDetail(row)"
v-if=
"tabActive === '2'"
>
查看
</el-button>
<el-button
type=
"text"
@
click=
"toDetail(row)"
v-if=
"tabActive === '2'"
>
查看
</el-button>
...
@@ -25,6 +30,9 @@ export default {
...
@@ -25,6 +30,9 @@ export default {
scoreRanking
:
{
scoreRanking
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{}
},
pass_score
:
{
type
:
Number
}
}
},
},
computed
:
{
computed
:
{
...
@@ -58,7 +66,18 @@ export default {
...
@@ -58,7 +66,18 @@ export default {
// })
// })
}
}
},
},
mounted
()
{
console
.
log
(
this
.
pass_score
,
'----'
)
},
methods
:
{
methods
:
{
scoreRow
(
row
,
index
)
{
console
.
log
(
row
,
'ffff'
)
if
(
row
.
row
.
score
<
this
.
pass_score
)
{
return
'warning-row'
}
else
{
return
''
}
},
toDetail
(
data
)
{
toDetail
(
data
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
path
:
...
@@ -135,4 +154,7 @@ export default {
...
@@ -135,4 +154,7 @@ export default {
::v-deep
.table-list-filter
{
::v-deep
.table-list-filter
{
display
:
none
;
display
:
none
;
}
}
::v-deep
.warning-row
{
color
:
#c01540
;
}
</
style
>
</
style
>
src/modules/teacher/data/exam/components/ScoreRanking.vue
浏览文件 @
7dd45f36
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
type=
"text"
type=
"text"
style=
"font-size: 16px; color: #aa1941; float: right; margin-top: -30px"
style=
"font-size: 16px; color: #aa1941; float: right; margin-top: -30px"
@
click=
"exportScore"
@
click=
"exportScore"
:disabled=
"(count.list.length = 0)"
>
导出
</el-button
>
导出
</el-button
>
>
</div>
</div>
...
@@ -16,7 +17,13 @@
...
@@ -16,7 +17,13 @@
<el-tab-pane
:label=
"`待评价$
{count.commit_count}`" name="toEvaluate" lazy>
</el-tab-pane>
<el-tab-pane
:label=
"`待评价$
{count.commit_count}`" name="toEvaluate" lazy>
</el-tab-pane>
<el-tab-pane
:label=
"`未作答$
{count.no_sheet_count}`" name="noAnswer" lazy>
</el-tab-pane>
<el-tab-pane
:label=
"`未作答$
{count.no_sheet_count}`" name="noAnswer" lazy>
</el-tab-pane>
<el-tab-pane
:label=
"`未提交$
{count.cache_count}`" name="toSubmit" lazy>
</el-tab-pane>
<el-tab-pane
:label=
"`未提交$
{count.cache_count}`" name="toSubmit" lazy>
</el-tab-pane>
<RankingAll
:tabActive=
"tabStatus"
:scoreRanking=
"scoreRanking"
@
resCount=
"handleResCount"
:key=
"tabStatus"
/>
<RankingAll
:tabActive=
"tabStatus"
:scoreRanking=
"scoreRanking"
@
resCount=
"handleResCount"
:key=
"tabStatus"
:pass_score=
"pass_score"
/>
</el-tabs>
</el-tabs>
</el-card>
</el-card>
</
template
>
</
template
>
...
@@ -47,6 +54,9 @@ export default {
...
@@ -47,6 +54,9 @@ export default {
type
:
{
type
:
{
type
:
String
,
type
:
String
,
default
:
''
default
:
''
},
pass_score
:
{
type
:
Number
}
}
},
},
data
()
{
data
()
{
...
@@ -63,7 +73,8 @@ export default {
...
@@ -63,7 +73,8 @@ export default {
checked_count
:
0
,
checked_count
:
0
,
commit_count
:
0
,
commit_count
:
0
,
no_sheet_count
:
0
,
no_sheet_count
:
0
,
cache_count
:
0
cache_count
:
0
,
list
:
[]
}
}
}
}
},
},
...
@@ -84,6 +95,7 @@ export default {
...
@@ -84,6 +95,7 @@ export default {
methods
:
{
methods
:
{
handleResCount
(
val
)
{
handleResCount
(
val
)
{
this
.
count
=
val
this
.
count
=
val
console
.
log
(
this
.
count
.
list
.
length
,
'123'
)
},
},
// 导出
// 导出
exportScore
()
{
exportScore
()
{
...
...
src/modules/teacher/data/exam/components/TitleData.vue
浏览文件 @
7dd45f36
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
type=
"text"
type=
"text"
style=
"font-size: 16px; color: #aa1941; float: right; margin-top: -30px"
style=
"font-size: 16px; color: #aa1941; float: right; margin-top: -30px"
@
click=
"exportTitleData"
@
click=
"exportTitleData"
:disabled=
"listArr.length === 0"
>
导出
</el-button
>
导出
</el-button
>
>
</div>
</div>
...
@@ -44,6 +45,7 @@ import { getTitleList, exportTitleList } from '../api'
...
@@ -44,6 +45,7 @@ import { getTitleList, exportTitleList } from '../api'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
listArr
:
''
,
value
:
''
,
value
:
''
,
conditionList
:
{
conditionList
:
{
examList
:
[],
examList
:
[],
...
@@ -81,6 +83,7 @@ export default {
...
@@ -81,6 +83,7 @@ export default {
remote
:
{
remote
:
{
beforeRequest
:
this
.
beforeRequest
,
beforeRequest
:
this
.
beforeRequest
,
httpRequest
:
getTitleList
,
httpRequest
:
getTitleList
,
callback
:
this
.
callback
,
params
:
{
params
:
{
type
:
this
.
type
,
type
:
this
.
type
,
course_id
:
this
.
course_id
,
course_id
:
this
.
course_id
,
...
@@ -143,6 +146,10 @@ export default {
...
@@ -143,6 +146,10 @@ export default {
params
.
class_id
=
this
.
classValue
params
.
class_id
=
this
.
classValue
return
params
return
params
},
},
callback
(
val
)
{
this
.
listArr
=
val
.
list
return
this
.
listArr
},
changeSeclect
()
{
changeSeclect
()
{
this
.
$refs
.
list
.
refetch
()
this
.
$refs
.
list
.
refetch
()
},
},
...
...
src/modules/teacher/data/exam/views/ExamData.vue
浏览文件 @
7dd45f36
...
@@ -41,6 +41,7 @@
...
@@ -41,6 +41,7 @@
:type=
"$route.query.type"
:type=
"$route.query.type"
:dataInfo=
"dataInfo.need_check_num"
:dataInfo=
"dataInfo.need_check_num"
:classValue=
"value"
:classValue=
"value"
:pass_score=
"dataInfo.paper_info.pass_score"
/></el-col>
/></el-col>
<el-col
:span=
"11"
<el-col
:span=
"11"
><TitleData
><TitleData
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论