修改部门名称过长显示问题
parent
845925bc82
commit
b032a65aa8
|
|
@ -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>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue