edit
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { STColumn, STComponent } from '@delon/abc/st';
|
||||
import { ACLService } from '@delon/acl';
|
||||
import { SFSchema } from '@delon/form';
|
||||
import { ModalHelper, _HttpClient } from '@delon/theme';
|
||||
import { SearchDrawerService } from '@shared';
|
||||
@ -12,7 +13,14 @@ import { BasicTableComponent } from 'src/app/routes/commom';
|
||||
})
|
||||
export class SupplyManagementIndexComponent implements OnInit {
|
||||
selectedIndex = 0;
|
||||
isShowVehicle = false;
|
||||
isShowBulk = false;
|
||||
|
||||
constructor(private http: _HttpClient, private modal: ModalHelper, private acl: ACLService) {
|
||||
const acls = acl.data.abilities || [];
|
||||
this.isShowVehicle = !!acls.find(acl => acl === 'SUPPLY-INDEX-vehicleSearch');
|
||||
this.isShowBulk = !!acls.find(acl => acl === 'SUPPLY-INDEX-bulkSearch');
|
||||
}
|
||||
|
||||
ngOnInit(): void {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user