|
|
|
@ -45,7 +45,8 @@ export class MenuComponent implements OnInit {
|
|
|
|
|
let OrganizationUnitId = sessionStorage.getItem('isGasStation') == 'true' ? JSON.parse(sessionStorage.getItem('userdataOfgasstation')).organization.id : JSON.parse(sessionStorage.getItem('userdata')).organization.id |
|
|
|
|
let params = { |
|
|
|
|
OrganizationUnitId: OrganizationUnitId, |
|
|
|
|
IsContainsChildren: "true" |
|
|
|
|
IsContainsChildren: "true", |
|
|
|
|
MaxResultCount:"999" |
|
|
|
|
} |
|
|
|
|
this.http.get('/api/services/app/Menu/GetAll', { |
|
|
|
|
params: params |
|
|
|
@ -73,7 +74,7 @@ export class MenuComponent implements OnInit {
|
|
|
|
|
addOr(node?: any) { |
|
|
|
|
console.log(node) |
|
|
|
|
const modal = this.modal.create({ |
|
|
|
|
nzTitle: node ? '新增组织机构' : '新增一级组织机构', |
|
|
|
|
nzTitle: node ? '新增子菜单' : '新增一级菜单', |
|
|
|
|
nzContent: AddmenuComponent, |
|
|
|
|
nzViewContainerRef: this.viewContainerRef, |
|
|
|
|
nzWidth: 288, |
|
|
|
@ -159,7 +160,7 @@ export class MenuComponent implements OnInit {
|
|
|
|
|
this.message.create('warning', '请先删除所有子节点'); |
|
|
|
|
} else { |
|
|
|
|
this.modal.confirm({ |
|
|
|
|
nzTitle: `确定要删除${item.title}这个机构吗?`, |
|
|
|
|
nzTitle: `确定要删除${item.title}这个菜单吗?`, |
|
|
|
|
nzOkText: '确定', |
|
|
|
|
nzOkType: 'danger', |
|
|
|
|
nzOnOk: () => { |
|
|
|
|