完善支持多行指令

This commit is contained in:
dushixiang
2021-01-26 23:19:16 +08:00
parent 807d24ccd8
commit 4bacdf3dbe
9 changed files with 84 additions and 58 deletions

View File

@ -73,7 +73,7 @@ class DynamicCommand extends Component {
assetsVisible: false,
assets: [],
checkedAssets: [],
command: '',
commandId: '',
model: null,
selectedRowKeys: [],
delBtnLoading: false,
@ -223,7 +223,7 @@ class DynamicCommand extends Component {
}
});
window.location.href = '#/batch-command?command=' + this.state.command + '&assets=' + JSON.stringify(cAssets);
window.location.href = '#/batch-command?commandId=' + this.state.commandId + '&assets=' + JSON.stringify(cAssets);
};
handleOk = async (formData) => {
@ -463,7 +463,7 @@ class DynamicCommand extends Component {
this.setState({
assetsVisible: true,
command: record.content
commandId: record['id']
});
let result = await request.get('/assets?protocol=ssh');