Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sn19_read
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
sn19_read
Commits
8299aa28
Commit
8299aa28
authored
Nov 09, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
表单完成
parent
7abd6e8f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
53 deletions
+11
-53
form.component.html
form/src/app/form/form.component.html
+9
-51
form.component.ts
form/src/app/form/form.component.ts
+2
-2
No files found.
form/src/app/form/form.component.html
View file @
8299aa28
...
...
@@ -100,21 +100,6 @@
<input
type=
"text"
nz-input
[(
ngModel
)]="
item
.
zi_count
"
(
blur
)="
save
()"
>
</div>
<div
class=
"border-dashed"
style=
"margin: 20px;width: 1000px;"
>
<div
style=
"font-size: 20px;"
>
游戏模式:
</div>
<nz-radio-group
[(
ngModel
)]="
item
.
recordFlag
"
(
ngModelChange
)="
save
()"
>
<label
nz-radio
[
nzValue
]="
1
"
>
<span
[
style
]="{
color:item
.
recordFlag=
='1'
?
'#
169BD5
'
:
'#
000
'}"
>
听音模式
</span>
</label>
<label
nz-radio
[
nzValue
]="
2
"
>
<span
[
style
]="{
color:item
.
recordFlag=
='2'
?
'#
169BD5
'
:
'#
000
'}"
>
测评模式
</span>
</label>
<label
nz-radio
[
nzValue
]="
3
"
>
<span
[
style
]="{
color:item
.
recordFlag=
='3'
?
'#
169BD5
'
:
'#
000
'}"
>
对错模式
</span>
</label>
</nz-radio-group>
</div>
<div
style=
"margin: 20px;width: 1000px;"
>
<div
*
ngFor=
"let question of item.questions; let i = index"
>
...
...
@@ -131,28 +116,6 @@
题目{{j+1}}
</div>
<div
class=
"option-content"
style=
"padding: 15px 30px;"
>
<!-- 基础类型处理 -->
<!-- <div style="margin-top: 20px;">
<div class="word-type-option-title">
类型:
</div>
<div style="margin-top: 5px;">
<nz-radio-group [(ngModel)]="option.type" (ngModelChange)="ngChange(i,j)">
<label nz-radio nzValue="img">
<span [style]="{color:option.type=='img' ? '#169BD5':'#000'}">图片</span>
</label>
<label nz-radio nzValue="img_txt">
<span [style]="{color:option.type=='img_txt' ? '#169BD5':'#000'}">图片+文本</span>
</label>
<label nz-radio nzValue="img_audio">
<span [style]="{color:option.type=='img_audio' ? '#169BD5':'#000'}">图片+音频</span>
</label>
<label nz-radio nzValue="img_txt_audio">
<span [style]="{color:option.type=='img_txt_audio' ? '#169BD5':'#000'}">图片+文本+音频</span>
</label>
</nz-radio-group>
</div>
</div> -->
<div
style=
"margin-top: 20px;"
>
...
...
@@ -161,11 +124,14 @@
</div>
<div
style=
"margin-top: 5px;"
>
<nz-radio-group
[(
ngModel
)]="
option
.
imageBig
"
(
ngModelChange
)="
ngChange
(
i
,
j
)"
>
<label
nz-radio
[
nzValue
]="
true
"
>
<span
[
style
]="{
color:option
.
imageBig=
=
true
?
'#
169BD5
'
:
'#
000
'}"
>
大图片
</span>
<label
nz-radio
[
nzValue
]="
1
"
>
<span
[
style
]="{
color:option
.
imageBig=
=
1
?
'#
169BD5
'
:
'#
000
'}"
>
大图片
</span>
</label>
<label
nz-radio
[
nzValue
]="
false
"
>
<span
[
style
]="{
color:option
.
imageBig=
=
false
?
'#
169BD5
'
:
'#
000
'}"
>
小图片
</span>
<label
nz-radio
[
nzValue
]="
2
"
>
<span
[
style
]="{
color:option
.
imageBig=
=
2
?
'#
169BD5
'
:
'#
000
'}"
>
中图片
</span>
</label>
<label
nz-radio
[
nzValue
]="
3
"
>
<span
[
style
]="{
color:option
.
imageBig=
=
3
?
'#
169BD5
'
:
'#
000
'}"
>
小图片
</span>
</label>
</nz-radio-group>
</div>
...
...
@@ -180,12 +146,6 @@
</app-upload-image-with-preview>
</div>
</div>
<div
class=
"option-text"
>
<div
*
ngIf=
"option.type=='img_txt'|| option.type=='img_txt_audio' "
style=
"width: 200px"
>
<span
style=
"font-size: 20px;"
>
题目文本
</span>
<input
type=
"text"
nz-input
[(
ngModel
)]="
option
.
text
"
(
blur
)="
save
()"
>
</div>
</div>
<div
class=
"option-audio"
*
ngIf=
"option.type=='img_audio' || option.type=='img_txt_audio'"
>
<span
style=
"font-size: 20px;"
>
题目音频:
</span>
...
...
@@ -202,12 +162,10 @@
</div>
</div>
</div>
<div
class=
"option-time"
*
ngIf=
"item.recordFlag!='1'"
>
<
!-- <
div class="option-time" *ngIf="item.recordFlag!='1'">
<div class="word-type-option-title">录音倒计时: </div>
<input type="number" nz-input [(ngModel)]="option.duration" (blur)="save()">
<span
style=
"font-size: 20px;"
>
录音文本
</span>
<input
type=
"text"
nz-input
[(
ngModel
)]="
option
.
content
"
(
blur
)="
save
()"
>
</div>
</div> -->
</div>
</div>
<div
class=
"option-btns"
>
...
...
form/src/app/form/form.component.ts
View file @
8299aa28
...
...
@@ -12,7 +12,7 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
saveKey
=
"
hy01_danci
"
;
item
=
{
recordFlag
:
'
1
'
,
recordFlag
:
'
3
'
,
npcTitle
:
""
,
npcAudio
:
""
,
npcAudioName
:
''
,
...
...
@@ -74,7 +74,7 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
addoption
(
i
)
{
this
.
item
.
questions
[
i
].
options
.
push
({
type
:
"
img_txt_audio
"
,
imageBig
:
true
,
imageBig
:
1
,
image
:
""
,
audio
:
""
,
text
:
""
,
...
...
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