Browse Source

[完善]内置角色不允许移动

tangshan
邵佳豪 3 years ago
parent
commit
00d86bbb34
  1. 20
      src/app/ui/role/role.component.ts

20
src/app/ui/role/role.component.ts

@ -73,6 +73,11 @@ export class RoleComponent implements OnInit {
} }
).subscribe(data => { ).subscribe(data => {
this.getlist() this.getlist()
}, err => {
const config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
this.snackBar.open(err ? err : '内置角色不允许移动', '确定', config);
}) })
this.http.put(//把当前节点order换成上一点击的节点 this.http.put(//把当前节点order换成上一点击的节点
@ -86,6 +91,11 @@ export class RoleComponent implements OnInit {
} }
).subscribe(data => { ).subscribe(data => {
this.getlist() this.getlist()
}, err => {
const config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
this.snackBar.open(err ? err : '内置角色不允许移动', '确定', config);
}) })
} }
@ -114,6 +124,11 @@ export class RoleComponent implements OnInit {
} }
).subscribe(data => { ).subscribe(data => {
this.getlist() this.getlist()
}, err => {
const config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
this.snackBar.open(err ? err : '内置角色不允许移动', '确定', config);
}) })
this.http.put(//把当前节点order换成下一点击的节点 this.http.put(//把当前节点order换成下一点击的节点
@ -127,6 +142,11 @@ export class RoleComponent implements OnInit {
} }
).subscribe(data => { ).subscribe(data => {
this.getlist() this.getlist()
}, err => {
const config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
this.snackBar.open(err ? err : '内置角色不允许移动', '确定', config);
}) })
} }
//创建按钮并且弹出对话框 //创建按钮并且弹出对话框

Loading…
Cancel
Save