Commit 63c6ad34 by Lichen

用户列表添加关联角色字段

parent df3681e1
...@@ -48,6 +48,23 @@ class UserTable extends Component { ...@@ -48,6 +48,23 @@ class UserTable extends Component {
}, },
}, },
{ {
title: "关联角色",
dataIndex: "relationRoleNames",
render: (text, record) => {
if (record.relationRoleNames) {
return (
<span title={record.relationRoleNames}>
{record.relationRoleNames.length > 15
? record.relationRoleNames.substring(14, 0) + "..."
: record.relationRoleNames}
</span>
);
} else {
return <span></span>;
}
},
},
{
title: "状态", title: "状态",
dataIndex: "enabled", dataIndex: "enabled",
}, },
...@@ -287,6 +304,7 @@ class UserTable extends Component { ...@@ -287,6 +304,7 @@ class UserTable extends Component {
fullName: item.fullName, fullName: item.fullName,
telephone: item.telephone, telephone: item.telephone,
position: item.position, position: item.position,
relationRoleNames: item.relationRoleNames,
enabled: item.enabled ? "启用" : "停用", enabled: item.enabled ? "启用" : "停用",
wechat: item.wechat, wechat: item.wechat,
expiredTime: item.expiredTime, expiredTime: item.expiredTime,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment