U 优化主机权限设置 显示主机连接地址

pull/137/head
zypo 2020-06-17 14:58:06 +08:00
parent 497bba27ba
commit b63cf7ecf2
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ class HostSelector extends React.Component {
dataIndex: 'name', dataIndex: 'name',
ellipsis: true ellipsis: true
}, { }, {
title: '连地址', title: '连地址',
dataIndex: 'hostname', dataIndex: 'hostname',
}, { }, {
title: '端口', title: '端口',

View File

@ -74,7 +74,7 @@ class HostPerm extends React.Component {
targetKeys={store.hostPerms} targetKeys={store.hostPerms}
onChange={keys => store.hostPerms = keys} onChange={keys => store.hostPerms = keys}
filterOption={(inputValue, option) => `${option.zone}${option.name}`.toLowerCase().indexOf(inputValue.toLowerCase()) > -1} filterOption={(inputValue, option) => `${option.zone}${option.name}`.toLowerCase().indexOf(inputValue.toLowerCase()) > -1}
render={item => `${item.zone} - ${item.name}`}/> render={item => `${item.zone} - ${item.name}(${item.hostname})`}/>
</Form.Item> </Form.Item>
</Modal> </Modal>
) )