mirror of https://github.com/openspug/spug
A web update
parent
bc843ef8ca
commit
9c829a63e6
|
@ -24,7 +24,7 @@ class AddSelect extends React.Component {
|
||||||
store.record = {
|
store.record = {
|
||||||
is_audit: false,
|
is_audit: false,
|
||||||
host_ids: [undefined],
|
host_ids: [undefined],
|
||||||
actions: [{}]
|
actions: [{target: 'server'}]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@ class Ext2Setup3 extends React.Component {
|
||||||
handleSubmit = () => {
|
handleSubmit = () => {
|
||||||
this.setState({loading: true});
|
this.setState({loading: true});
|
||||||
store.record['extend'] = '2';
|
store.record['extend'] = '2';
|
||||||
|
store.record['actions'] = store.record['actions'].filter(x => x.title && x.data);
|
||||||
http.post('/api/app/', store.record)
|
http.post('/api/app/', store.record)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
message.success('保存成功');
|
message.success('保存成功');
|
||||||
|
@ -65,7 +66,7 @@ class Ext2Setup3 extends React.Component {
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
<Form.Item wrapperCol={{span: 14, offset: 6}}>
|
<Form.Item wrapperCol={{span: 14, offset: 6}}>
|
||||||
<Button type="dashed" block onClick={() => actions.push({})}>
|
<Button type="dashed" block onClick={() => actions.push({target: 'server'})}>
|
||||||
<Icon type="plus"/>添加执行动作
|
<Icon type="plus"/>添加执行动作
|
||||||
</Button>
|
</Button>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
Loading…
Reference in New Issue