Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
Lwd
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
Lwd
Commits
177d9e10
Commit
177d9e10
authored
Apr 02, 2021
by
Lwd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aaaa
parent
e52eb3db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
form.component.html
form/src/app/form/form.component.html
+8
-3
form.component.ts
form/src/app/form/form.component.ts
+9
-0
No files found.
form/src/app/form/form.component.html
View file @
177d9e10
...
...
@@ -12,11 +12,11 @@
</div>
</div>
<div
*
ngFor=
"let it of pageArr; let i = index"
style=
"padding: 0.5vw; width:
2
0%;"
>
<div
*
ngFor=
"let it of pageArr; let i = index"
style=
"padding: 0.5vw; width:
4
0%;"
>
<div
class=
"border"
style=
"display: flex; align-items: center;"
>
<div
class=
"item-box"
style=
"width:30%"
>
<div
style=
"width: 20%; padding-left:
2
0px"
>
<div
style=
"width: 20%; padding-left:
1
0px"
>
<h5
style=
"padding-left: 15px; margin: auto"
>
页-{{i+1}}:
</h5>
<div
style=
"display: flex; justify-items: center; align-items: center; height: 40px;"
>
...
...
@@ -31,7 +31,12 @@
<i
nz-icon
nzType=
"plus-circle"
nzTheme=
"outline"
></i>
add
</button>
<button
style=
"margin: auto;margin-right: 20px"
nz-button
nzType=
"primary"
(
click
)="
onCopyData
(
i
)"
>
<span>
复制本页
</span>
</button>
</div>
</div>
</div>
</div>
...
...
@@ -83,7 +88,7 @@
<div
style=
"float: left;width: 100%;"
>
<div
*
ngIf=
"it['type']=='Image'"
>
<app-upload-image-with-preview
style=
"width: 100%;"
[
picUrl
]="
it
['
groupPic
']"
(
imageUploaded
)="
onImageUploadSuccessByItem
($
event
,
it
,
'
image_url
'
)"
>
(
imageUploaded
)="
onImageUploadSuccessByItem
($
event
,
it
)"
>
</app-upload-image-with-preview>
</div>
...
...
form/src/app/form/form.component.ts
View file @
177d9e10
...
...
@@ -231,6 +231,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
groupLabel
:
''
,
groupPic
:
''
,
group_audio_url
:
''
,
type
:
''
,
ske_json
:
''
,
tex_json
:
''
,
...
...
@@ -262,6 +263,14 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
}
onCopyData
(
index
)
{
this
.
item
.
contentObj
.
pageArr
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
item
.
contentObj
.
pageArr
[
index
])));
this
.
save
();
setTimeout
(()
=>
{
window
.
scrollTo
(
0
,
document
.
body
.
scrollHeight
);
},
1
)
}
save
()
{
(
<
any
>
window
).
courseware
.
setData
(
this
.
item
,
null
,
this
.
KEY
);
...
...
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