Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zhengyuan-danger-chemistry-manage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
zhengyuan-danger-chemistry-manage
Commits
0a89c884
Commit
0a89c884
authored
2 years ago
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
培训及考试人脸验证 gengdidi
parent
131f7091
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
7 deletions
+36
-7
application-prd.yml
danger-manage-admin/src/main/resources/application-prd.yml
+3
-3
TTrainCourse.java
.../src/main/java/com/zehong/system/domain/TTrainCourse.java
+11
-0
TTrainCourseMapper.xml
...m/src/main/resources/mapper/system/TTrainCourseMapper.xml
+8
-3
Lesson.vue
...ws/educationPlanExam/lessonsProgram/components/Lesson.vue
+7
-0
Lesson.vue
...c/views/educationPlanExam/textPaper/components/Lesson.vue
+7
-1
No files found.
danger-manage-admin/src/main/resources/application-prd.yml
View file @
0a89c884
...
...
@@ -74,13 +74,13 @@ spring:
# redis 配置
redis
:
# 地址
host
:
127.0.0.1
host
:
36.148.23.59
# 端口,默认为6379
port
:
6379
# 数据库索引
database
:
0
# 密码
password
:
password
:
1qaz2wsx3edc
# 连接超时时间
timeout
:
10s
lettuce
:
...
...
@@ -106,7 +106,7 @@ zehong:
# 实例演示开关
demoEnabled
:
true
# 文件路径 示例( Windows配置D:/zehong/uploadPath,Linux配置 /home/zehong/uploadPath)
profile
:
/home
/zehong/uploadPath
profile
:
E:
/zehong/uploadPath
# 获取ip地址开关
addressEnabled
:
false
# 验证码类型 math 数组计算 char 字符验证
...
...
This diff is collapsed.
Click to expand it.
danger-manage-system/src/main/java/com/zehong/system/domain/TTrainCourse.java
View file @
0a89c884
...
...
@@ -100,6 +100,9 @@ public class TTrainCourse extends BaseEntity
/**判断题分数*/
private
Integer
judgmentScore
;
/** 是否人脸认证:1是 2否 */
private
String
isVeriftyFace
;
public
static
long
getSerialVersionUID
()
{
return
serialVersionUID
;
}
...
...
@@ -297,6 +300,14 @@ public class TTrainCourse extends BaseEntity
return
testPersons
;
}
public
String
getIsVeriftyFace
()
{
return
isVeriftyFace
;
}
public
void
setIsVerfityFace
(
String
isVeriftyFace
)
{
this
.
isVeriftyFace
=
isVeriftyFace
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
...
...
This diff is collapsed.
Click to expand it.
danger-manage-system/src/main/resources/mapper/system/TTrainCourseMapper.xml
View file @
0a89c884
...
...
@@ -28,6 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"multipleChoiceScore"
column=
"multiple_choice_score"
/>
<result
property=
"singleChoiceScore"
column=
"single_choice_score"
/>
<result
property=
"judgmentScore"
column=
"judgment_score"
/>
<result
property=
"isVeriftyFace"
column=
"is_verifty_face"
/>
</resultMap>
<resultMap
id=
"StatisticsTrainCourseResult"
type=
"StatisticsTrainCourse"
>
...
...
@@ -42,7 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql
id=
"selectTTrainCourseVo"
>
select multiple_choice_score,single_choice_score,judgment_score,course_id, course_name, course_type, course_conent, status,personnel_type, release_time, enclosure, video, qualified_num, topic_num, create_time, create_user, is_del, data_kind, test_start_time, test_end_time, test_persons,duration from t_train_course
select multiple_choice_score,single_choice_score,judgment_score,course_id, course_name, course_type, course_conent, status,personnel_type, release_time, enclosure, video, qualified_num, topic_num, create_time, create_user, is_del, data_kind, test_start_time, test_end_time, test_persons,duration
,is_verifty_face
from t_train_course
</sql>
<select
id=
"selectTTrainCourseList"
parameterType=
"TTrainCourse"
resultMap=
"TTrainCourseResult"
>
...
...
@@ -65,6 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"testStartTime != null "
>
and test_start_time = #{testStartTime}
</if>
<if
test=
"testEndTime != null "
>
and test_end_time = #{testEndTime}
</if>
<if
test=
"testPersons != null and testPersons != ''"
>
and test_persons = #{testPersons}
</if>
<if
test=
"isVeriftyFace != null and isVeriftyFace != ''"
>
and is_verifty_face = #{isVeriftyFace}
</if>
</where>
</select>
...
...
@@ -97,7 +99,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"multipleChoiceScore != null"
>
multiple_choice_score,
</if>
<if
test=
"singleChoiceScore != null"
>
single_choice_score,
</if>
<if
test=
"judgmentScore != null"
>
judgment_score,
</if>
</trim>
<if
test=
"isVeriftyFace != null"
>
is_verifty_face,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"courseName != null"
>
#{courseName},
</if>
<if
test=
"courseType != null"
>
#{courseType},
</if>
...
...
@@ -120,7 +123,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"multipleChoiceScore != null"
>
#{multipleChoiceScore},
</if>
<if
test=
"singleChoiceScore != null"
>
#{singleChoiceScore},
</if>
<if
test=
"judgmentScore != null"
>
#{judgmentScore},
</if>
</trim>
<if
test=
"isVeriftyFace != null"
>
#{isVeriftyFace},
</if>
</trim>
</insert>
<update
id=
"updateTTrainCourse"
parameterType=
"TTrainCourse"
>
...
...
@@ -147,6 +151,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"multipleChoiceScore != null"
>
multiple_choice_score = #{multipleChoiceScore},
</if>
<if
test=
"singleChoiceScore != null"
>
single_choice_score = #{singleChoiceScore},
</if>
<if
test=
"judgmentScore != null"
>
judgment_score = #{judgmentScore},
</if>
<if
test=
"isVeriftyFace != null"
>
is_verifty_face = #{isVeriftyFace},
</if>
</trim>
where course_id = #{courseId}
</update>
...
...
This diff is collapsed.
Click to expand it.
danger-manage-web/src/views/educationPlanExam/lessonsProgram/components/Lesson.vue
View file @
0a89c884
...
...
@@ -93,6 +93,10 @@
:disabled=
"checkLock"
/>
</el-form-item>
<el-form-item
label=
"是否人脸认证"
prop=
"isVeriftyFace"
style=
"margin-left: 50px"
>
<el-radio
v-model=
"form.isVeriftyFace"
label=
"1"
>
是
</el-radio>
<el-radio
v-model=
"form.isVeriftyFace"
label=
"2"
>
否
</el-radio>
</el-form-item>
</div>
<!--
</div>
-->
<el-form-item
label=
"课程内容"
prop=
"courseConent"
>
...
...
@@ -166,6 +170,7 @@ export default {
courseConent
:
""
,
video
:
""
,
enclosure
:
""
,
isVeriftyFace
:
"2"
},
fileType
:
[
"doc"
,
"docx"
,
"xls"
,
"xlsx"
,
"ppt"
,
"txt"
,
"pdf"
],
fileListVideo
:
[],
...
...
@@ -234,6 +239,7 @@ export default {
duration
,
testStartTime
,
testEndTime
,
isVeriftyFace
,
}
=
data
;
this
.
form
=
{
courseName
,
...
...
@@ -244,6 +250,7 @@ export default {
duration
,
testStartTime
,
testEndTime
,
isVeriftyFace
,
};
console
.
log
(
'video'
,
video
)
this
.
fileListVideo
=
video
?
[
...
...
This diff is collapsed.
Click to expand it.
danger-manage-web/src/views/educationPlanExam/textPaper/components/Lesson.vue
View file @
0a89c884
...
...
@@ -44,6 +44,10 @@
:disabled=
"checkLock"
/>
</el-form-item>
<el-form-item
label=
"是否人脸认证"
prop=
"isVeriftyFace"
style=
"margin-left: 50px"
>
<el-radio
v-model=
"form.isVeriftyFace"
label=
"1"
>
是
</el-radio>
<el-radio
v-model=
"form.isVeriftyFace"
label=
"2"
>
否
</el-radio>
</el-form-item>
</div>
<el-form-item
label=
"选择人员"
prop=
"testPersons"
>
<ChangePapel
...
...
@@ -93,6 +97,7 @@ export default {
testStartTime
:
""
,
testEndTime
:
""
,
testPersons
:
""
,
isVeriftyFace
:
"2"
},
jsonSelectNameList
:
null
,
// '[{"peoPleId":880,"peoPleName":"孙卓亚"},{"peoPleId":871,"peoPleName":"张玉宾"}]',
...
...
@@ -146,12 +151,13 @@ export default {
getLessonById
(
this
.
courseId
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
const
data
=
res
.
data
;
const
{
courseName
,
testStartTime
,
testEndTime
,
testPersons
}
=
data
;
const
{
courseName
,
testStartTime
,
testEndTime
,
testPersons
,
isVeriftyFace
}
=
data
;
this
.
form
=
{
courseName
,
testStartTime
,
testEndTime
,
testPersons
,
isVeriftyFace
,
};
this
.
jsonSelectNameList
=
testPersons
;
this
.
$refs
.
changePaple
.
changeNameList
(
this
.
jsonSelectNameList
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment