Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-learn
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-learn
Commits
1faf3c11
提交
1faf3c11
authored
12月 01, 2021
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:tab切换调整
上级
42281114
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
51 行增加
和
36 行删除
+51
-36
ClassLIst.vue
src/modules/teacher/data/course/views/ClassLIst.vue
+1
-1
Finished.vue
src/modules/teacher/data/exam/components/Finished.vue
+1
-13
RankingAll.vue
src/modules/teacher/data/exam/components/RankingAll.vue
+8
-2
ScoreRanking.vue
src/modules/teacher/data/exam/components/ScoreRanking.vue
+25
-7
ClassList.vue
src/modules/teacher/data/exam/views/ClassList.vue
+15
-12
ClassList.vue
src/modules/teacher/data/test/views/ClassList.vue
+1
-1
没有找到文件。
src/modules/teacher/data/course/views/ClassLIst.vue
浏览文件 @
1faf3c11
...
...
@@ -2,7 +2,7 @@
<app-container>
<app-list
v-bind=
"tableOptions"
ref=
"list"
>
<template
#
header-aside
>
<el-button
type=
"text"
style=
"margin-top: 5px; font-size: 24px"
>
导出
</el-button>
<el-button
type=
"text"
>
导出
</el-button>
</
template
>
</app-list>
</app-container>
...
...
src/modules/teacher/data/exam/components/Finished.vue
浏览文件 @
1faf3c11
...
...
@@ -24,7 +24,6 @@ export default {
tableOptions
()
{
return
{
remote
:
{},
columns
:
[
{
label
:
'排名'
,
...
...
@@ -48,18 +47,7 @@ export default {
}
}
},
mounted
()
{
if
(
this
.
tabActive
===
'baseInfo'
)
{
// 接口请求 已结束
alert
(
'111'
)
}
else
if
(
this
.
tabActive
===
'toEvaluate'
)
{
// 接口请求 待评价
alert
(
'222'
)
}
else
{
// 接口请求 未作答
alert
(
'333'
)
}
},
mounted
()
{},
methods
:
{
toPersonal
(
row
)
{
this
.
$router
.
push
({
...
...
src/modules/teacher/data/exam/components/RankingAll.vue
浏览文件 @
1faf3c11
...
...
@@ -2,7 +2,8 @@
<app-container>
<app-list
v-bind=
"tableOptions"
ref=
"list"
>
<template
v-slot:table-operate=
"
{ row }">
<el-button
type=
"text"
@
click=
"toDetail(row)"
>
查看
</el-button>
<el-button
type=
"text"
@
click=
"toDetail(row)"
v-show=
"tabActive === 'finished'"
>
查看
</el-button>
<el-button
type=
"text"
@
click=
"toDetail(row)"
v-show=
"tabActive === 'toEvaluate'"
>
批阅
</el-button>
</
template
>
</app-list>
</app-container>
...
...
@@ -13,12 +14,17 @@ export default {
data
()
{
return
{}
},
props
:
{
tabActive
:
{
type
:
String
,
default
:
''
}
},
computed
:
{
// 列表配置
tableOptions
()
{
return
{
remote
:
{},
// 'row-style': { height: '10px', color: 'red' },
columns
:
[
{
label
:
'排名'
,
prop
:
'paper_title'
,
align
:
'center'
},
{
label
:
'姓名'
,
prop
:
'class_name'
,
align
:
'center'
},
...
...
src/modules/teacher/data/exam/components/ScoreRanking.vue
浏览文件 @
1faf3c11
...
...
@@ -2,14 +2,14 @@
<el-card
style=
"height: 400px"
>
<h1
style=
"color: #333; font-size: 16px; border-left: 3px solid #aa1941; padding-left: 7px"
>
分数排名
</h1>
<el-button
type=
"text"
style=
"font-size: 16px; color: #aa1941; float: right; margin-top: -40px"
>
导出
</el-button>
<el-tabs
v-model=
"tabActive"
style=
"margin-top: 30px"
>
<el-tab-pane
label=
"已完成"
name=
"
baseInfo
"
>
<RankingAll
/>
<el-tabs
v-model=
"tabActive"
style=
"margin-top: 30px"
@
canplaythrough=
"handleClick"
>
<el-tab-pane
label=
"已完成"
name=
"
finished
"
>
<RankingAll
:tabActive=
"tabActive"
/>
</el-tab-pane>
<el-tab-pane
label=
"待评价"
name=
"
contacts
"
lazy
>
<RankingAll
/>
<el-tab-pane
label=
"待评价"
name=
"
toEvaluate
"
lazy
>
<RankingAll
:tabActive=
"tabActive"
/>
</el-tab-pane>
<el-tab-pane
label=
"未作答"
name=
"
project
"
lazy
>
<el-tab-pane
label=
"未作答"
name=
"
noAnswer
"
lazy
>
<RankingAll
/>
</el-tab-pane>
<el-tab-pane
label=
"待提交"
name=
"toSubmit"
lazy
>
...
...
@@ -25,7 +25,25 @@ export default {
components
:
{
RankingAll
},
data
()
{
return
{
tabActive
:
'baseInfo'
tabActive
:
'finished'
}
},
created
()
{
// 已结束
},
methods
:
{
handleClick
(
tab
,
event
)
{
// console.log(tab, event)
if
(
tab
.
index
===
1
)
{
// 待评价
alert
(
'111'
)
}
else
if
(
tab
.
index
===
2
)
{
// 未作答
alert
(
'222'
)
}
else
{
// 未提交
alert
(
'333'
)
}
}
}
}
...
...
src/modules/teacher/data/exam/views/ClassList.vue
浏览文件 @
1faf3c11
...
...
@@ -3,16 +3,16 @@
<div
style=
"font-size: 32px; margin-bottom: 15px"
>
测试班级一
</div>
<app-card>
<h1
class=
"title"
style=
"font-size: 28px"
>
班级排名
</h1>
<el-button
type=
"text"
style=
"f
ont-size: 28px; f
loat: right; margin-top: -40px"
>
导出
</el-button>
<el-tabs
v-model=
"tabActive"
style=
"margin-top: 30px"
tab-click=
"handleClick"
>
<el-button
type=
"text"
style=
"float: right; margin-top: -40px"
>
导出
</el-button>
<el-tabs
v-model=
"tabActive"
style=
"margin-top: 30px"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"已结束"
name=
"finished"
>
<Finished
:tabActive=
"tabActive"
/>
<Finished
/>
</el-tab-pane>
<el-tab-pane
label=
"待评价"
name=
"toEvaluate"
lazy
>
<Finished
:tabActive=
"tabActive"
/>
<Finished
/>
</el-tab-pane>
<el-tab-pane
label=
"未作答"
name=
"noAnswer"
lazy
>
<Finished
:tabActive=
"tabActive"
/>
<Finished
/>
</el-tab-pane>
</el-tabs>
</app-card>
...
...
@@ -25,18 +25,21 @@ export default {
components
:
{
Finished
},
data
()
{
return
{
tabActive
:
'
baseInfo
'
tabActive
:
'
finished
'
}
},
created
()
{
// 已结束网络请求
},
methods
:
{
handleClick
(
tab
,
event
)
{
console
.
log
(
tab
,
event
)
if
(
tab
.
index
===
0
)
{
// 网络请求1
}
else
if
(
tab
.
index
===
1
)
{
// 网络请求2
// console.log(tab, event)
if
(
tab
.
index
===
1
)
{
// 待评价
alert
(
'111'
)
}
else
{
// 网络请求3
// 未作答
alert
(
'222'
)
}
}
}
...
...
src/modules/teacher/data/test/views/ClassList.vue
浏览文件 @
1faf3c11
...
...
@@ -3,7 +3,7 @@
<div
style=
"font-size: 32px; margin-bottom: 15px"
>
测试班级一
</div>
<app-card>
<h1
class=
"title"
style=
"font-size: 28px"
>
班级排名
</h1>
<el-button
type=
"text"
style=
"f
ont-size: 28px; f
loat: right; margin-top: -40px"
>
导出
</el-button>
<el-button
type=
"text"
style=
"float: right; margin-top: -40px"
>
导出
</el-button>
<el-tabs
v-model=
"tabActive"
style=
"margin-top: 30px"
>
<el-tab-pane
label=
"已结束"
name=
"baseInfo"
>
<Finished
/>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论