Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cc_mz_007
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
cc_mz_007
Commits
eb34e572
Commit
eb34e572
authored
Sep 22, 2020
by
Li Mingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 渲染
parent
47614fef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
custom-hot-zone.component.ts
...c/app/common/custom-hot-zone/custom-hot-zone.component.ts
+16
-4
No files found.
form/src/app/common/custom-hot-zone/custom-hot-zone.component.ts
View file @
eb34e572
...
...
@@ -154,9 +154,6 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
// this.init();
this
.
update
();
this
.
changeDetectorRef
.
markForCheck
();
this
.
changeDetectorRef
.
detectChanges
();
this
.
refresh
();
}
...
...
@@ -180,10 +177,12 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
onItemImgUploadSuccess
(
e
,
item
)
{
item
.
pic_url
=
e
.
url
;
this
.
loadHotZonePic
(
item
.
pic
,
e
.
url
);
this
.
refresh
();
}
onItemAudioUploadSuccess
(
e
,
item
)
{
item
.
audio_url
=
e
.
url
;
this
.
refresh
();
}
...
...
@@ -215,6 +214,9 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
if
(
callBack
)
{
callBack
();
}
this
.
refresh
();
});
// }
...
...
@@ -247,6 +249,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
onImgUploadSuccessByImg
(
e
,
img
)
{
img
.
pic_url
=
e
.
url
;
this
.
refreshImage
(
img
);
this
.
refresh
();
}
refreshImage
(
img
)
{
...
...
@@ -269,6 +272,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
}
}
this
.
refresh
();
}
...
...
@@ -423,6 +427,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
onAudioUploadSuccessByImg
(
e
,
img
)
{
img
.
audio_url
=
e
.
url
;
this
.
refresh
();
}
deleteItem
(
e
,
i
)
{
...
...
@@ -431,6 +436,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
this
.
hotZoneArr
.
splice
(
i
,
1
);
this
.
refreshHotZoneId
();
this
.
refresh
();
}
...
...
@@ -438,7 +444,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
item
.
itemType
=
e
;
this
.
refreshItem
(
item
);
this
.
refresh
();
// console.log(' in radioChange e: ', e);
}
...
...
@@ -448,6 +454,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
item
.
gIdx
=
e
;
this
.
refreshCustomItem
(
item
);
this
.
refresh
();
// const curGroup = this.customTypeGroupArr[e];
}
...
...
@@ -511,6 +518,10 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
}
initItem
()
{
this
.
changeDetectorRef
.
markForCheck
();
this
.
changeDetectorRef
.
detectChanges
();
if
(
!
this
.
bgItem
)
{
this
.
bgItem
=
{};
}
else
{
...
...
@@ -526,6 +537,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
});
}
this
.
refresh
();
}
initHotZoneArr
()
{
...
...
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