edit
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { STComponent, STColumn, STRequestOptions, STChange } from '@delon/abc/st';
|
||||
import { ACLService } from '@delon/acl';
|
||||
import { SFComponent, SFSchema } from '@delon/form';
|
||||
import { Menu, ModalHelper } from '@delon/theme';
|
||||
import { EAEnvironmentService } from '@shared';
|
||||
@ -37,14 +38,26 @@ export class MenuManagerComponentsIndexComponent implements OnInit {
|
||||
|
||||
mapOfExpandedData: { [key: string]: any[] } = {};
|
||||
listOfMapData: any[] = [];
|
||||
constructor(private envSrv: EAEnvironmentService, public service: MenuManagerService, private modal: NzModalService, private modalHelper: ModalHelper,) {
|
||||
|
||||
isShowBackEND = false;
|
||||
isShowFre = false;
|
||||
constructor(
|
||||
private envSrv: EAEnvironmentService,
|
||||
public service: MenuManagerService,
|
||||
private modal: NzModalService,
|
||||
private modalHelper: ModalHelper,
|
||||
private acl: ACLService
|
||||
) {
|
||||
const acls = acl.data.abilities || [];
|
||||
this.isShowBackEND = acl.data.full || !!acls.find(acl => acl === 'MENU-INDEX-obclist');
|
||||
this.isShowFre = acl.data.full || !!acls.find(acl => acl === 'MENU-INDEX-smclist');
|
||||
this.initData();
|
||||
}
|
||||
|
||||
ngOnInit(): void {}
|
||||
|
||||
initData(): void {
|
||||
this.selectedPlatform = this.platforms[0];
|
||||
this.selectedPlatform = this.isShowFre ? this.platforms[0] : this.platforms[1];
|
||||
this.loadMemu(this.selectedPlatform.appId);
|
||||
}
|
||||
|
||||
@ -126,13 +139,13 @@ export class MenuManagerComponentsIndexComponent implements OnInit {
|
||||
}
|
||||
});
|
||||
}
|
||||
menuSort(){
|
||||
menuSort() {
|
||||
const dialogData = {
|
||||
appId: this.selectedPlatform.appId
|
||||
};
|
||||
this.modalHelper.create(MenuManagerMenusortComponent, { i: dialogData }, { size: 900 }).subscribe((res:any) => {
|
||||
if(res) {
|
||||
console.log('a')
|
||||
this.modalHelper.create(MenuManagerMenusortComponent, { i: dialogData }, { size: 900 }).subscribe((res: any) => {
|
||||
if (res) {
|
||||
console.log('a');
|
||||
this.loadMemu(this.selectedPlatform.appId);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user