fix bug
This commit is contained in:
		| @ -0,0 +1,57 @@ | ||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | ||||
| import { STColumn, STComponent } from '@delon/abc/st'; | ||||
| import { SFSchema } from '@delon/form'; | ||||
| import { ModalHelper, _HttpClient } from '@delon/theme'; | ||||
| import { DataService } from '../../services/data.service'; | ||||
|  | ||||
| @Component({ | ||||
|   selector: 'app-datatable-datascreen', | ||||
|   templateUrl: './datascreen.component.html', | ||||
|   styleUrls: ['./datascreen.component.less'] | ||||
| }) | ||||
| export class DatatableDatascreenComponent implements OnInit { | ||||
|   @ViewChild('st') private readonly st!: STComponent; | ||||
|   @ViewChild('orderSt') private readonly orderSt!: STComponent; | ||||
|   columns: STColumn[] = []; | ||||
|   orderColumns!: STColumn[]; | ||||
|   constructor(public service: DataService) { } | ||||
|  | ||||
|   /** | ||||
|    * 查询参数 | ||||
|    */ | ||||
|   get reqOrderParams() { | ||||
|     const params = { | ||||
|  | ||||
|     } | ||||
|     return { ...params }; | ||||
|   } | ||||
|   get reqParams() { | ||||
|     const params = { | ||||
|     } | ||||
|     return { ...params }; | ||||
|   } | ||||
|   ngOnInit(): void { | ||||
|     this.initST() | ||||
|     this.initOrderST() | ||||
|   } | ||||
|   /** | ||||
| * 初始化数据列表 | ||||
| */ | ||||
|   initST() { | ||||
|     this.columns = [ | ||||
|       { title: '序号', index: 'carNo', className: 'text-center' }, | ||||
|       { title: '发货地', index: 'carNoColorLabel', className: 'text-center' }, | ||||
|       { title: '卸货地', index: 'carModelLabel', className: 'text-center' }, | ||||
|       { title: '货物', index: 'carStatus', className: 'text-center'}, | ||||
|       { title: '数量', index: 'approvalStatus', className: 'text-center' }, | ||||
|     ]; | ||||
|   } | ||||
|   initOrderST() { | ||||
|     this.columns = [ | ||||
|       { title: '运单号', index: 'carNo', className: 'text-center' }, | ||||
|       { title: '货主', index: 'carNoColorLabel', className: 'text-center' }, | ||||
|       { title: '时间', index: 'carModelLabel', className: 'text-center' }, | ||||
|       { title: '风险等级', index: 'carStatus', className: 'text-center'} | ||||
|     ]; | ||||
|   } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user