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

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" type="link"
onClick={() => handleTableNodeClick(record)} onClick={() => handleTableNodeClick(record)}
> >
{`${record.name}>`} {`${record.name.length > 25 ? `${record.name.slice(0, 25)}...` : record.name}>`}
</Button> </Button>
), ),
}, },

View File

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

View File

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

View File

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