Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JJ39_new
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
JJ39_new
Commits
f9502a19
Commit
f9502a19
authored
Aug 27, 2024
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
5e59187c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
form.component.html
form/src/app/form/form.component.html
+12
-2
form.component.ts
form/src/app/form/form.component.ts
+5
-5
No files found.
form/src/app/form/form.component.html
View file @
f9502a19
...
@@ -44,15 +44,25 @@
...
@@ -44,15 +44,25 @@
<div
*
ngFor=
"let page of item.pageArr; let i = index"
style=
"border: 2px #ccc solid; border-radius: 15px; width: 1000px; margin: 30px; padding: 20px;"
>
<div
*
ngFor=
"let page of item.pageArr; let i = index"
style=
"border: 2px #ccc solid; border-radius: 15px; width: 1000px; margin: 30px; padding: 20px;"
>
<h3>
页-{{i+1}}:
</h3>
<div
style=
"display: flex; justify-content: space-between;"
>
<h2>
页-{{i+1}}:
</h2>
<button
style=
"float: right; margin-right: 0px;"
nz-button
nzType=
"danger"
(
click
)="
deleteArr
(
item
.
pageArr
,
i
)"
>
删除页
</button>
</div>
<div
style=
"margin: 30px; display: flex; align-items: center;"
>
<div
[
class
.
disabled
]="(
item
.
mode =
=
'
single
')
&&
(
i
!=
0
)"
style=
"margin: 30px; display: flex; align-items: center;"
>
<h4
style=
""
>
音频:
</h4>
<h4
style=
""
>
音频:
</h4>
<app-audio-recorder
[
audioUrl
]="
page
.
audio_url
"
<app-audio-recorder
[
audioUrl
]="
page
.
audio_url
"
(
audioUploaded
)="
onItemAudioUploadSuccess
($
event
,
page
,
'
audio_url
')"
>
(
audioUploaded
)="
onItemAudioUploadSuccess
($
event
,
page
,
'
audio_url
')"
>
</app-audio-recorder>
</app-audio-recorder>
</div>
</div>
<div
style=
"color: #aaa; margin: 30px;"
>
示例:What's [your] name? (标红的单词用中括号括起来)
</div>
<div
[
class
.
disabled
]="(
item
.
mode =
=
'
single
')
&&
(
i
!=
0
)"
style=
"border: 2px #ccc solid; border-radius: 15px; width: 900px; margin: 30px"
>
<div
[
class
.
disabled
]="(
item
.
mode =
=
'
single
')
&&
(
i
!=
0
)"
style=
"border: 2px #ccc solid; border-radius: 15px; width: 900px; margin: 30px"
>
<div
*
ngFor=
"let part of page.partArr; let j = index"
style=
" width: 90%; padding: 30px; margin: 10px;
<div
*
ngFor=
"let part of page.partArr; let j = index"
style=
" width: 90%; padding: 30px; margin: 10px;
border: 1px #ccc solid; border-radius: 15px;"
>
border: 1px #ccc solid; border-radius: 15px;"
>
...
...
form/src/app/form/form.component.ts
View file @
f9502a19
...
@@ -886,6 +886,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
...
@@ -886,6 +886,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
const
curPageData
=
this
.
item
.
pageArr
[
i
];
const
curPageData
=
this
.
item
.
pageArr
[
i
];
if
(
curPageData
)
{
if
(
curPageData
)
{
curPageData
.
partArr
=
JSON
.
parse
(
JSON
.
stringify
(
pageDataOne
.
partArr
));
curPageData
.
partArr
=
JSON
.
parse
(
JSON
.
stringify
(
pageDataOne
.
partArr
));
curPageData
.
audio_url
=
this
.
item
.
pageArr
[
0
].
audio_url
;
}
}
}
}
}
}
...
@@ -902,12 +903,11 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
...
@@ -902,12 +903,11 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this
.
save
();
this
.
save
();
}
}
addSubOptArr
(
option
)
{
if
(
!
option
.
subOptArr
)
{
option
.
subOptArr
=
[];
}
option
.
subOptArr
.
push
({});
deleteArr
(
arr
,
i
)
{
arr
.
splice
(
i
,
1
);
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