mirror of
https://github.com/PlayEdu/backend
synced 2025-06-08 12:34:09 +08:00
学员列表标题优化
This commit is contained in:
parent
1782f6acef
commit
b8bb5234ca
@ -217,7 +217,7 @@ const CourseUserPage = () => {
|
|||||||
placeholder="请输入学员邮箱"
|
placeholder="请输入学员邮箱"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="d-flex mr-24">
|
{/* <div className="d-flex mr-24">
|
||||||
<Typography.Text>身份证号:</Typography.Text>
|
<Typography.Text>身份证号:</Typography.Text>
|
||||||
<Input
|
<Input
|
||||||
value={idCard}
|
value={idCard}
|
||||||
@ -227,7 +227,7 @@ const CourseUserPage = () => {
|
|||||||
style={{ width: 160 }}
|
style={{ width: 160 }}
|
||||||
placeholder="请输入身份证号"
|
placeholder="请输入身份证号"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div> */}
|
||||||
<div className="d-flex">
|
<div className="d-flex">
|
||||||
<Button className="mr-16" onClick={resetList}>
|
<Button className="mr-16" onClick={resetList}>
|
||||||
重 置
|
重 置
|
||||||
|
@ -56,7 +56,7 @@ const MemberPage = () => {
|
|||||||
|
|
||||||
const columns: ColumnsType<DataType> = [
|
const columns: ColumnsType<DataType> = [
|
||||||
{
|
{
|
||||||
title: "学员姓名",
|
title: "学员",
|
||||||
dataIndex: "name",
|
dataIndex: "name",
|
||||||
render: (_, record: any) => (
|
render: (_, record: any) => (
|
||||||
<>
|
<>
|
||||||
@ -252,7 +252,13 @@ const MemberPage = () => {
|
|||||||
text={"部门"}
|
text={"部门"}
|
||||||
onUpdate={(keys: any, title: any) => {
|
onUpdate={(keys: any, title: any) => {
|
||||||
setDepIds(keys);
|
setDepIds(keys);
|
||||||
|
var index = title.indexOf("(");
|
||||||
|
if (index !== -1) {
|
||||||
|
var resolve = title.substring(0, index);
|
||||||
|
setLabel(resolve);
|
||||||
|
} else {
|
||||||
setLabel(title);
|
setLabel(title);
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user