12 ? '173.5px' : '', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', color: item.del ? '#F93920' : '' }}>
- {item.pepProjectName}
+ ) : row?.correlationProject?.length == 2 ? (
+
+ 12 || item?.name?.length > 12 ? '173.5px' : '', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', color: item.del ? '#F93920' : '' }}>
+ {item.pepProjectName || item.name}
) : (
-
- 25 ? '358px' : '', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', color: item.del ? '#F93920' : '' }}>
- {item.pepProjectName}
+
+ 25 || item?.name?.length > 25 ? '358px' : '', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', color: item.del ? '#F93920' : '' }}>
+ {item.pepProjectName || item.name}
)
@@ -102,14 +102,14 @@ const Roles = (props) => {
})
}
{
- row.correlationProject.length > 3 ? (
+ row?.correlationProject?.length > 3 ? (
{
row.correlationProject.map((item, index) => {
return (
- {item.pepProjectName},
+ {item.pepProjectName || item.name},
)
})
@@ -117,7 +117,7 @@ const Roles = (props) => {
} trigger="click" style={{ lineHeight: 2 }}>
- +{row.correlationProject.length - 3}
+ +{row?.correlationProject?.length - 3}
) : ('')
From 4f8c6202cf435b61459b8db810479f81a0e65707 Mon Sep 17 00:00:00 2001
From: deartibers <947466799@qq.com>
Date: Wed, 21 Sep 2022 17:43:20 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/client/src/sections/install/components/memberModal.jsx | 2 +-
web/client/src/sections/install/containers/roles.jsx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/client/src/sections/install/components/memberModal.jsx b/web/client/src/sections/install/components/memberModal.jsx
index 972aaba..c92acc2 100644
--- a/web/client/src/sections/install/components/memberModal.jsx
+++ b/web/client/src/sections/install/components/memberModal.jsx
@@ -234,7 +234,7 @@ function memberModal (props) {
fontSize: 12, marginLeft: 8, lineHeight: 2, padding: '0px 5px',
border: '1px solid rgba(255,51,0,0.3)', width: 515
}}>
- 确定后“{anxinDelete.join('、')}”将被系统移除,原因是项目已在【项企】中被删除!
+ 确定后“{anxinDelete.join('、')}”将被系统移除,原因是项目已在【项企】或【映射关系】中被删除!