This commit is contained in:
Taric Xin
2022-03-25 14:58:53 +08:00
parent ff29668daa
commit a81d685b67
2 changed files with 10 additions and 1 deletions

View File

@ -39,6 +39,15 @@
<st #st [columns]="columns" [data]='service.$api_get_freight_list' [req]="{ process: beforeReq }"
[res]="{ process: dataProcess }" [scroll]="{ x: '1200px' }" [page]=" {}" [loading]="loadingList">
<ng-template st-row="enterpriseName" let-item let-index="index">
<label>{{ item.enterpriseName }}</label><br>
<ng-container *ngIf="item.score!==null; else billEvaluateelseTemplate">
<nz-rate [ngModel]="item.score" nzDisabled></nz-rate>
</ng-container>
<ng-template #billEvaluateelseTemplate>
<p>暂无评价</p>
</ng-template>
</ng-template>
<ng-template st-row="unifiedSocialCreditCode" let-item let-index="index">
<label [ngStyle]="{'color': item.isExpired?'#ff4d4f':''}">{{ item.unifiedSocialCreditCode }}</label><br>
<ng-container *ngIf="item.isExpired">

View File

@ -363,7 +363,7 @@ export class FreightComponentsListComponent implements OnInit {
initST() {
this.columns = [
// { title: '', type: 'checkbox', className: 'text-center' },
{ title: '企业名称', className: 'text-center', index: 'enterpriseName', width: 350 },
{ title: '企业名称', render: 'enterpriseName', width: 350 },
{ title: '统一社会信用代码', className: 'text-center', render: 'unifiedSocialCreditCode', width: 200 },
{
title: '公司所在地',