From 5677e6a371c70d6fc9adfa6d574aeee68b630b68 Mon Sep 17 00:00:00 2001 From: wangshiming Date: Mon, 18 Apr 2022 20:18:20 +0800 Subject: [PATCH] fix bug --- .../mancustomtable/mancustomtable.component.ts | 6 +++++- .../components/complaint/complaint.component.ts | 12 +++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/app/routes/datatable/components/customtable/mancustomtable/mancustomtable.component.ts b/src/app/routes/datatable/components/customtable/mancustomtable/mancustomtable.component.ts index 5103b7fc..f4db64b7 100644 --- a/src/app/routes/datatable/components/customtable/mancustomtable/mancustomtable.component.ts +++ b/src/app/routes/datatable/components/customtable/mancustomtable/mancustomtable.component.ts @@ -64,7 +64,11 @@ export class DatatableMancustomtableComponent implements OnInit { columns: STColumn[] = [ { title: '部门', index: 'department', className: 'text-center', width: '200px' }, { title: '业务员', index: 'salesmen', className: 'text-center', width: '200px' }, - { title: '已认证货主数', index: 'certifiedCount', className: 'text-center', width: '100px' }, + { title: '已认证货主数', index: 'certifiedCount', className: 'text-center', width: '100px', iif: ()=> { + console.log(this.resourceStatus); + return this.resourceStatus !== 1 + + } }, { title: '已认证合伙人', index: 'certifiedCount', className: 'text-center', width: '100px' }, { title: '新增合伙人数', index: 'addCount', className: 'text-center', width: '100px' }, { title: '合伙人活跃率', index: 'alivePer', className: 'text-center', width: '100px' }, diff --git a/src/app/routes/order-management/components/complaint/complaint.component.ts b/src/app/routes/order-management/components/complaint/complaint.component.ts index e29ca2e0..a0e077a1 100644 --- a/src/app/routes/order-management/components/complaint/complaint.component.ts +++ b/src/app/routes/order-management/components/complaint/complaint.component.ts @@ -93,10 +93,17 @@ export class OrderManagementComplaintComponent implements OnInit { initSF() { this.schema = { properties: { + _$expand: { type: 'boolean', ui: { hidden: true } }, complaintCode: { type: 'string', title: '投诉单号' }, + wayBillCode: { + type: 'string', + title: '运单号', + ui: { + } + }, complaintCause: { title: '投诉原因', type: 'string', @@ -124,7 +131,10 @@ export class OrderManagementComplaintComponent implements OnInit { ui: { widget: 'sl-from-to', type: 'date', - format: 'yyyy-MM-dd' + format: 'yyyy-MM-dd', + visibleIf: { + _$expand: (value: boolean) => value + }, } as SFDateWidgetSchema } }