Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-learn
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-learn
Commits
3cda328b
提交
3cda328b
authored
12月 07, 2021
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
代码提交
上级
3791d0b1
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
70 行增加
和
32 行删除
+70
-32
RankingAll.vue
src/modules/teacher/data/exam/components/RankingAll.vue
+23
-3
ScoreRanking.vue
src/modules/teacher/data/exam/components/ScoreRanking.vue
+47
-29
没有找到文件。
src/modules/teacher/data/exam/components/RankingAll.vue
浏览文件 @
3cda328b
...
@@ -4,14 +4,15 @@
...
@@ -4,14 +4,15 @@
<div
:class=
"`paper-title active$
{row.ranking}`">
{{
row
.
ranking
}}
</div>
<div
:class=
"`paper-title active$
{row.ranking}`">
{{
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 === '
finished
'"
>
查看
</el-button>
<el-button
type=
"text"
@
click=
"toDetail(row)"
v-if=
"tabActive === '
2
'"
>
查看
</el-button>
<el-button
type=
"text"
@
click=
"toReview(row)"
v-else-if=
"tabActive === '
toEvaluate
'"
>
批阅
</el-button>
<el-button
type=
"text"
@
click=
"toReview(row)"
v-else-if=
"tabActive === '
1
'"
>
批阅
</el-button>
<div
v-else
>
-
</div>
<div
v-else
>
-
</div>
</
template
>
</
template
>
</app-list>
</app-list>
</template>
</template>
<
script
>
<
script
>
import
{
getScoreRanking
}
from
'../api'
export
default
{
export
default
{
data
()
{
data
()
{
return
{}
return
{}
...
@@ -30,7 +31,11 @@ export default {
...
@@ -30,7 +31,11 @@ export default {
// 列表配置
// 列表配置
tableOptions
()
{
tableOptions
()
{
return
{
return
{
data
:
this
.
scoreRanking
.
list
,
remote
:
{
httpRequest
:
getScoreRanking
,
params
:
Object
.
assign
({
status
:
this
.
tabActive
},
this
.
scoreRanking
),
callback
:
this
.
handleCallback
},
columns
:
[
columns
:
[
{
label
:
'排名'
,
slots
:
'paper_title'
,
prop
:
'ranking'
,
align
:
'center'
},
{
label
:
'排名'
,
slots
:
'paper_title'
,
prop
:
'ranking'
,
align
:
'center'
},
{
label
:
'姓名'
,
prop
:
'personal_name'
,
align
:
'center'
,
minWidth
:
150
},
{
label
:
'姓名'
,
prop
:
'personal_name'
,
align
:
'center'
,
minWidth
:
150
},
...
@@ -43,6 +48,17 @@ export default {
...
@@ -43,6 +48,17 @@ export default {
}
}
}
}
},
},
watch
:
{
tabActive
(
nv
)
{
console
.
log
(
nv
)
this
.
tableOptions
.
remote
.
params
.
status
=
nv
console
.
log
(
this
.
tableOptions
.
remote
.
params
,
'=123'
)
this
.
$refs
.
list
.
refetch
()
}
},
mounted
()
{
console
.
log
(
this
.
tabActive
,
'-87888'
)
},
methods
:
{
methods
:
{
toDetail
(
data
)
{
toDetail
(
data
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
...
@@ -70,6 +86,10 @@ export default {
...
@@ -70,6 +86,10 @@ export default {
columns
.
prop
=
'-'
+
columns
.
prop
columns
.
prop
=
'-'
+
columns
.
prop
this
.
$parent
.
$parent
.
$parent
.
$parent
.
getScoreRanking
()
this
.
$parent
.
$parent
.
$parent
.
$parent
.
getScoreRanking
()
}
}
},
handleCallback
(
val
)
{
this
.
$emit
(
'resCount'
,
val
)
return
val
.
list
}
}
}
}
}
}
...
...
src/modules/teacher/data/exam/components/ScoreRanking.vue
浏览文件 @
3cda328b
...
@@ -11,25 +11,26 @@
...
@@ -11,25 +11,26 @@
>
导出
</el-button
>
导出
</el-button
>
>
</div>
</div>
<el-tabs
v-model=
"tabActive"
@
tab-click=
"handleClick"
>
<el-tabs
v-model=
"tabActive"
>
<el-tab-pane
:label=
"`已完成$
{
scoreRanking
.checked_count}`" name="finished">
<el-tab-pane
:label=
"`已完成$
{
count
.checked_count}`" name="finished">
<
RankingAll
:tabActive=
"tabActive"
:scoreRanking=
"scoreRanking"
/
>
<
!--
<RankingAll
:tabActive=
"tabActive"
:scoreRanking=
"scoreRanking"
/>
--
>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
:label=
"`待评价$
{
scoreRanking
.commit_count}`" name="toEvaluate" lazy>
<el-tab-pane
:label=
"`待评价$
{
count
.commit_count}`" name="toEvaluate" lazy>
<
RankingAll
:tabActive=
"tabActive"
:scoreRanking=
"scoreRanking"
/
>
<
!--
<RankingAll
:tabActive=
"tabActive"
:scoreRanking=
"scoreRanking"
/>
--
>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
:label=
"`未作答$
{
scoreRanking
.no_sheet_count}`" name="noAnswer" lazy>
<el-tab-pane
:label=
"`未作答$
{
count
.no_sheet_count}`" name="noAnswer" lazy>
<
RankingAll
:scoreRanking=
"scoreRanking"
/
>
<
!--
<RankingAll
:scoreRanking=
"scoreRanking"
/>
--
>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
:label=
"`未提交$
{
scoreRanking
.cache_count}`" name="toSubmit" lazy>
<el-tab-pane
:label=
"`未提交$
{
count
.cache_count}`" name="toSubmit" lazy>
<
RankingAll
:scoreRanking=
"scoreRanking"
/
>
<
!--
<RankingAll
:scoreRanking=
"scoreRanking"
/>
--
>
</el-tab-pane>
</el-tab-pane>
<RankingAll
:tabActive=
"tabStatus"
:scoreRanking=
"scoreRanking"
@
resCount=
"handleResCount"
/>
</el-tabs>
</el-tabs>
</el-card>
</el-card>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getScoreRanking
,
exportScoreList
}
from
'../api'
import
{
exportScoreList
}
from
'../api'
import
RankingAll
from
'./RankingAll.vue'
import
RankingAll
from
'./RankingAll.vue'
export
default
{
export
default
{
components
:
{
RankingAll
},
components
:
{
RankingAll
},
...
@@ -59,11 +60,24 @@ export default {
...
@@ -59,11 +60,24 @@ export default {
data
()
{
data
()
{
return
{
return
{
tabActive
:
'finished'
,
tabActive
:
'finished'
,
scoreRanking
:
{}
scoreRanking
:
{
course_id
:
this
.
course_id
,
examination_id
:
this
.
examination_id
,
chapter_id
:
this
.
chapter_id
,
type
:
this
.
type
,
// status: this.status,ƒ
class_id
:
this
.
classValue
},
count
:
{
checked_count
:
0
,
commit_count
:
0
,
no_sheet_count
:
0
,
cache_count
:
0
}
}
}
},
},
computed
:
{
computed
:
{
s
tatus
()
{
tabS
tatus
()
{
if
(
this
.
tabActive
===
'finished'
)
{
if
(
this
.
tabActive
===
'finished'
)
{
return
'2'
return
'2'
}
else
if
(
this
.
tabActive
===
'toEvaluate'
)
{
}
else
if
(
this
.
tabActive
===
'toEvaluate'
)
{
...
@@ -75,24 +89,25 @@ export default {
...
@@ -75,24 +89,25 @@ export default {
}
}
}
}
},
},
created
()
{
this
.
getScoreRanking
()
// created() {
},
// this.getScoreRanking()
// },
methods
:
{
methods
:
{
getScoreRanking
()
{
//
getScoreRanking() {
const
params
=
{
//
const params = {
course_id
:
this
.
course_id
,
//
course_id: this.course_id,
examination_id
:
this
.
examination_id
,
//
examination_id: this.examination_id,
chapter_id
:
this
.
chapter_id
,
//
chapter_id: this.chapter_id,
type
:
this
.
type
,
//
type: this.type,
status
:
this
.
status
,
//
status: this.status,
class_id
:
this
.
classValue
,
//
class_id: this.classValue,
page_size
:
10
//
page_size: 10
}
//
}
getScoreRanking
(
params
).
then
(
res
=>
{
//
getScoreRanking(params).then(res => {
this
.
scoreRanking
=
res
.
data
//
this.scoreRanking = res.data
})
//
})
},
//
},
handleClick
(
tab
,
event
)
{
handleClick
(
tab
,
event
)
{
if
(
tab
.
index
===
1
)
{
if
(
tab
.
index
===
1
)
{
// 待评价
// 待评价
...
@@ -105,6 +120,9 @@ export default {
...
@@ -105,6 +120,9 @@ export default {
this
.
getScoreRanking
()
this
.
getScoreRanking
()
}
}
},
},
handleResCount
(
val
)
{
this
.
count
=
val
},
// 导出
// 导出
exportScore
()
{
exportScore
()
{
const
params
=
{
const
params
=
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论