Commit 07736b35 authored by 皮倩雯's avatar 皮倩雯

fix: '网关配置万能模板只允许查看'

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