加入周期任务里面的每个周期的具体时间

This commit is contained in:
liuwei
2025-06-10 17:02:41 +08:00
parent ff75be02d6
commit b4043111a0

View File

@@ -618,11 +618,7 @@ new Vue({
try {
// 创建任务数据对象
const taskData = { ...this.taskForm };
if (taskData.content_link) {
taskData.content_link = JSON.stringify(taskData.content_link);
}
// 处理重复任务的特殊字段
if (taskData.schedule_type === 'recurring') {
// 确保链接内容是JSON字符串
@@ -646,13 +642,13 @@ new Vue({
}
if (response.data.success) {
this.$message.success(taskData.task_id ? '更新任务成功' : '创建任务成功');
this.$message.success(this.taskForm.task_id ? '更新任务成功' : '创建任务成功');
this.taskDialogVisible = false;
this.loadTasks();
this.loadStatistics();
}
} catch (error) {
this.$message.error(taskData.task_id ? '更新任务失败' : '创建任务失败');
this.$message.error(this.taskForm.task_id ? '更新任务失败' : '创建任务失败');
}
}
});