From b97e27a2f418d9a0239f1066a6efdba72cfbc046 Mon Sep 17 00:00:00 2001 From: Taric Xin Date: Wed, 13 Apr 2022 13:56:19 +0800 Subject: [PATCH] edit --- .../components/driver/driver.component.ts | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/app/routes/usercenter/components/driver/driver.component.ts b/src/app/routes/usercenter/components/driver/driver.component.ts index e2e85027..dce18057 100644 --- a/src/app/routes/usercenter/components/driver/driver.component.ts +++ b/src/app/routes/usercenter/components/driver/driver.component.ts @@ -17,7 +17,7 @@ export class UserCenterComponentsDriverComponent implements OnInit { _$expand = false; @ViewChild('st', { static: false }) st!: STComponent; @ViewChild('sf', { static: false }) sf!: SFComponent; - ui: SFUISchema = { '*': { spanLabelFixed: 120, grid: { lg: 8, md: 12, sm: 12, xs: 24 }, enter: () => this.st.load() } }; + ui: SFUISchema = { '*': { spanLabelFixed: 130, grid: { lg: 8, md: 12, sm: 12, xs: 24 }, enter: () => this.st.load() } }; schema: SFSchema = this.initSF(); columns: STColumn[] = this.initST(); @@ -199,10 +199,10 @@ export class UserCenterComponentsDriverComponent implements OnInit { title: '从业资格证状态', enum: [ { label: '全部', value: '' }, - { label: '待审核', value: 10 }, - { label: '审核通过', value: 20 }, - { label: '驳回', value: 30 }, - { label: '证件过期', value: 40 } + { label: '未提交 ', value: -1 }, + { label: '已提交', value: 1 }, + { label: '已通过', value: 2 }, + { label: '已过期', value: 3 } ], default: '', ui: { @@ -302,10 +302,12 @@ export class UserCenterComponentsDriverComponent implements OnInit { type: 'badge', badge: { '-1': { text: '未提交', color: 'default' }, - 10: { text: '待审核', color: 'default' }, - 20: { text: '审核通过', color: 'success' }, - 30: { text: '驳回', color: 'warning' }, - 40: { text: '证件过期', color: 'error' } + 1: { text: '已提交', color: 'processing' }, + 2: { text: '已通过', color: 'success' }, + // 10: { text: '待审核', color: 'default' }, + // 20: { text: '审核通过', color: 'success' }, + // 30: { text: '驳回', color: 'warning' }, + // 40: { text: '证件过期', color: 'error' } }, width: 180 },