+{row.departments.length - 1}
@@ -51,17 +53,75 @@ const Roles = (props) => {
{
title: '项目名称',
render: (_, row) => {
+ let anxinerror = false
+ let anxinerrorArr = []
+ for (let i = 0; i < row.correlationProject.length; i++) {
+ if (row.correlationProject[i].del == -1) {
+ anxinerror = true
+ anxinerrorArr.push(row.correlationProject[i].pepProjectName)
+ }
+ }
return (
-
+
+ {
+ anxinerror ? (
+
+
+
+
+ ) : ('')
+ }
{
row.correlationProject.map((item, index) => {
return (
-
- {item}
+
+ {
+ row.correlationProject.length >= 3 ? (
+
+ 7 ? '112px' : '', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', display: index > 2 ? 'none' : '', color: item.del ? '#F93920' : '' }}>
+ {item.pepProjectName}
+
+
+ ) : row.correlationProject.length == 2 ? (
+
+ 12 ? '173.5px' : '', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', color: item.del ? '#F93920' : '' }}>
+ {item.pepProjectName}
+
+
+ ) : (
+
+ 25 ? '358px' : '', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', color: item.del ? '#F93920' : '' }}>
+ {item.pepProjectName}
+
+
+ )
+ }
+
1 ? 'none' : '' }}>
)
})
}
+ {
+ row.correlationProject.length > 3 ? (
+
+ {
+ row.correlationProject.map((item, index) => {
+ return (
+
+ {item.pepProjectName},
+
+ )
+ })
+ }
+
+ } trigger="click" style={{ lineHeight: 2 }}>
+
+ +{row.correlationProject.length - 3}
+
+
+ ) : ('')
+ }
)
}
@@ -103,7 +163,7 @@ const Roles = (props) => {
title: (
售后运维
-
+
@@ -136,7 +196,7 @@ const Roles = (props) => {
title: (
资源管理者
-
+
@@ -169,7 +229,7 @@ const Roles = (props) => {
title: (
客户服务
-
+
@@ -211,7 +271,7 @@ const Roles = (props) => {
theme="borderless"
style={{ color: '#F31C1C' }}
onClick={() => {
- dispatch(install.putOrganizationUser({ pomsUserId: row?.id, disabled: !row?.disabled,msg:'更新成员状态' })).then(() => {
+ dispatch(install.putOrganizationUser({ pomsUserId: row?.id, disabled: !row?.disabled, msg: '更新成员状态' })).then(() => {
setQuery({ limit: 10, page: page.current })
})
}}
@@ -225,7 +285,7 @@ const Roles = (props) => {
showArrow={true}
position="topRight"
onConfirm={() => {
- dispatch(install.putOrganizationUser({ pomsUserId: row?.id, disabled: !row?.disabled,msg:'更新成员状态' })).then(() => {
+ dispatch(install.putOrganizationUser({ pomsUserId: row?.id, disabled: !row?.disabled, msg: '更新成员状态' })).then(() => {
setQuery({ limit: 10, page: page.current })
})
}}
@@ -236,6 +296,18 @@ const Roles = (props) => {