Browse Source

[完善]保存成功更变isChange变量

develop
邵佳豪 4 years ago
parent
commit
871a6705fb
  1. 8
      src/app/ui/collection-tools/collection-tools.component.ts

8
src/app/ui/collection-tools/collection-tools.component.ts

@ -488,11 +488,13 @@ export class CollectionToolsComponent implements OnInit {
let config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
this.canvasData.isChange = false
this.snackBar.open('保存成功','确定',config);
},err=>{
let config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
this.canvasData.isChange = true
this.snackBar.open('平面图数据保存失败','确定',config);
})
@ -500,11 +502,13 @@ export class CollectionToolsComponent implements OnInit {
let config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
this.canvasData.isChange = false
this.snackBar.open('保存成功','确定',config);
},err=>{
let config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
this.canvasData.isChange = true
this.snackBar.open('单位数据保存失败','确定',config);
})
}else{
@ -512,11 +516,13 @@ export class CollectionToolsComponent implements OnInit {
let config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
this.canvasData.isChange = false
this.snackBar.open('保存成功','确定',config);
},err=>{
let config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
this.canvasData.isChange = true
this.snackBar.open('平面图数据保存失败','确定',config);
})
@ -524,11 +530,13 @@ export class CollectionToolsComponent implements OnInit {
let config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
this.canvasData.isChange = false
this.snackBar.open('保存成功','确定',config);
},err=>{
let config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
this.canvasData.isChange = true
this.snackBar.open('单位数据保存失败','确定',config);
})
}

Loading…
Cancel
Save