|
|
|
@ -388,7 +388,7 @@ export class PlanComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
if (this.selectFence === 0 && this.beforeOnePropertyData.getPropertyData() && this.beforeOnePropertyData.getPropertyData().img) { //img
|
|
|
|
|
window.setTimeout(() => { |
|
|
|
|
this.propertyImg = new Viewer(this.element.nativeElement.querySelector('#propertyImg'), { url: 'data-original' }); |
|
|
|
|
this.propertyImg = new Viewer(this.element.nativeElement.querySelector('#propertyImg'), { url: 'data-original', navbar: false }); |
|
|
|
|
}, 0) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -410,7 +410,7 @@ export class PlanComponent implements OnInit {
|
|
|
|
|
ServeManager.instance.openFileSelect(file, url, (name: string, path: string) => { //上传
|
|
|
|
|
this.beforeOnePropertyData.getPropertyData().img = ObjectsService.getFullPath(path + name) |
|
|
|
|
window.setTimeout(() => { |
|
|
|
|
this.propertyImg = new Viewer(this.element.nativeElement.querySelector('#propertyImg'), { url: 'data-original' }); |
|
|
|
|
this.propertyImg = new Viewer(this.element.nativeElement.querySelector('#propertyImg'), { url: 'data-original', navbar: false }); |
|
|
|
|
}, 0) |
|
|
|
|
this.isShowLoading = false //关闭遮罩
|
|
|
|
|
this.message.info("上传成功!"); |
|
|
|
@ -474,6 +474,12 @@ export class PlanComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
//更新进度条 值
|
|
|
|
|
updateProgress() { |
|
|
|
|
if (this.isShowLoading) { //当前为loading状态
|
|
|
|
|
window.setTimeout(() => { |
|
|
|
|
this.updateProgress() |
|
|
|
|
}, 500); |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
if (this.progressList[this.nzCurrent] >= 100) { |
|
|
|
|
this.progressList[this.nzCurrent] = 100 |
|
|
|
|
window.clearTimeout(this.updateTimer) //清除定时器
|
|
|
|
@ -634,7 +640,7 @@ export class PlanComponent implements OnInit {
|
|
|
|
|
initViewer() { |
|
|
|
|
if (this.beforePlanNode.texture) { |
|
|
|
|
window.setTimeout(() => { |
|
|
|
|
this.planNodeImg = new Viewer(this.element.nativeElement.querySelector('#planNodeImg'), { url: 'data-original' }); |
|
|
|
|
this.planNodeImg = new Viewer(this.element.nativeElement.querySelector('#planNodeImg'), { url: 'data-original', navbar: false }); |
|
|
|
|
}, 0) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|