fix bug
This commit is contained in:
@ -1,11 +1,12 @@
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { STComponent, STColumn, STRequestOptions, STChange } from '@delon/abc/st';
|
||||
import { SFComponent, SFSchema } from '@delon/form';
|
||||
import { Menu } from '@delon/theme';
|
||||
import { Menu, ModalHelper } from '@delon/theme';
|
||||
import { EAEnvironmentService } from '@shared';
|
||||
import { NzSafeAny } from 'ng-zorro-antd/core/types';
|
||||
import { NzModalService } from 'ng-zorro-antd/modal';
|
||||
import { SettingRoleEditComponent } from 'src/app/routes/sys-setting/components/role-management/edit/edit.component';
|
||||
import { MenuManagerMenusortComponent } from '../menusort/menusort.component';
|
||||
import { MenuManagerService } from './../../services/menu-manager.service';
|
||||
import { MenuModalComponent } from './menu-modal/menu-modal.component';
|
||||
|
||||
@ -36,7 +37,7 @@ export class MenuManagerComponentsIndexComponent implements OnInit {
|
||||
|
||||
mapOfExpandedData: { [key: string]: any[] } = {};
|
||||
listOfMapData: any[] = [];
|
||||
constructor(private envSrv: EAEnvironmentService, public service: MenuManagerService, private modal: NzModalService) {
|
||||
constructor(private envSrv: EAEnvironmentService, public service: MenuManagerService, private modal: NzModalService, private modalHelper: ModalHelper,) {
|
||||
this.initData();
|
||||
}
|
||||
|
||||
@ -125,4 +126,12 @@ export class MenuManagerComponentsIndexComponent implements OnInit {
|
||||
}
|
||||
});
|
||||
}
|
||||
menuSort(){
|
||||
const dialogData = {
|
||||
appId: this.selectedPlatform.appId
|
||||
};
|
||||
this.modalHelper.create(MenuManagerMenusortComponent, { i: dialogData }, { size: 900 }).subscribe((res:any) => {
|
||||
this.initData();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user