fix: 修复作业无法执行的问题

This commit is contained in:
Aaron3S
2023-02-28 18:07:20 +08:00
committed by huailei
parent f8cad13091
commit 26fcbb5bc7

View File

@@ -90,10 +90,12 @@ export default {
name: 'run',
can: this.$hasPerm('ops.add_jobexecution') && !this.$store.getters.currentOrgIsRoot,
callback: ({ row }) => {
const params = JSON.parse(row.parameters_define)
if (Object.keys(params).length > 0) {
this.item = row
this.showJobRunDialog = true
if (row?.use_parameter_define && row?.parameters_define) {
const params = JSON.parse(row.parameters_define)
if (Object.keys(params).length > 0) {
this.item = row
this.showJobRunDialog = true
}
} else {
this.runJob(row)
}