dev_1.0.1
luotaiqian 2026-07-07 15:19:16 +08:00
parent 0784830acb
commit 2b8f7e0c50
2 changed files with 10 additions and 4 deletions

View File

@ -59,6 +59,12 @@ export const GENDER_OPTIONS = [
{ label: "女", value: 2 },
];
/** 性别编码(1男2女) → 名称 */
export const GENDER_MAP = {
1: "男",
2: "女",
};
/** 审核结果 */
export const REVIEW_RESULT_OPTIONS = [
{ label: "通过", value: 1 },

View File

@ -8,7 +8,7 @@ import { AntdTableFuncControl } from "@cqsjjb/jjb-common-decorator/antd";
import { tools } from "@cqsjjb/jjb-common-lib";
import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { NS_QUAL_EXPERT } from "~/enumerate/namespace";
import { GENDER_OPTIONS } from "~/enumerate/constant";
import { GENDER_OPTIONS, GENDER_MAP } from "~/enumerate/constant";
const { router } = tools;
@ -116,9 +116,9 @@ const ExperManage = (props) => {
{ title: "账号", dataIndex: "account", width: 140 },
{
title: "性别",
dataIndex: "genderName",
dataIndex: "genderCode",
width: 70,
render: (text) => text || "--",
render: (code) => GENDER_MAP[code] || "--",
},
{ title: "身份证号", dataIndex: "idCardNo", width: 180 },
{ title: "证书", dataIndex: "certificate", width: 120, ellipsis: true },
@ -213,7 +213,7 @@ const ExperManage = (props) => {
<Descriptions column={2} bordered size="small" loading={qualExpertDetailLoading}>
<Descriptions.Item label="姓名">{qualExpertDetail?.userName || "--"}</Descriptions.Item>
<Descriptions.Item label="账号">{qualExpertDetail?.account || "--"}</Descriptions.Item>
<Descriptions.Item label="性别">{qualExpertDetail?.genderName || "--"}</Descriptions.Item>
<Descriptions.Item label="性别">{GENDER_MAP[qualExpertDetail?.genderCode] || "--"}</Descriptions.Item>
<Descriptions.Item label="身份证号">{qualExpertDetail?.idCardNo || "--"}</Descriptions.Item>
<Descriptions.Item label="证书" span={2}>{qualExpertDetail?.certificate || "--"}</Descriptions.Item>
</Descriptions>