Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-qa
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-qa
Commits
c69492b4
提交
c69492b4
authored
3月 04, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug fixes
上级
2a1b8b81
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
125 行增加
和
69 行删除
+125
-69
BaseInfo.vue
src/modules/exam/components/BaseInfo.vue
+6
-2
CheckPaper.vue
src/modules/exam/components/CheckPaper.vue
+1
-1
ExamSetting.vue
src/modules/exam/components/ExamSetting.vue
+110
-60
Finished.vue
src/modules/exam/components/Finished.vue
+1
-1
List.vue
src/modules/exam/views/List.vue
+6
-4
NewExam.vue
src/modules/exam/views/NewExam.vue
+1
-1
没有找到文件。
src/modules/exam/components/BaseInfo.vue
浏览文件 @
c69492b4
<
template
>
<
template
>
<el-card
class=
"baseInfo_content"
>
<el-card
class=
"baseInfo_content"
>
<el-row
:span=
"24"
>
<el-row
:span=
"24"
>
考试名称:
<el-input
v-model=
"name"
placeholder=
"请输入考试名称"
style=
"width: 398px; margin-left: 20px"
></el-input>
<span
style=
"color: #c01c40"
>
*
</span>
考试名称:
<el-input
v-model=
"name"
placeholder=
"请输入考试名称"
style=
"width: 398px; margin-left: 20px"
></el-input>
</el-row>
</el-row>
<el-row
:span=
"24"
class=
"row_margin"
>
<el-row
:span=
"24"
class=
"row_margin"
>
考试时间:
<span
style=
"color: #c01c40"
>
*
</span>
考试时间:
<el-date-picker
<el-date-picker
v-model=
"exam_time"
v-model=
"exam_time"
type=
"datetimerange"
type=
"datetimerange"
...
...
src/modules/exam/components/CheckPaper.vue
浏览文件 @
c69492b4
...
@@ -35,7 +35,7 @@ export default {
...
@@ -35,7 +35,7 @@ export default {
ExamParerList
:
[],
ExamParerList
:
[],
q
:
[],
q
:
[],
filterMethod
(
query
,
item
)
{
filterMethod
(
query
,
item
)
{
return
item
.
label
.
indexOf
(
query
)
>
-
1
||
item
.
key
.
indexOf
(
query
)
>
-
1
return
item
.
label
.
indexOf
(
query
)
>
-
1
},
},
checkedArrs
:
[]
checkedArrs
:
[]
}
}
...
...
src/modules/exam/components/ExamSetting.vue
浏览文件 @
c69492b4
<
template
>
<
template
>
<
div
>
<
el-card
>
<el-card>
<el-card>
<el-row
:span=
"24"
>
<div
class=
"exam_before"
>
开考前:
<el-checkbox
v-model=
"config.enabled_ip_limit"
style=
"margin-left: 20px"
>
限定登录位置
</el-checkbox
<div
class=
"exam_before_text"
>
开考前:
</div>
>
<div
class=
"exam_before_right"
>
<span>
<div
class=
"exam_before_right_position"
>
<span
style=
"margin-top: 20px"
<el-checkbox
v-model=
"config.enabled_ip_limit"
>
限定登录位置
</el-checkbox>
>
您可以根据IP地址限制考生登录位置,只允许给定IP地址的考生登录考试。
<el-input
<div
class=
"exam_before_right_position_text"
>
v-model=
"config.ip_limits"
<div>
placeholder=
"如允许多个IP地址,请用英文逗号隔开"
您可以根据IP地址限制考生登录位置,只允许给定IP地址的考生登录考试。
style=
"width: 250px"
<el-input
:disabled=
"config.enabled_ip_limit === false"
v-model=
"config.ip_limits"
></el-input>
placeholder=
"如允许多个IP地址,请用英文逗号隔开"
您当前所在网络的IP地址是:
{{
ip
}}
</span
style=
"width: 250px"
>
:disabled=
"config.enabled_ip_limit === false"
</span>
></el-input>
</el-row>
</div>
<el-row
:span=
"24"
style=
"margin-left: 72px"
>
<div>
您当前所在网络的IP地址是:
{{
ip
}}
</div>
<el-checkbox
v-model=
"config.enabled_promise"
>
考试承诺书
</el-checkbox>
</div>
<span>
考生在登录考试后,需同意以下内容方可进入考试。
</span>
</div>
<v-editor
v-model=
"config.promise_message"
v-if=
"config.enabled_promise === true"
></v-editor>
<div
class=
"exam_before_right_promise"
>
</el-row>
<el-checkbox
v-model=
"config.enabled_promise"
>
考试承诺书
</el-checkbox>
<div
class=
"exam_before_right_promise_text1"
>
考生在登录考试后,需同意以下内容方可进入考试。
</div>
<v-editor
v-model=
"config.promise_message"
v-if=
"config.enabled_promise === true"
></v-editor>
</div>
</div>
</div>
</el-card>
</el-card>
<el-card
style=
"margin-top: 30px"
>
<el-card
style=
"margin-top: 30px"
>
<el-row>
<div
class=
"exam_before"
>
考试中:
<el-checkbox
v-model=
"config.enabled_lock"
style=
"margin-left: 20px"
>
锁定考试
</el-checkbox>
<div
class=
"exam_before_text"
>
考试中:
</div>
<div
style=
"margin-left: 120px"
>
<div
class=
"exam_before_right"
>
<div>
<div
class=
"exam_before_right_position"
>
记录考生登录考试次数,只允许登录
<el-input
<el-checkbox
v-model=
"config.enabled_lock"
>
锁定考试
</el-checkbox>
style=
"width: 100px"
<div
class=
"exam_before_right_position_text"
>
v-model=
"config.max_login_times"
<div>
:disabled=
"config.enabled_lock === false"
记录考生登录考试次数,只允许登录
<el-input
></el-input
style=
"width: 100px"
>
次
v-model=
"config.max_login_times"
:disabled=
"config.enabled_lock === false"
></el-input
>
次
</div>
<div>
当登录考试次数超过限定次数,系统会阻止考生登录考试
</div>
<el-checkbox
v-model=
"config.enabled_web_login"
:disabled=
"config.enabled_lock === false"
>
网页考试
</el-checkbox
>
<div>
记录考生离开考试页面次数,每超过
<el-input
v-model=
"config.leave_interval"
style=
"width: 100px"
:disabled=
"config.enabled_lock === false"
></el-input>
<span>
秒计为离开1次,只允许离开
</span>
<el-input
style=
"width: 100px"
v-model=
"config.max_leave_times"
:disabled=
"config.enabled_lock === false"
></el-input
>
次
</div>
<div>
当登录考试次数超过限定次数,系统会阻止考生登录考试
</div>
</div>
</div>
<div
class=
"exam_before_right_promise"
>
<el-checkbox
v-model=
"config.enabled_watermark"
>
答题水印
</el-checkbox>
<div
class=
"exam_before_right_promise_text"
>
考生作答页面,使用场次唯一编号和考生准考证号作为背景水印。
<br
/>
考生作答过程中截屏或者偷录考试内容,可凭此水印追溯到录屏信息。
</div>
</div>
</div>
<div>
当登录考试次数超过限定次数,系统会阻止考生登录考试
</div>
<el-checkbox
v-model=
"config.enabled_web_login"
:disabled=
"config.enabled_lock === false"
>
网页考试
</el-checkbox
>
<br
/>
<span>
记录考生离开考试页面次数,每超过
</span>
<el-input
v-model=
"config.leave_interval"
style=
"width: 100px"
:disabled=
"config.enabled_lock === false"
></el-input>
<span>
秒计为离开1次,只允许离开
</span>
<el-input
style=
"width: 100px"
v-model=
"config.max_leave_times"
:disabled=
"config.enabled_lock === false"
></el-input
>
次
<div>
当登录考试次数超过限定次数,系统会阻止考生登录考试
</div>
</div>
</el-row>
<el-row
style=
"margin: 10px 0 0 73px"
>
<el-checkbox
v-model=
"config.enabled_watermark"
>
答题水印
</el-checkbox>
<div
style=
"margin-left: 50px"
>
考生作答页面,使用场次唯一编号和考生准考证号作为背景水印。
<br
/>
考生作答过程中截屏或者偷录考试内容,可凭此水印追溯到录屏信息。
</div>
</div>
</
el-row
>
</
div
>
<el-row
:span=
"24"
class=
"btn_next"
>
<el-row
:span=
"24"
class=
"btn_next"
>
<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'"
>
<div
v-if=
"isEdit === '1'"
>
...
@@ -69,15 +80,15 @@
...
@@ -69,15 +80,15 @@
</div>
</div>
</el-row>
</el-row>
</el-card>
</el-card>
</
div
>
</
el-card
>
</
template
>
</
template
>
<
script
>
<
script
>
import
VEditor
from
'@/components/tinymce/Index.vue'
//
import VEditor from '@/components/tinymce/Index.vue'
import
{
getExamPaperDetail
,
updateExam
}
from
'../api'
import
{
getExamPaperDetail
,
updateExam
}
from
'../api'
export
default
{
export
default
{
components
:
{
VEditor
},
//
components: { VEditor },
props
:
{
props
:
{
isEdit
:
{
isEdit
:
{
type
:
String
,
type
:
String
,
...
@@ -165,4 +176,43 @@ export default {
...
@@ -165,4 +176,43 @@ export default {
text-align
:
right
;
text-align
:
right
;
margin-top
:
20px
;
margin-top
:
20px
;
}
}
.exam_before
{
display
:
flex
;
align-items
:
flex-start
;
.exam_before_text
{
width
:
100px
;
}
.exam_before_right
{
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
flex-start
;
flex-direction
:
column
;
.exam_before_right_position
{
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
flex-start
;
.exam_before_right_position_text
{
margin-left
:
25px
;
line-height
:
1
.5
;
}
}
.exam_before_right_promise
{
display
:
flex
;
justify-content
:
flex-start
;
margin-top
:
10px
;
.exam_before_right_promise_text
{
margin-left
:
25px
;
line-height
:
1
.5
;
}
.exam_before_right_promise_text1
{
margin-left
:
40px
;
line-height
:
1
.5
;
}
}
}
}
::v-deep
.el-checkbox__label
{
font-size
:
18px
;
}
</
style
>
</
style
>
src/modules/exam/components/Finished.vue
浏览文件 @
c69492b4
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<el-card>
<el-card>
<div
class=
"finished_title"
>
{{
params
.
name
}}
</div>
<div
class=
"finished_title"
>
{{
params
.
name
}}
</div>
<div
class=
"login_time item"
>
登录时间段:
{{
params
.
start_time
}}
-
{{
params
.
end_time
}}
</div>
<div
class=
"login_time item"
>
登录时间段:
{{
params
.
start_time
}}
-
{{
params
.
end_time
}}
</div>
<div
class=
"check_exam item"
>
选择
考试:
{{
checkedPapers
.
toString
()
}}
</div>
<div
class=
"check_exam item"
>
选择
试卷:
{{
checkedPapers
.
toString
()
}}
</div>
<div
class=
"exam_setting item"
>
<div
class=
"exam_setting item"
>
考试配置:
<el-button
v-show=
"configs.enabled_ip_limit === true"
>
限定登录位置
</el-button>
考试配置:
<el-button
v-show=
"configs.enabled_ip_limit === true"
>
限定登录位置
</el-button>
<el-button
type=
"primary"
v-show=
"configs.enabled_promise === true"
>
考试承诺书
</el-button>
<el-button
type=
"primary"
v-show=
"configs.enabled_promise === true"
>
考试承诺书
</el-button>
...
...
src/modules/exam/views/List.vue
浏览文件 @
c69492b4
...
@@ -111,11 +111,13 @@ export default {
...
@@ -111,11 +111,13 @@ export default {
},
},
// 单个删除
// 单个删除
handleDelete
(
row
)
{
handleDelete
(
row
)
{
const
params
=
{
id
:
row
.
exam_id
}
this
.
$confirm
(
'确认删除改考试吗?删除后不可恢复'
).
then
(
_
=>
{
delExamPaper
(
params
).
then
(
res
=>
{
const
params
=
{
id
:
row
.
exam_id
}
this
.
$message
.
success
(
'删除考试成功'
)
delExamPaper
(
params
).
then
(
res
=>
{
this
.
$message
.
success
(
'删除考试成功'
)
})
this
.
$refs
.
list
.
refetch
()
})
})
this
.
$refs
.
list
.
refetch
()
}
}
}
}
}
}
...
...
src/modules/exam/views/NewExam.vue
浏览文件 @
c69492b4
<
template
>
<
template
>
<app-card>
<app-card>
<el-steps
:active=
"stepsIndex"
>
<el-steps
:active=
"stepsIndex"
align-center
>
<el-step
title=
"基本信息"
>
</el-step>
<el-step
title=
"基本信息"
>
</el-step>
<el-step
title=
"选择试卷"
></el-step>
<el-step
title=
"选择试卷"
></el-step>
<el-step
title=
"个人信息"
></el-step>
<el-step
title=
"个人信息"
></el-step>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论