Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-lab
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-lab
Commits
39a11865
提交
39a11865
authored
6月 19, 2023
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: 新增查看学生答题状态
上级
814621fe
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
33 行增加
和
6 行删除
+33
-6
StudentListDialog.vue
...les/admin/lab/experiment/components/StudentListDialog.vue
+30
-6
View.vue
src/modules/admin/lab/experiment/views/View.vue
+3
-0
没有找到文件。
src/modules/admin/lab/experiment/components/StudentListDialog.vue
浏览文件 @
39a11865
...
@@ -4,6 +4,7 @@ import type { ClassItem } from '../types'
...
@@ -4,6 +4,7 @@ import type { ClassItem } from '../types'
import
{
getClassStudentList
}
from
'../api'
import
{
getClassStudentList
}
from
'../api'
interface
Props
{
interface
Props
{
experimentId
:
string
data
:
ClassItem
data
:
ClassItem
}
}
...
@@ -13,9 +14,32 @@ const props = defineProps<Props>()
...
@@ -13,9 +14,32 @@ const props = defineProps<Props>()
const
listOptions
=
{
const
listOptions
=
{
remote
:
{
remote
:
{
httpRequest
:
getClassStudentList
,
httpRequest
:
getClassStudentList
,
params
:
{
class_id
:
props
.
data
?.
id
}
params
:
{
class_id
:
props
.
data
?.
id
,
experiment_id
:
props
.
experimentId
},
},
callback
(
res
:
any
)
{
columns
:
[
questions
.
value
=
res
.
questions
return
res
}
}
}
const
questions
=
ref
<
{
id
:
string
}[]
>
([])
const
questionColumns
=
computed
(()
=>
{
return
questions
.
value
.
map
((
item
,
index
)
=>
{
return
{
prop
:
item
.
id
,
label
:
`第
${
index
+
1
}
题`
,
computed
({
row
}:
any
)
{
const
value
=
row
[
item
.
id
]
if
(
value
===
'进行中'
)
return
'<span style="color:#b20f3c">进行中</span>'
if
(
value
===
'已完成'
)
return
'<span style="color:#b8b5b5">已完成</span>'
return
value
}
}
})
})
const
columns
=
computed
(()
=>
{
return
[
{
label
:
'序号'
,
type
:
'index'
,
width
:
60
},
{
label
:
'序号'
,
type
:
'index'
,
width
:
60
},
{
label
:
'学号'
,
prop
:
'id_number'
},
{
label
:
'学号'
,
prop
:
'id_number'
},
{
label
:
'姓名'
,
prop
:
'name'
},
{
label
:
'姓名'
,
prop
:
'name'
},
...
@@ -23,12 +47,12 @@ const listOptions = {
...
@@ -23,12 +47,12 @@ const listOptions = {
{
label
:
'所属部门/学校'
,
prop
:
'organ_id_name'
},
{
label
:
'所属部门/学校'
,
prop
:
'organ_id_name'
},
{
label
:
'专业'
,
prop
:
'specialty_id_name'
},
{
label
:
'专业'
,
prop
:
'specialty_id_name'
},
{
label
:
'班级'
,
prop
:
'class_id_name'
}
{
label
:
'班级'
,
prop
:
'class_id_name'
}
]
]
.
concat
(
questionColumns
.
value
)
}
}
)
</
script
>
</
script
>
<
template
>
<
template
>
<el-dialog
title=
"查看班级学生"
>
<el-dialog
title=
"查看班级学生"
>
<AppList
v-bind=
"listOptions"
></AppList>
<AppList
v-bind=
"listOptions"
:columns=
"columns"
></AppList>
<el-row
justify=
"center"
>
<el-row
justify=
"center"
>
<el-button
round
auto-insert-space
@
click=
"$emit('update:modelValue', false)"
>
关闭
</el-button>
<el-button
round
auto-insert-space
@
click=
"$emit('update:modelValue', false)"
>
关闭
</el-button>
</el-row>
</el-row>
...
...
src/modules/admin/lab/experiment/views/View.vue
浏览文件 @
39a11865
...
@@ -42,6 +42,8 @@ const listOptions = {
...
@@ -42,6 +42,8 @@ const listOptions = {
{
label
:
'专业名称'
,
prop
:
'specialty_id_name'
},
{
label
:
'专业名称'
,
prop
:
'specialty_id_name'
},
{
label
:
'班级名称'
,
prop
:
'name'
},
{
label
:
'班级名称'
,
prop
:
'name'
},
{
label
:
'学生人数'
,
prop
:
'student_nums'
},
{
label
:
'学生人数'
,
prop
:
'student_nums'
},
{
label
:
'已完成人数'
,
prop
:
'complete_nums'
},
{
label
:
'未完成人数'
,
prop
:
'not_complete_nums'
},
{
label
:
'更新时间'
,
prop
:
'updated_time'
},
{
label
:
'更新时间'
,
prop
:
'updated_time'
},
{
label
:
'操作'
,
slots
:
'table-x'
,
width
:
300
}
{
label
:
'操作'
,
slots
:
'table-x'
,
width
:
300
}
]
]
...
@@ -149,6 +151,7 @@ const dmlURL = computed(() => {
...
@@ -149,6 +151,7 @@ const dmlURL = computed(() => {
<StudentListDialog
<StudentListDialog
v-model=
"studentListVisible"
v-model=
"studentListVisible"
:data=
"rowData"
:data=
"rowData"
:experimentId=
"id"
v-if=
"studentListVisible && rowData"
></StudentListDialog>
v-if=
"studentListVisible && rowData"
></StudentListDialog>
<ViewGradeRules
v-model=
"gradeRulesVisible"
:data=
"detail"
v-if=
"gradeRulesVisible && detail"
></ViewGradeRules>
<ViewGradeRules
v-model=
"gradeRulesVisible"
:data=
"detail"
v-if=
"gradeRulesVisible && detail"
></ViewGradeRules>
<ViewReportRules
v-model=
"reportRulesVisible"
:experiment_id=
"id"
v-if=
"reportRulesVisible"
></ViewReportRules>
<ViewReportRules
v-model=
"reportRulesVisible"
:experiment_id=
"id"
v-if=
"reportRulesVisible"
></ViewReportRules>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论