Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-qa
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-qa
Commits
11a39ecc
提交
11a39ecc
authored
11月 30, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore:考试结束时间超过2037年,默认为2037-01-01 00:00:00
上级
a638f279
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
26 行增加
和
6 行删除
+26
-6
BaseInfo.vue
src/modules/exam/components/BaseInfo.vue
+26
-6
没有找到文件。
src/modules/exam/components/BaseInfo.vue
浏览文件 @
11a39ecc
...
...
@@ -31,7 +31,11 @@
<el-row
:span=
"24"
class=
"row_margin"
>
<el-checkbox
v-model=
"config.enabled_after"
>
限制结束
</el-checkbox>
开考后
<el-input
v-model=
"config.after_login"
class=
"input_time"
:disabled=
"config.enabled_after === false"
></el-input
<el-input
v-model=
"config.after_login"
class=
"input_time"
:disabled=
"config.enabled_after === false"
></el-input
>
分钟,不允许考生入场,考中退出的考生不受此影响。
</el-row>
<el-row
:span=
"24"
class=
"row_margin"
>
...
...
@@ -44,7 +48,12 @@
<v-editor
v-model=
"config.welcome_message"
class=
"editor"
></v-editor>
</el-row>
<el-row
:span=
"24"
class=
"btn_next row_margin"
>
<el-button
type=
"primary"
v-if=
"$route.query.isEdit === '2'"
@
click=
"saveExamInfo"
>
保存
</el-button>
<el-button
type=
"primary"
v-if=
"$route.query.isEdit === '2'"
@
click=
"saveExamInfo"
>
保存
</el-button
>
<div
v-if=
"isEdit === '1'"
>
<el-button
type=
"primary"
disabled
>
上一步
</el-button>
<el-button
type=
"primary"
@
click=
"nextStep"
>
下一步
</el-button>
...
...
@@ -83,7 +92,14 @@ export default {
return
this
.
exam_time
[
0
]
},
end_time
()
{
return
this
.
exam_time
[
1
]
if
(
new
Date
(
'2037-01-01 00:00:00'
).
getTime
()
<
new
Date
(
this
.
exam_time
[
1
]).
getTime
()
)
{
return
'2037-01-01 00:00:00'
}
else
{
return
this
.
exam_time
[
1
]
}
},
exam_id
()
{
return
this
.
$route
.
query
.
exam_id
...
...
@@ -96,7 +112,7 @@ export default {
},
methods
:
{
getDetailInfo
()
{
getExamPaperDetail
({
id
:
this
.
exam_id
}).
then
(
res
=>
{
getExamPaperDetail
({
id
:
this
.
exam_id
}).
then
(
(
res
)
=>
{
console
.
log
(
res
)
const
detailList
=
res
.
data
.
exam_info
this
.
exam_time
=
[
detailList
.
start_time
,
detailList
.
end_time
]
...
...
@@ -116,7 +132,11 @@ export default {
this
.
$message
.
warning
(
'请输入考试名称'
)
return
}
if
((
!
this
.
start_time
&&
!
this
.
end_time
)
||
!
this
.
start_time
||
!
this
.
end_time
)
{
if
(
(
!
this
.
start_time
&&
!
this
.
end_time
)
||
!
this
.
start_time
||
!
this
.
end_time
)
{
this
.
$message
.
warning
(
'请选择考试时间'
)
return
}
...
...
@@ -162,7 +182,7 @@ export default {
}
}
updateExam
(
params
).
then
(
res
=>
{
updateExam
(
params
).
then
(
(
res
)
=>
{
history
.
go
(
-
1
)
})
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论