修改部门名称过长显示问题

master
853931625@qq.com 2026-06-02 16:41:46 +08:00
parent 845925bc82
commit b032a65aa8
4 changed files with 7 additions and 4 deletions

View File

@ -159,7 +159,7 @@ function OrganizationStructure(props) {
type="link"
onClick={() => handleTableNodeClick(record)}
>
{`${record.name}>`}
{`${record.name.length > 25 ? `${record.name.slice(0, 25)}...` : record.name}>`}
</Button>
),
},

View File

@ -181,7 +181,7 @@ function Department(props) {
type="link"
onClick={() => handleTableNodeClick(record)}
>
{`${record.name}>`}
{`${record.name.length > 25 ? `${record.name.slice(0, 25)}...` : record.name}>`}
</Button>
),
},

View File

@ -215,10 +215,12 @@ function List(props) {
{
title: "分公司状态",
dataIndex: "corpStateName",
width: 180,
},
{
title: "状态",
dataIndex: "useFlag",
width: 180,
render: (_, record) => (
<div>
{record.useFlag === 0
@ -231,7 +233,7 @@ function List(props) {
},
{
title: "操作",
width: 500,
width: 400,
render: (_, record) => (
<Space>

View File

@ -192,9 +192,10 @@ function Department(props) {
<Button
block
type="link"
title={record.name}
onClick={() => handleTableNodeClick(record)}
>
{`${record.name}>`}
{`${record.name.length > 25 ? `${record.name.slice(0, 25)}...` : record.name}>`}
</Button>
),
},