Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-qa
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-qa
Commits
efec2dc5
提交
efec2dc5
authored
2月 28, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
代码提交
上级
7f689cd5
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
42 行增加
和
20 行删除
+42
-20
CheckPaper.vue
src/modules/exam/components/CheckPaper.vue
+10
-1
PersonalInfo.vue
src/modules/exam/components/PersonalInfo.vue
+14
-7
CreateStudent.vue
src/modules/exam/views/CreateStudent.vue
+7
-3
Detail.vue
src/modules/exam/views/Detail.vue
+8
-7
List.vue
src/modules/exam/views/List.vue
+3
-2
没有找到文件。
src/modules/exam/components/CheckPaper.vue
浏览文件 @
efec2dc5
...
...
@@ -8,10 +8,13 @@
:filterMethod=
"filterMethod"
>
</el-transfer>
<el-card
style=
"margin-top: 30px"
>
<ul
style=
"margin-top: 20px"
>
<li
class=
"paper_desc"
>
考生的试卷会从以上已选的试卷中随机抽取
</li>
<li
class=
"paper_desc"
>
考试开始两个小时前,可以对试卷进行替换
</li>
</ul>
</el-card>
<el-row
class=
"btn_next"
>
<el-button
type=
"primary"
v-if=
"$route.query.isEdit === '2'"
@
click=
"saveExamInfo"
>
保存
</el-button>
<div
v-if=
"isEdit === '1'"
>
...
...
@@ -114,7 +117,13 @@ ul {
}
.paper_desc
{
font-size
:
16px
;
color
:
#
c01c4
0
;
color
:
#
00
0
;
}
}
::v-deep
.el-transfer-panel__body
{
height
:
295px
;
}
::v-deep
.el-checkbox-group
{
height
:
295px
;
}
</
style
>
src/modules/exam/components/PersonalInfo.vue
浏览文件 @
efec2dc5
...
...
@@ -19,7 +19,8 @@
</el-table-column>
<el-table-column
prop=
"sort"
label=
"权重"
>
<
template
slot-scope=
"scope"
>
<el-input
v-model=
"scope.row.sort"
active-color=
"#13ce66"
inactive-color=
"#ff4949"
>
</el-input>
<el-input
style=
"width: 100px"
v-model=
"scope.row.sort"
active-color=
"#13ce66"
inactive-color=
"#ff4949"
>
</el-input>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -35,6 +36,7 @@
<
script
>
import
{
getExamPaperDetail
,
updateExam
}
from
'../api'
export
default
{
data
()
{
return
{
...
...
@@ -149,12 +151,17 @@ export default {
id
:
JSON
.
parse
(
this
.
$route
.
query
.
row
).
exam_id
,
type
:
'student'
,
config
:
{
enabled_before
:
this
.
config
.
enabled_before
,
enabled_after
:
this
.
config
.
enabled_after
,
before_login
:
this
.
config
.
before_login
,
after_login
:
this
.
config
.
after_login
,
welcome_message
:
this
.
config
.
welcome_message
,
waiting_message
:
this
.
config
.
waiting_message
info
:
{
name
:
this
.
tableData
[
0
],
gender
:
this
.
tableData
[
1
],
id_number
:
this
.
tableData
[
2
],
age
:
this
.
tableData
[
3
],
major
:
this
.
tableData
[
4
],
school
:
this
.
tableData
[
5
],
email
:
this
.
tableData
[
6
],
educational_background
:
this
.
tableData
[
7
],
mobile
:
this
.
tableData
[
8
]
}
}
}
updateExam
(
params
).
then
(
res
=>
{
...
...
src/modules/exam/views/CreateStudent.vue
浏览文件 @
efec2dc5
...
...
@@ -81,7 +81,7 @@ export default {
rules
:
{
name
:
[{
required
:
true
,
message
:
'请输入姓名'
,
trigger
:
'blur'
}],
gender
:
[{
required
:
true
,
message
:
'请选择性别'
,
trigger
:
'change'
}],
id_number
:
[{
required
:
true
,
message
:
'请输入身份证号'
,
trigger
:
'blur'
}]
id_number
:
[{
required
:
true
,
message
:
'请输入
正确的
身份证号'
,
trigger
:
'blur'
}]
}
}
},
...
...
@@ -96,9 +96,13 @@ export default {
this
.
$refs
.
form
.
validate
(
valid
=>
{
if
(
valid
)
{
// 调用接口
addStudent
(
Object
.
assign
({
exam_id
:
this
.
id
},
this
.
form
)).
then
(
res
=>
{})
}
addStudent
(
Object
.
assign
({
exam_id
:
this
.
id
},
this
.
form
)).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
.
success
(
'添加考生成功'
)
history
.
go
(
-
1
)
}
})
}
})
}
}
...
...
src/modules/exam/views/Detail.vue
浏览文件 @
efec2dc5
...
...
@@ -61,12 +61,12 @@ import {
}
from
'../api'
const
stuStatus
=
[
{
id
:
'1'
,
name
:
'未开考'
},
{
id
:
'
1
'
,
name
:
'已登录'
},
{
id
:
'
1
'
,
name
:
'考试中'
},
{
id
:
'
1
'
,
name
:
'已中断'
},
{
id
:
'
1
'
,
name
:
'已提交'
},
{
id
:
'
1
'
,
name
:
'已完成'
},
{
id
:
'
1
'
,
name
:
'待批阅'
}
{
id
:
'
2
'
,
name
:
'已登录'
},
{
id
:
'
3
'
,
name
:
'考试中'
},
{
id
:
'
4
'
,
name
:
'已中断'
},
{
id
:
'
5
'
,
name
:
'已提交'
},
{
id
:
'
6
'
,
name
:
'已完成'
},
{
id
:
'
7
'
,
name
:
'待批阅'
}
]
export
default
{
data
()
{
...
...
@@ -112,7 +112,7 @@ export default {
],
columns
:
[
{
type
:
'selection'
,
minWidth
:
'50px'
,
fixed
:
'left'
},
{
label
:
'考生状态'
,
prop
:
'
relation
_status'
},
{
label
:
'考生状态'
,
prop
:
'
exam
_status'
},
{
label
:
'准考证号'
,
prop
:
'examinee_number'
},
{
label
:
'身份证号'
,
prop
:
'id_number'
},
{
label
:
'电话'
,
prop
:
'mobile'
},
...
...
@@ -247,6 +247,7 @@ export default {
}
},
mounted
()
{
// 获取转移列表
this
.
getTransferList
()
}
}
...
...
src/modules/exam/views/List.vue
浏览文件 @
efec2dc5
...
...
@@ -63,8 +63,9 @@ export default {
label
:
'考试时间'
,
prop
:
'exam_time'
,
computed
({
row
})
{
return
row
.
start_time
+
'-'
+
row
.
end_time
}
return
row
.
start_time
+
'~'
+
row
.
end_time
},
width
:
300
},
{
label
:
'应考人数'
,
prop
:
'exam_all'
},
{
label
:
'完成人数'
,
prop
:
'exam_complete'
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论