修复编辑计划任务的问题
This commit is contained in:
parent
f611f9dadc
commit
4ff4d37442
@ -148,7 +148,15 @@ class Job extends Component {
|
||||
});
|
||||
};
|
||||
|
||||
showModal(title, obj = null) {
|
||||
showModal = async (title, obj = null) => {
|
||||
if (obj['id']) {
|
||||
let result = await request.get(`/jobs/${obj['id']}`);
|
||||
if (result.code !== 1) {
|
||||
message.error(result.message);
|
||||
return;
|
||||
}
|
||||
obj = result.data;
|
||||
}
|
||||
if (obj['func'] === 'shell-job') {
|
||||
obj['shell'] = JSON.parse(obj['metadata'])['shell'];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user