1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- import { Component, OnInit, ViewChild } from '@angular/core';
- import { _HttpClient, ModalHelper } from '@delon/theme';
- import { STColumn, STComponent } from '@delon/abc';
- import { SFSchema } from '@delon/form';
- import { NzDrawerService } from 'ng-zorro-antd';
- import { ContractManagementContractFileAddComponent } from './add/add.component';
- import { I18NService } from '@core';
- @Component({
- selector: 'app-contract-management-contract-file',
- templateUrl: './contract-file.component.html',
- })
- export class ContractManagementContractFileComponent implements OnInit {
- url = `/user`;
- searchSchema: SFSchema = {
- properties: {
- no: {
- type: 'string',
- title: '编号'
- }
- }
- };
- @ViewChild('st') st: STComponent;
- columns: STColumn[] = [
- { title: '编号', index: 'no' },
- { title: '调用次数', type: 'number', index: 'callNo' },
- { title: '头像', type: 'img', width: '50px', index: 'avatar' },
- { title: '时间', type: 'date', index: 'updatedAt' },
- {
- title: '',
- buttons: [
-
-
- ]
- }
- ];
- constructor(private nzDrawerService:NzDrawerService,private i18NService:I18NService) { }
- ngOnInit() { }
- add() {
- const drawerRef = this.nzDrawerService.create({
- nzTitle: this.i18NService.fanyi("button.add"),
- nzContent: ContractManagementContractFileAddComponent,
- nzWidth: window.innerWidth,
- nzBodyStyle: { height: 'calc(100% - 55px)', overflow: 'auto', 'padding-bottom': '53px' }
-
-
-
-
- });
-
- drawerRef.afterClose.subscribe((isRefresh) => {
- if (isRefresh) {
-
- }
- });
- }
- }
|