From 871a6705fbe932a63af2528b975fc724a08173c0 Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Fri, 28 Aug 2020 09:45:47 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E4=BF=9D=E5=AD=98=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E6=9B=B4=E5=8F=98isChange=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/ui/collection-tools/collection-tools.component.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/app/ui/collection-tools/collection-tools.component.ts b/src/app/ui/collection-tools/collection-tools.component.ts index eaafa8a..f12602c 100644 --- a/src/app/ui/collection-tools/collection-tools.component.ts +++ b/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); }) }