Browse Source

[完善]保存成功后调用刷新视图方法

develop
邵佳豪 4 years ago
parent
commit
0a29dd1fa6
  1. 10
      src/app/ui/collection-tools/collection-tools.component.ts

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

@ -490,6 +490,7 @@ export class CollectionToolsComponent implements OnInit {
this.canvasData.isChange = false
this.saveNum.push("1")
if(this.saveNum.length == 5){
this.canvas.refresh()
let config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
@ -507,6 +508,7 @@ export class CollectionToolsComponent implements OnInit {
this.canvasData.isChange = false
this.saveNum.push("1")
if(this.saveNum.length == 5){
this.canvas.refresh()
let config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
@ -526,6 +528,7 @@ export class CollectionToolsComponent implements OnInit {
this.canvasData.isChange = false
this.saveNum.push("1")
if(this.saveNum.length == 5){
this.canvas.refresh()
let config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
@ -544,6 +547,7 @@ export class CollectionToolsComponent implements OnInit {
this.canvasData.isChange = false
this.saveNum.push("1")
if(this.saveNum.length == 5){
this.canvas.refresh()
let config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
@ -562,6 +566,7 @@ export class CollectionToolsComponent implements OnInit {
this.canvasData.isChange = false
this.saveNum.push("1")
if(this.saveNum.length == 5){
this.canvas.refresh()
let config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
@ -580,6 +585,7 @@ export class CollectionToolsComponent implements OnInit {
this.canvasData.isChange = false
this.saveNum.push("1")
if(this.saveNum.length == 5){
this.canvas.refresh()
let config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
@ -597,6 +603,7 @@ export class CollectionToolsComponent implements OnInit {
this.canvasData.isChange = false
this.saveNum.push("1")
if(this.saveNum.length == 5){
this.canvas.refresh()
let config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
@ -616,6 +623,7 @@ export class CollectionToolsComponent implements OnInit {
this.canvasData.isChange = false
this.saveNum.push("1")
if(this.saveNum.length == 5){
this.canvas.refresh()
let config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
@ -634,6 +642,7 @@ export class CollectionToolsComponent implements OnInit {
this.canvasData.isChange = false
this.saveNum.push("1")
if(this.saveNum.length == 5){
this.canvas.refresh()
let config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
@ -652,6 +661,7 @@ export class CollectionToolsComponent implements OnInit {
this.canvasData.isChange = false
this.saveNum.push("1")
if(this.saveNum.length == 5){
this.canvas.refresh()
let config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000

Loading…
Cancel
Save