Commit e929c565 authored by 涂伟's avatar 涂伟

fix: '表设计功能物联设备表分类删除按钮隐藏'

parent d19a4bde
......@@ -655,26 +655,28 @@ const TableManager = props => {
style={{ fontSize: '16px', color: '#1890FF' }}
/>
</Tooltip> */}
<div onClick={e => e.stopPropagation()}>
<Popconfirm
title="是否删除该表?"
okText="确认"
cancelText="取消"
onConfirm={() => {
deleteChart(record);
}}
>
<Tooltip title="删除">
{/* <DeleteOutlined style={{ fontSize: '16px', color: '#e86060' }} /> */}
<img
className={styles.btnImg}
src={deleteSvg}
alt=""
style={{ width: '16px', color: '#1890FF' }}
/>
</Tooltip>
</Popconfirm>
</div>
{record.groupName !== '物联设备表' ? (
<div onClick={e => e.stopPropagation()}>
<Popconfirm
title="是否删除该表?"
okText="确认"
cancelText="取消"
onConfirm={() => {
deleteChart(record);
}}
>
<Tooltip title="删除">
{/* <DeleteOutlined style={{ fontSize: '16px', color: '#e86060' }} /> */}
<img
className={styles.btnImg}
src={deleteSvg}
alt=""
style={{ width: '16px', color: '#1890FF' }}
/>
</Tooltip>
</Popconfirm>
</div>
) : null}
</Space>
),
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment