Commit c847dc3c authored by 李维's avatar 李维

dev commit

parent df5698d3
...@@ -111,8 +111,9 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges { ...@@ -111,8 +111,9 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
onBackgroundUploadSuccess(e) { onBackgroundUploadSuccess(e) {
this.bgItem.url = e.url; this.bgItem.url = e.url;
this.refreshBackground(); this.refreshBackground(()=>{
this.autoSave() this.autoSave()
});
} }
refreshBackground(callBack = null) { refreshBackground(callBack = null) {
...@@ -331,9 +332,6 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges { ...@@ -331,9 +332,6 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
this.refreshHotZoneId(); this.refreshHotZoneId();
} }
initImgArr() { initImgArr() {
let curBgRect; let curBgRect;
if (this.bg) { if (this.bg) {
......
...@@ -33,7 +33,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -33,7 +33,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this.item.contentObj = {}; this.item.contentObj = {};
const getData = (<any> window).courseware.getData; const getData = (<any> window).courseware.getData;
getData((data) => { getData((data) => {
console.log("读取数据", data) // console.log("读取数据", data)
if (data) { if (data) {
this.item = data; this.item = data;
} else { } else {
...@@ -150,7 +150,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -150,7 +150,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
save() { save() {
(<any> window).courseware.setData(this.item, null, this.KEY); (<any> window).courseware.setData(this.item, null, this.KEY);
this.refresh(); this.refresh();
console.log("保存", this.item) // console.log("保存", this.item)
} }
refresh() { refresh() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment