优化HiddenInfo

master
LiuJiaNan 2026-01-19 11:03:57 +08:00
parent 6cf06e367f
commit 60e668e2a6
1 changed files with 7 additions and 7 deletions

View File

@ -232,15 +232,15 @@ function HiddenInfo(props) {
column={1}
styles={{ label: { width: 200 } }}
items={[
...(item.hiddenLevelName ? [{ label: "隐患级别", children: item.hiddenLevelName }] : []),
...((item.hiddenLevelName && item.status !== 0) ? [{ label: "隐患级别", children: item.hiddenLevelName }] : []),
...(item.userName ? [{ label: "隐患确认人", children: item.userName }] : []),
...(item.rectificationTime ? [{ label: "隐患确认时间", children: item.rectificationTime }] : []),
...(item.rectifyDeptName ? [{ label: `整改${info.isRelated === 1 ? "单位" : "部门"}`, children: item.rectifyDeptName }] : []),
...(item.rectifyUserName ? [{ label: "整改人", children: item.rectifyUserName }] : []),
...(item.rectificationDeadline ? [{ label: "整改完成期限", children: item.rectificationDeadline }] : []),
...(item.checkDeptName ? [{ label: "验收部门", children: item.checkDeptName }] : []),
...(item.checkUserName ? [{ label: "验收人", children: item.checkUserName }] : []),
...(item.repulseCause
...((item.rectifyDeptName && item.status !== 0) ? [{ label: `整改${info.isRelated === 1 ? "单位" : "部门"}`, children: item.rectifyDeptName }] : []),
...((item.rectifyUserName && item.status !== 0) ? [{ label: "整改人", children: item.rectifyUserName }] : []),
...((item.rectificationDeadline && item.status !== 0) ? [{ label: "整改完成期限", children: item.rectificationDeadline }] : []),
...((item.checkDeptName && item.status !== 0) ? [{ label: "验收部门", children: item.checkDeptName }] : []),
...((item.checkUserName && item.status !== 0) ? [{ label: "验收人", children: item.checkUserName }] : []),
...(item.status === 0
? [
...(item.repulseCause ? [{ label: "打回意见", children: item.repulseCause }] : []),
...(item.rectificationTime ? [{ label: "打回时间", children: item.rectificationTime }] : []),