Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
form_upload_folder
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
form_upload_folder
Commits
546c0a53
Commit
546c0a53
authored
Jul 30, 2024
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
08cf2e47
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
.DS_Store
.DS_Store
+0
-0
form.component.html
form/src/app/form/form.component.html
+4
-1
form.component.ts
form/src/app/form/form.component.ts
+7
-4
No files found.
.DS_Store
View file @
546c0a53
No preview for this file type
form/src/app/form/form.component.html
View file @
546c0a53
<div
style=
"margin: 30px;"
>
<div
style=
"margin-top: 50px; width: 1000px;"
>
<div
style=
"margin-bottom: 30px;"
>
<label
nz-checkbox
[(
ngModel
)]="
item
.
isFCE
"
(
ngModelChange
)="
save
()"
>
FCE
</label>
</div>
<h1>
内容数据:
</h1>
<app-form-group
...
...
@@ -12,7 +16,6 @@
</app-form-group>
</div>
<div
*
ngIf=
"item && item.quesArr"
style=
"border: 2px #ccc solid; border-radius: 15px; width: 1000px; margin: 30px"
>
<div
*
ngFor=
"let ques of item.quesArr; let i = index"
style=
"border: 1px #ccc solid; border-radius: 15px; width: 950px; padding: 30px; margin: 30px;"
>
...
...
form/src/app/form/form.component.ts
View file @
546c0a53
...
...
@@ -688,10 +688,13 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
const
pos
=
targetRow
[
4
].
replace
(
/"/g
,
''
);
ques
.
word
=
word
.
split
(
''
).
join
(
'
'
);
ques
.
word
=
ques
.
word
.
replace
(
/ /g
,
'
'
);
if
(
this
.
item
.
isFCE
&&
(
word
.
indexOf
(
"
"
)
!=
-
1
))
{
ques
.
word
=
word
.
replace
(
/ /g
,
'
'
);
}
else
{
ques
.
word
=
word
.
split
(
''
).
join
(
'
'
);
ques
.
word
=
ques
.
word
.
replace
(
/ /g
,
'
'
);
}
ques2
.
word
=
word
;
...
...
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