This commit is contained in:
Taric Xin
2022-04-27 17:45:45 +08:00
parent 3d03561159
commit 58e828b926
2 changed files with 17 additions and 9 deletions

View File

@ -1,5 +1,5 @@
/*
* @Description :
* @Description :
* @Version : 1.0
* @Author : Shiming
* @Date : 2022-01-07 13:27:10
@ -10,18 +10,25 @@
*/
import { Component, OnInit } from '@angular/core';
import { ACLService } from '@delon/acl';
import { ModalHelper, _HttpClient } from '@delon/theme';
@Component({
selector: 'app-supply-management-index',
templateUrl: './index.component.html',
templateUrl: './index.component.html'
})
export class ContractManagementIndexComponent implements OnInit {
selectedIndex = 0;
constructor(private http: _HttpClient, private modal: ModalHelper) { }
ngOnInit(): void { }
isShowDetail = false;
isShowFrame = false;
constructor(private http: _HttpClient, private modal: ModalHelper, private acl: ACLService) {
const acls = acl.data.abilities || [];
this.isShowDetail = !!acls.find(acl => acl === 'CONTRACT-INDEX-searchDetail');
this.isShowFrame = !!acls.find(acl => acl === 'CONTRACT-INDEX-listFrame');
console.log(this.isShowFrame);
}
ngOnInit(): void {}
}