edit
This commit is contained in:
@ -9,15 +9,16 @@
|
|||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
|
||||||
<page-header-wrapper title="合同管理" [tab]="tpTab">
|
<page-header-wrapper title="合同管理" [tab]="tpTab">
|
||||||
</page-header-wrapper>
|
</page-header-wrapper>
|
||||||
<ng-template #tpTab>
|
<ng-template #tpTab>
|
||||||
<nz-tabset [(nzSelectedIndex)]="selectedIndex">
|
<nz-tabset [(nzSelectedIndex)]="selectedIndex">
|
||||||
<nz-tab nzTitle="明细合同">
|
<nz-tab nzTitle="明细合同" *ngIf="isShowDetail">
|
||||||
<app-contract-management-contract-list></app-contract-management-contract-list>
|
<app-contract-management-contract-list></app-contract-management-contract-list>
|
||||||
</nz-tab>
|
</nz-tab>
|
||||||
<nz-tab nzTitle="框架合同">
|
<nz-tab nzTitle="框架合同"*ngIf="isShowFrame">
|
||||||
<app-contract-management-contract-frame></app-contract-management-contract-frame>
|
<app-contract-management-contract-frame ></app-contract-management-contract-frame>
|
||||||
</nz-tab>
|
</nz-tab>
|
||||||
<nz-tab nzTitle="合伙人合同">
|
<nz-tab nzTitle="合伙人合同">
|
||||||
<app-contract-management-contract-partner></app-contract-management-contract-partner>
|
<app-contract-management-contract-partner></app-contract-management-contract-partner>
|
||||||
|
|||||||
@ -10,18 +10,25 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
import { ACLService } from '@delon/acl';
|
||||||
import { ModalHelper, _HttpClient } from '@delon/theme';
|
import { ModalHelper, _HttpClient } from '@delon/theme';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-supply-management-index',
|
selector: 'app-supply-management-index',
|
||||||
templateUrl: './index.component.html',
|
templateUrl: './index.component.html'
|
||||||
})
|
})
|
||||||
export class ContractManagementIndexComponent implements OnInit {
|
export class ContractManagementIndexComponent implements OnInit {
|
||||||
selectedIndex = 0;
|
selectedIndex = 0;
|
||||||
|
isShowDetail = false;
|
||||||
|
isShowFrame = false;
|
||||||
|
|
||||||
constructor(private http: _HttpClient, private modal: ModalHelper) { }
|
constructor(private http: _HttpClient, private modal: ModalHelper, private acl: ACLService) {
|
||||||
|
const acls = acl.data.abilities || [];
|
||||||
ngOnInit(): void { }
|
this.isShowDetail = !!acls.find(acl => acl === 'CONTRACT-INDEX-searchDetail');
|
||||||
|
this.isShowFrame = !!acls.find(acl => acl === 'CONTRACT-INDEX-listFrame');
|
||||||
|
console.log(this.isShowFrame);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
ngOnInit(): void {}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user