学员列表标题优化

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

@ -217,7 +217,7 @@ const CourseUserPage = () => {
placeholder="请输入学员邮箱"
/>
</div>
<div className="d-flex mr-24">
{/* <div className="d-flex mr-24">
<Typography.Text></Typography.Text>
<Input
value={idCard}
@ -227,7 +227,7 @@ const CourseUserPage = () => {
style={{ width: 160 }}
placeholder="请输入身份证号"
/>
</div>
</div> */}
<div className="d-flex">
<Button className="mr-16" onClick={resetList}>

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>