tangjie 2026-07-07 15:27:26 +08:00
commit ee34cebb5e
3 changed files with 15 additions and 4 deletions

View File

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

View File

@ -64,6 +64,11 @@ const menuItems = [
label: "企业画像管理", label: "企业画像管理",
icon: <BarChartOutlined />, icon: <BarChartOutlined />,
}, },
{
key: "/safetyEval/container/Supervision/ExperManage",
label: "专家管理",
icon: <IdcardOutlined />,
},
], ],
}, },
{ {

View File

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