123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- import { Component, OnInit, ViewChild } from '@angular/core';
- import { _HttpClient, ModalHelper } from '@delon/theme';
- import { STColumn, STComponent } from '@delon/abc';
- import { SFSchema } from '@delon/form';
- @Component({
- selector: 'app-quality-control-process-and-facility',
- templateUrl: './process-and-facility.component.html',
- })
- export class QualityControlProcessAndFacilityComponent 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: [
- // { text: '查看', click: (item: any) => `/form/${item.id}` },
- // { text: '编辑', type: 'static', component: FormEditComponent, click: 'reload' },
- ]
- }
- ];
- constructor(private http: _HttpClient, private modal: ModalHelper) { }
- ngOnInit() { }
- add() {
- // this.modal
- // .createStatic(FormEditComponent, { i: { id: 0 } })
- // .subscribe(() => this.st.reload());
- }
- }
|