dev-tmp1
tangjie 2026-08-14 17:56:01 +08:00
parent 61333696b4
commit 0b3a3a2e52
2 changed files with 9 additions and 4 deletions

View File

@ -454,15 +454,16 @@ export const NODE_LABELS = {
/** 监管端-安评项目实时监控 - 监管状态映射 */ /** 监管端-安评项目实时监控 - 监管状态映射 */
export const MONITOR_WARING_STATUS_MAP = { export const MONITOR_WARING_STATUS_MAP = {
normal: { color: "success", text: "正常" }, normal: { color: "success", text: "正常" },
PERSONNEL_ABNORMAL: { color: "warning", text: "异常" }, abnormal: { color: "warning", text: "异常" },
}; };
/** 监管端-安评项目实时监控 - 监管状态筛选选项 */ /** 监管端-安评项目实时监控 - 监管状态筛选选项 */
export const MONITOR_WARING_STATUS_OPTIONS = [ export const MONITOR_WARING_STATUS_OPTIONS = [
{ label: "正常", value: "normal" }, { label: "正常", value: "normal" },
{ label: "人员异常", value: "PERSONNEL_ABNORMAL" }, { label: "人员异常", value: "abnormal" },
]; ];
/** 监管端-项目踏勘监管 - 打卡状态筛选选项 */ /** 监管端-项目踏勘监管 - 打卡状态筛选选项 */
export const CLOCK_IN_STATUS_OPTIONS = [ export const CLOCK_IN_STATUS_OPTIONS = [
{ label: "正常", value: "normal" }, { label: "正常", value: "normal" },

View File

@ -23,6 +23,7 @@ import {
EVAL_TYPE_OPTIONS, EVAL_TYPE_OPTIONS,
EVAL_TYPE_MAP, EVAL_TYPE_MAP,
MONITOR_WARING_STATUS_OPTIONS, MONITOR_WARING_STATUS_OPTIONS,
MONITOR_WARING_STATUS_MAP,
} from "~/enumerate/constant"; } from "~/enumerate/constant";
import { import {
QUALIFICATION_INDUSTRY_OPTIONS, QUALIFICATION_INDUSTRY_OPTIONS,
@ -156,9 +157,12 @@ const EvalProjectMonitor = (props) => {
{ title: "负责人", dataIndex: "leaderName", width: 90 }, { title: "负责人", dataIndex: "leaderName", width: 90 },
{ title: "计划完成", dataIndex: "planEndDate", width: 120 }, { title: "计划完成", dataIndex: "planEndDate", width: 120 },
{ {
title: "状态", title: "监管状态",
width: 100, width: 100,
render: renderWaringStatus, render: (_,{waringStatus}) => {
const { color, text } = MONITOR_WARING_STATUS_MAP[waringStatus] || {};
return <Tag color={color}>{text}</Tag>;
},
}, },
{ {
title: "操作", title: "操作",