/*
 * @Description  :
 * @Version      : 1.0
 * @Author       : Shiming
 * @Date         : 2022-01-07 13:27:10
 * @LastEditors  : Shiming
 * @LastEditTime : 2022-01-18 17:17:01
 * @FilePath     : \\tms-obc-web\\src\\app\\routes\\contract-management\\components\\index\\index.component.ts
 * Copyright (C) 2022 huzhenhong. All rights reserved.
 */

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'
})
export class ContractManagementIndexComponent implements OnInit {
  selectedIndex = 0;
  isShowDetail = false;
  isShowFrame = false;

  constructor(private http: _HttpClient, private modal: ModalHelper, private acl: ACLService) {
    const acls = acl.data.abilities || [];
    this.isShowDetail =acl.data.full || !!acls.find(acl => acl === 'CONTRACT-INDEX-searchDetail');
    this.isShowFrame =acl.data.full || !!acls.find(acl => acl === 'CONTRACT-INDEX-listFrame');
    
  }

  ngOnInit(): void {}
}
