Commit d3b653ad authored by 皮倩雯's avatar 皮倩雯

fix: '网关配置'

parent 4488bb4d
Pipeline #62472 passed with stages
...@@ -272,41 +272,29 @@ const GateConfig = () => { ...@@ -272,41 +272,29 @@ const GateConfig = () => {
key: 'action', key: 'action',
width: 100, width: 100,
align: 'center', align: 'center',
render: record => { render: record => (
if (record.key != 'CityServer') { <Space size="middle">
return ( <Tooltip title="编辑">
<Space size="middle"> <EditTwoTone onClick={() => edit(record)} style={{ fontSize: '16px' }} />
<Tooltip title="编辑"> </Tooltip>
<EditTwoTone onClick={() => edit(record)} style={{ fontSize: '16px' }} /> <Tooltip title="删除">
</Tooltip> <Popconfirm
<Tooltip title="删除"> placement="bottomRight"
<Popconfirm title={
placement="bottomRight" <p>
title={ 即将删除 <span>{record.loginName}</span>
<p> ,是否确认删除?
即将删除 <span>{record.loginName}</span> </p>
,是否确认删除? }
</p> okText="确认"
} cancelText="取消"
okText="确认" onConfirm={() => dele(record)}
cancelText="取消" >
onConfirm={() => dele(record)} <DeleteOutlined style={{ fontSize: '16px', color: '#e86060' }} />
> </Popconfirm>
<DeleteOutlined style={{ fontSize: '16px', color: '#e86060' }} /> </Tooltip>
</Popconfirm> </Space>
</Tooltip> ),
</Space>
);
} else {
return (
<Space size="middle">
<Tooltip title="查看">
<SearchOutlined onClick={() => look(record)} style={{ fontSize: '16px' }} />
</Tooltip>
</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