Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
DG_FAF
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
DG_FAF
Commits
54acf496
Commit
54acf496
authored
May 04, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充部分题型没有配置检查的问题
parent
4d6c66a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
form.component.ts
form_angular/src/app/form/form.component.ts
+31
-0
No files found.
form_angular/src/app/form/form.component.ts
View file @
54acf496
...
...
@@ -416,6 +416,20 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
scoreConfigErr
.
push
(
`内容
${
hotZoneConfigIndex
+
1
}
: 分数配置为0或者有异常`
)
}
break
;
// 音频播放题型
case
this
.
AUDIO_PLAY
:
// 热区配置检查
if
(
hotZoneConfg
.
linkHotZoneIndex
==
null
||
hotZoneConfg
.
linkHotZoneIndex
==
undefined
||
hotZoneConfg
.
linkHotZoneIndex
<
0
)
{
hotZoneIndexErr
.
push
(
`内容
${
hotZoneConfigIndex
+
1
}
: 关联热区为空`
)
}
break
;
// 视频播放题型
case
this
.
VIDEO_PLAY
:
// 热区配置检查
if
(
hotZoneConfg
.
linkHotZoneIndex
==
null
||
hotZoneConfg
.
linkHotZoneIndex
==
undefined
||
hotZoneConfg
.
linkHotZoneIndex
<
0
)
{
hotZoneIndexErr
.
push
(
`内容
${
hotZoneConfigIndex
+
1
}
: 关联热区为空`
)
}
break
;
// 连线组
case
this
.
CONNECTION
:
hotZoneConfg
.
contentList
.
forEach
((
contentItem
,
contentIndex
)
=>
{
...
...
@@ -549,6 +563,23 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
}
});
break
;
// 涂色题(评分)
case
this
.
DRAWING_CHECK
:
// 热区配置检查
if
(
hotZoneConfg
.
linkHotZoneIndex
==
null
||
hotZoneConfg
.
linkHotZoneIndex
==
undefined
||
hotZoneConfg
.
linkHotZoneIndex
<
0
)
{
hotZoneIndexErr
.
push
(
`内容
${
hotZoneConfigIndex
+
1
}
: 关联热区为空`
)
}
// 结果显示热区配置检查
if
(
hotZoneConfg
.
linkResultShowHotZoneIndex
==
null
||
hotZoneConfg
.
linkResultShowHotZoneIndex
==
undefined
||
hotZoneConfg
.
linkResultShowHotZoneIndex
<
0
)
{
hotZoneIndexErr
.
push
(
`内容
${
hotZoneConfigIndex
+
1
}
: 结果显示热区为空`
)
}
// 分数检查
if
(
hotZoneConfg
.
score
!=
null
&&
!
isNaN
(
Number
(
hotZoneConfg
.
score
))
&&
Number
(
hotZoneConfg
.
score
)
>
0
)
{
totalScore
+=
Number
(
hotZoneConfg
.
score
);
}
else
{
scoreConfigErr
.
push
(
`内容
${
hotZoneConfigIndex
+
1
}
: 分数配置为0或者有异常`
)
}
break
;
default
:;
}
}
...
...
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