Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JJ_Game_Card
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
JJ_Game_Card
Commits
c503b14f
Commit
c503b14f
authored
Jan 13, 2025
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
aee92a75
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
form.component.html
form/src/app/form/form.component.html
+14
-2
form.component.ts
form/src/app/form/form.component.ts
+2
-2
No files found.
form/src/app/form/form.component.html
View file @
c503b14f
...
...
@@ -113,9 +113,21 @@
<label style="" nz-checkbox [(ngModel)]="cItem.value" (ngModelChange)="checkboxChange(it.checkbox, it)">{{cItem.label}}</label>
</div> -->
<label
style=
""
nz-checkbox
[(
ngModel
)]="
ques
.
optionTypeText
"
(
ngModelChange
)="
checkboxChange
($
event
,
ques
,
'
optionTypeText
')"
>
文本
</label>
<
!-- <
label style="" nz-checkbox [(ngModel)]="ques.optionTypeText" (ngModelChange)="checkboxChange($event, ques, 'optionTypeText')">文本</label>
<label style="" nz-checkbox [(ngModel)]="ques.optionTypePic" (ngModelChange)="checkboxChange($event, ques, 'optionTypePic')">图片</label>
<label style="" nz-checkbox [(ngModel)]="ques.optionTypeAudio" (ngModelChange)="checkboxChange($event, ques, 'optionTypeAudio')">音频</label>
-->
<label
style=
""
nz-checkbox
[(
ngModel
)]="
ques
.
optionTypeText
"
(
ngModelChange
)="
checkboxChange
($
event
,
ques
,
'
optionTypeText
')"
[
nzDisabled
]="
getSelectedOptionTypesCount
(
ques
)
>
= 2
&&
!ques.optionTypeText">文本
</label>
<label
style=
""
nz-checkbox
[(
ngModel
)]="
ques
.
optionTypePic
"
(
ngModelChange
)="
checkboxChange
($
event
,
ques
,
'
optionTypePic
')"
[
nzDisabled
]="
getSelectedOptionTypesCount
(
ques
)
>
= 2
&&
!ques.optionTypePic">图片
</label>
<label
style=
""
nz-checkbox
[(
ngModel
)]="
ques
.
optionTypeAudio
"
(
ngModelChange
)="
checkboxChange
($
event
,
ques
,
'
optionTypeAudio
')"
[
nzDisabled
]="
getSelectedOptionTypesCount
(
ques
)
>
= 2
&&
!ques.optionTypeAudio">音频
</label>
<label
style=
"margin-left: 30px; color: #bbb;"
>
请选择"两种"类型 进行配对
</label>
</div>
...
...
form/src/app/form/form.component.ts
View file @
c503b14f
...
...
@@ -346,7 +346,7 @@ getUnusedWord(ques: any): any {
addOnePageBtnClick
()
{
const
ques
=
{
optionArr
:[],
optionArr
:[
{}
],
quesTypeText
:
true
,
quesTypeAudio
:
true
,
quesTypePic
:
true
,
...
...
@@ -368,7 +368,7 @@ getUnusedWord(ques: any): any {
addOneOption
(
ques
)
{
ques
.
optionArr
.
push
({
answer
:
'
isWrong
'
//
answer: 'isWrong'
});
this
.
save
();
}
...
...
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