学员列表标题优化

This commit is contained in:
禺狨
2023-04-20 11:52:35 +08:00
parent 1782f6acef
commit b8bb5234ca
2 changed files with 10 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ const MemberPage = () => {
const columns: ColumnsType<DataType> = [
{
title: "学员姓名",
title: "学员",
dataIndex: "name",
render: (_, record: any) => (
<>
@@ -252,7 +252,13 @@ const MemberPage = () => {
text={"部门"}
onUpdate={(keys: any, title: any) => {
setDepIds(keys);
setLabel(title);
var index = title.indexOf("(");
if (index !== -1) {
var resolve = title.substring(0, index);
setLabel(resolve);
} else {
setLabel(title);
}
}}
/>
</div>