删除不必要的代码

This commit is contained in:
RuoYi
2020-10-10 17:54:30 +08:00
parent e472f62523
commit b0965653bf
20 changed files with 116 additions and 176 deletions

View File

@ -402,7 +402,7 @@ export default {
return runJob(row.jobId, row.jobGroup);
}).then(() => {
this.msgSuccess("执行成功");
}).catch(function() {});
})
},
/** 任务详细信息 */
handleView(row) {
@ -437,19 +437,15 @@ export default {
if (valid) {
if (this.form.jobId != undefined) {
updateJob(this.form).then(response => {
if (response.code === 200) {
this.msgSuccess("修改成功");
this.open = false;
this.getList();
}
this.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addJob(this.form).then(response => {
if (response.code === 200) {
this.msgSuccess("新增成功");
this.open = false;
this.getList();
}
this.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
@ -467,7 +463,7 @@ export default {
}).then(() => {
this.getList();
this.msgSuccess("删除成功");
}).catch(function() {});
})
},
/** 导出按钮操作 */
handleExport() {
@ -480,7 +476,7 @@ export default {
return exportJob(queryParams);
}).then(response => {
this.download(response.msg);
}).catch(function() {});
})
}
}
};

View File

@ -263,7 +263,7 @@ export default {
}).then(() => {
this.getList();
this.msgSuccess("删除成功");
}).catch(function() {});
})
},
/** 清空按钮操作 */
handleClean() {
@ -276,7 +276,7 @@ export default {
}).then(() => {
this.getList();
this.msgSuccess("清空成功");
}).catch(function() {});
})
},
/** 导出按钮操作 */
handleExport() {
@ -289,7 +289,7 @@ export default {
return exportJobLog(queryParams);
}).then(response => {
this.download(response.msg);
}).catch(function() {});
})
}
}
};

View File

@ -196,7 +196,7 @@ export default {
}).then(() => {
this.getList();
this.msgSuccess("删除成功");
}).catch(function() {});
})
},
/** 清空按钮操作 */
handleClean() {
@ -209,7 +209,7 @@ export default {
}).then(() => {
this.getList();
this.msgSuccess("清空成功");
}).catch(function() {});
})
},
/** 导出按钮操作 */
handleExport() {
@ -222,7 +222,7 @@ export default {
return exportLogininfor(queryParams);
}).then(response => {
this.download(response.msg);
}).catch(function() {});
})
}
}
};

View File

@ -120,7 +120,7 @@ export default {
}).then(() => {
this.getList();
this.msgSuccess("强退成功");
}).catch(function() {});
})
}
}
};

View File

@ -284,7 +284,7 @@ export default {
}).then(() => {
this.getList();
this.msgSuccess("删除成功");
}).catch(function() {});
})
},
/** 清空按钮操作 */
handleClean() {
@ -297,7 +297,7 @@ export default {
}).then(() => {
this.getList();
this.msgSuccess("清空成功");
}).catch(function() {});
})
},
/** 导出按钮操作 */
handleExport() {
@ -310,7 +310,7 @@ export default {
return exportOperlog(queryParams);
}).then(response => {
this.download(response.msg);
}).catch(function() {});
})
}
}
};