From 0b3a3a2e523047e3fcfbc8eb4dc4331abcd2ff68 Mon Sep 17 00:00:00 2001 From: tangjie <122778500@qq.com> Date: Fri, 14 Aug 2026 17:56:01 +0800 Subject: [PATCH] fix --- src/enumerate/constant/index.js | 5 +++-- .../MonitorManage/EvalProjectMonitor/List/index.js | 8 ++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/enumerate/constant/index.js b/src/enumerate/constant/index.js index 26c1fca..3e8c4d7 100644 --- a/src/enumerate/constant/index.js +++ b/src/enumerate/constant/index.js @@ -454,15 +454,16 @@ export const NODE_LABELS = { /** 监管端-安评项目实时监控 - 监管状态映射 */ export const MONITOR_WARING_STATUS_MAP = { normal: { color: "success", text: "正常" }, - PERSONNEL_ABNORMAL: { color: "warning", text: "异常" }, + abnormal: { color: "warning", text: "异常" }, }; /** 监管端-安评项目实时监控 - 监管状态筛选选项 */ export const MONITOR_WARING_STATUS_OPTIONS = [ { label: "正常", value: "normal" }, - { label: "人员异常", value: "PERSONNEL_ABNORMAL" }, + { label: "人员异常", value: "abnormal" }, ]; + /** 监管端-项目踏勘监管 - 打卡状态筛选选项 */ export const CLOCK_IN_STATUS_OPTIONS = [ { label: "正常", value: "normal" }, diff --git a/src/pages/Container/MonitorManage/EvalProjectMonitor/List/index.js b/src/pages/Container/MonitorManage/EvalProjectMonitor/List/index.js index b01eff8..24edee1 100644 --- a/src/pages/Container/MonitorManage/EvalProjectMonitor/List/index.js +++ b/src/pages/Container/MonitorManage/EvalProjectMonitor/List/index.js @@ -23,6 +23,7 @@ import { EVAL_TYPE_OPTIONS, EVAL_TYPE_MAP, MONITOR_WARING_STATUS_OPTIONS, + MONITOR_WARING_STATUS_MAP, } from "~/enumerate/constant"; import { QUALIFICATION_INDUSTRY_OPTIONS, @@ -156,9 +157,12 @@ const EvalProjectMonitor = (props) => { { title: "负责人", dataIndex: "leaderName", width: 90 }, { title: "计划完成", dataIndex: "planEndDate", width: 120 }, { - title: "状态", + title: "监管状态", width: 100, - render: renderWaringStatus, + render: (_,{waringStatus}) => { + const { color, text } = MONITOR_WARING_STATUS_MAP[waringStatus] || {}; + return {text}; + }, }, { title: "操作",