|
@@ -133,7 +133,7 @@ const Income: React.FC<RouteComponentProps> = (props) => {
|
|
|
<Button type="text" icon={<SvgIcon type="xxh-plus" style={{ color: '#007bff', fontSize: 12 }} />} onClick={() => treeResfulApiHandler('add', { id: row.id, bidsectionId: row.bidsectionId, name: '' })} />
|
|
|
</Tooltip>
|
|
|
{
|
|
|
- !row.children?.length ?
|
|
|
+ !row.children?.length && row.depth !== 1?
|
|
|
<Tooltip title="删除">
|
|
|
<Button type="text" icon={<SvgIcon type="xxh-times" style={{ color: '#007bff', fontSize: 12 }} />} onClick={() => treeResfulApiHandler('del', { id: row.id, bidsectionId: row.bidsectionId })} />
|
|
|
</Tooltip>
|