Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JM_4-1
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
JM_4-1
Commits
6cd8b41d
Commit
6cd8b41d
authored
Jul 22, 2021
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: iframe error
parent
33b16a6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
sub-template.component.ts
src/app/common/sub-template/sub-template.component.ts
+17
-2
No files found.
src/app/common/sub-template/sub-template.component.ts
View file @
6cd8b41d
...
...
@@ -62,6 +62,8 @@ export class SubTemplateComponent implements OnDestroy, OnChanges {
};
this
.
setUploadUrl
();
}
...
...
@@ -101,6 +103,8 @@ export class SubTemplateComponent implements OnDestroy, OnChanges {
ngOnInit
():
void
{
this
.
initListener
();
console
.
log
(
''
)
if
(
!
this
.
_item
)
{
this
.
_item
=
{};
...
...
@@ -109,9 +113,7 @@ export class SubTemplateComponent implements OnDestroy, OnChanges {
this
.
initListener
();
this
.
setUploadUrl
();
}
...
...
@@ -263,6 +265,19 @@ export class SubTemplateComponent implements OnDestroy, OnChanges {
if
(
c
&&
c
.
getTemplates
)
{
c
.
getTemplates
((
data
)
=>
{
data
=
[
{
"
id
"
:
26
,
"
uuid
"
:
"
c94fb1b0-3395-42ca-9ae3-03ca7c242d3f
"
,
"
name
"
:
"
hw_001
"
,
"
description
"
:
"
音频课件
"
,
"
cover
"
:
"
http://iplayabc-teach-yun.oss-cn-beijing.aliyuncs.com/3feddb01-4350-42ad-909f-236ad052fbb2.jpg
"
,
"
type
"
:
1
,
"
t_type
"
:
2
,
"
form_url
"
:
"
index.html?type=form
"
,
"
play_url
"
:
"
index.html
"
,
"
last_version
"
:
16
},
{
"
id
"
:
27
,
"
uuid
"
:
"
b8bedc68-9ef6-42a6-ba99-513daa244a6d
"
,
"
name
"
:
"
hw_002
"
,
"
description
"
:
"
视频课件
"
,
"
cover
"
:
"
http://iplayabc-teach-yun.oss-cn-beijing.aliyuncs.com/1b11d370-9d8b-4358-98d3-4757f825d2a4.jpg
"
,
"
type
"
:
1
,
"
t_type
"
:
2
,
"
form_url
"
:
"
index.html?type=form
"
,
"
play_url
"
:
"
index.html
"
,
"
last_version
"
:
16
},
{
"
id
"
:
28
,
"
uuid
"
:
"
068fcffb-4e99-4148-bc8e-2a89ee9bfe7c
"
,
"
name
"
:
"
hw_003
"
,
"
description
"
:
"
转盘课件
"
,
"
cover
"
:
"
http://iplayabc-teach-yun.oss-cn-beijing.aliyuncs.com/de3d8498-7523-4601-934e-932ac219a408.jpg
"
,
"
type
"
:
1
,
"
t_type
"
:
2
,
"
form_url
"
:
"
index.html?type=form
"
,
"
play_url
"
:
"
index.html
"
,
"
last_version
"
:
17
},
{
"
id
"
:
29
,
"
uuid
"
:
"
b2bfd8df-e0e4-41c9-b65f-12160628e1a3
"
,
"
name
"
:
"
hw_004
"
,
"
description
"
:
"
连线课件
"
,
"
cover
"
:
"
http://iplayabc-teach-yun.oss-cn-beijing.aliyuncs.com/824989ac-78fb-4db7-848a-790cba00effe.jpg
"
,
"
type
"
:
1
,
"
t_type
"
:
2
,
"
form_url
"
:
"
index.html?type=form
"
,
"
play_url
"
:
"
index.html
"
,
"
last_version
"
:
9
},
{
"
id
"
:
30
,
"
uuid
"
:
"
d7be3c21-fc25-482d-a4a6-1a371970457a
"
,
"
name
"
:
"
hw_005
"
,
"
description
"
:
"
分类课件
"
,
"
cover
"
:
"
http://iplayabc-teach-yun.oss-cn-beijing.aliyuncs.com/aa69d85a-3430-48b2-91bf-a804dee1826d.jpg
"
,
"
type
"
:
1
,
"
t_type
"
:
2
,
"
form_url
"
:
"
index.html?type=form
"
,
"
play_url
"
:
"
index.html
"
,
"
last_version
"
:
19
},
{
"
id
"
:
31
,
"
uuid
"
:
"
34e98c65-f3f0-46e4-a7b8-5caf72954847
"
,
"
name
"
:
"
hw_006
"
,
"
description
"
:
"
翻卡游戏
"
,
"
cover
"
:
"
http://iplayabc-teach-yun.oss-cn-beijing.aliyuncs.com/fe54031b-7879-4c65-8de7-102fa5e5e9f5.png
"
,
"
type
"
:
1
,
"
t_type
"
:
2
,
"
form_url
"
:
"
index.html?type=form
"
,
"
play_url
"
:
"
index.html
"
,
"
last_version
"
:
5
}
]
resolve
(
data
);
return
if
(
data
)
{
console
.
log
(
'
data~~~:
'
,
data
);
resolve
(
JSON
.
parse
(
data
));
...
...
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