Commit a2ca1da55762d1bbb53bcb28e2a636792db4f3d0
1 parent
83c24292
优化 认证系统-认证审核 页面交互;
Showing
2 changed files
with
17 additions
and
7 deletions
src/pages/identify/IdentifyAudit/components/List.tsx
... | ... | @@ -27,11 +27,21 @@ export default function IdentifyAuditList() { |
27 | 27 | > |
28 | 28 | <Table.Column title="资料编码" dataIndex="identifyCode" align="left" /> |
29 | 29 | <Table.Column title="资料名称" dataIndex="identifyName" align="left" /> |
30 | - {pagination.innerParams.type === Type.会员认证 ? ( | |
31 | - <Table.Column title="会员号" dataIndex="memberId" align="left" /> | |
30 | + {pagination.innerParams.type !== Type.员工认证 ? ( | |
31 | + <Table.Column | |
32 | + title="会员号" | |
33 | + dataIndex="memberId" | |
34 | + align="left" | |
35 | + render={(memberId) => memberId ?? "-"} | |
36 | + /> | |
32 | 37 | ) : null} |
33 | - {pagination.innerParams.type === Type.员工认证 ? ( | |
34 | - <Table.Column title="员工ID" dataIndex="staffId" align="left" /> | |
38 | + {pagination.innerParams.type !== Type.会员认证 ? ( | |
39 | + <Table.Column | |
40 | + title="员工ID" | |
41 | + dataIndex="staffId" | |
42 | + align="left" | |
43 | + render={(staffId) => staffId ?? "-"} | |
44 | + /> | |
35 | 45 | ) : null} |
36 | 46 | {pagination.innerParams.type === Type.车辆认证 ? ( |
37 | 47 | <Table.Column title="VIN" dataIndex="vin" align="left" /> | ... | ... |
src/pages/identify/IdentifyAudit/components/Modal.tsx
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | * @Author: wangqiang@feewee.cn |
3 | 3 | * @Date: 2023-02-10 17:52:44 |
4 | 4 | * @LastEditors: wangqiang@feewee.cn |
5 | - * @LastEditTime: 2023-02-11 16:46:04 | |
5 | + * @LastEditTime: 2023-03-01 14:04:28 | |
6 | 6 | */ |
7 | 7 | import { |
8 | 8 | Button, |
... | ... | @@ -139,12 +139,12 @@ export default function IdentifyAuditModal() { |
139 | 139 | <ProDescriptions.Item label="资料名称"> |
140 | 140 | {current?.identifyName || "-"} |
141 | 141 | </ProDescriptions.Item> |
142 | - {pagination.innerParams?.type === Type.会员认证 ? ( | |
142 | + {pagination.innerParams?.type !== Type.员工认证 ? ( | |
143 | 143 | <ProDescriptions.Item label="会员ID"> |
144 | 144 | {current?.memberId || "-"} |
145 | 145 | </ProDescriptions.Item> |
146 | 146 | ) : null} |
147 | - {pagination.innerParams?.type === Type.员工认证 ? ( | |
147 | + {pagination.innerParams?.type !== Type.会员认证 ? ( | |
148 | 148 | <ProDescriptions.Item label="员工ID"> |
149 | 149 | {current?.staffId || "-"} |
150 | 150 | </ProDescriptions.Item> | ... | ... |