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