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