bugfix:修复定时任务页面bug

This commit is contained in:
Yuan
2025-11-04 10:59:08 +08:00
parent 5339cd34b9
commit 739e6f5368
3 changed files with 27 additions and 16 deletions

View File

@@ -273,11 +273,11 @@
if (obj.event === 'edit') {
editQuartz(data);
} else if (obj.event === 'start') {
changeStatus(data.id, '1');
changeStatus(data.configId, '1');
} else if (obj.event === 'pause') {
changeStatus(data.id, '0');
changeStatus(data.configId, '0');
} else if (obj.event === 'del') {
deleteQuartz(data.id);
deleteQuartz(data.configId);
}
});
@@ -319,7 +319,7 @@
isEditMode = true;
form.val('quartzForm', {
configId: data.id,
configId: data.configId,
quartzName: data.quartzName,
jobType: data.quartzType,
quartz_class: data.quartzClass,
@@ -397,8 +397,9 @@
quartzName: quartzName,
jobType: jobType,
quartz_class: quartzClass,
time: cronExpression,
remark: remark
remark: remark,
dataStr: cronExpression, // 直接传递完整的cron表达式
time: '0' // 传递time参数供后端使用
};
if (isEditMode) {