fix issues

pull/410/head
vapao 2021-09-07 23:57:31 +08:00
parent 3b03e0c6bb
commit de4bffbb50
4 changed files with 15 additions and 7 deletions

View File

@ -226,8 +226,10 @@ export default observer(function () {
</Form.Item>
)}
<Form.Item required label="目标主机" tooltip="可以通过创建多个发布申请单,选择主机分批发布。">
{host_ids.length > 0 && `已选择 ${host_ids.length} 台(可选${app_host_ids.length}`}
<Button type="link" onClick={() => setVisible(true)}>选择主机</Button>
{host_ids.length > 0 && (
<span style={{marginRight: 16}}>已选择 {host_ids.length} 可选{app_host_ids.length}</span>
)}
<Button type="link" style={{padding: 0}} onClick={() => setVisible(true)}>选择主机</Button>
</Form.Item>
<Form.Item name="desc" label="备注信息">
<Input placeholder="请输入备注信息"/>

View File

@ -99,8 +99,10 @@ export default observer(function () {
</Form.Item>
)}
<Form.Item required label="目标主机" tooltip="可以通过创建多个发布申请单,选择主机分批发布。">
{host_ids.length > 0 && `已选择 ${host_ids.length} 台(可选${app_host_ids.length}`}
<Button type="link" onClick={() => setVisible(true)}>选择主机</Button>
{host_ids.length > 0 && (
<span style={{marginRight: 16}}>已选择 {host_ids.length} 可选{app_host_ids.length}</span>
)}
<Button type="link" style={{padding: 0}} onClick={() => setVisible(true)}>选择主机</Button>
</Form.Item>
<Form.Item name="desc" label="备注信息">
<Input placeholder="请输入备注信息"/>

View File

@ -71,8 +71,10 @@ export default observer(function () {
</Select>
</Form.Item>
<Form.Item required label="目标主机" tooltip="可以通过创建多个发布申请单,选择主机分批发布。">
{host_ids.length > 0 && `已选择 ${host_ids.length} 台(可选${app_host_ids.length}`}
<Button type="link" onClick={() => setVisible(true)}>选择主机</Button>
{host_ids.length > 0 && (
<span style={{marginRight: 16}}>已选择 {host_ids.length} 可选{app_host_ids.length}</span>
)}
<Button type="link" style={{padding: 0}} onClick={() => setVisible(true)}>选择主机</Button>
</Form.Item>
<Form.Item name="desc" label="备注信息">
<Input placeholder="请输入备注信息"/>

View File

@ -131,7 +131,9 @@ export default observer(function () {
notFoundContent={null}/>
</Form.Item>
<Form.Item required label="监控主机" style={getStyle(['3', '4'])}>
{store.record.targets?.length > 0 && `已选择 ${store.record.targets.length}`}
{store.record.targets?.length > 0 && (
<span style={{marginRight: 16}}>已选择 {store.record.targets.length} </span>
)}
<Button type="link" style={{padding: 0}} onClick={() => setShowSelector(true)}>选择主机</Button>
</Form.Item>
<Form.Item label="响应时间" style={getStyle(['1'])}>