加入周期任务里面的每个周期的具体时间
This commit is contained in:
@@ -618,11 +618,7 @@ new Vue({
|
|||||||
try {
|
try {
|
||||||
// 创建任务数据对象
|
// 创建任务数据对象
|
||||||
const taskData = { ...this.taskForm };
|
const taskData = { ...this.taskForm };
|
||||||
|
|
||||||
if (taskData.content_link) {
|
|
||||||
taskData.content_link = JSON.stringify(taskData.content_link);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 处理重复任务的特殊字段
|
// 处理重复任务的特殊字段
|
||||||
if (taskData.schedule_type === 'recurring') {
|
if (taskData.schedule_type === 'recurring') {
|
||||||
// 确保链接内容是JSON字符串
|
// 确保链接内容是JSON字符串
|
||||||
@@ -646,13 +642,13 @@ new Vue({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (response.data.success) {
|
if (response.data.success) {
|
||||||
this.$message.success(taskData.task_id ? '更新任务成功' : '创建任务成功');
|
this.$message.success(this.taskForm.task_id ? '更新任务成功' : '创建任务成功');
|
||||||
this.taskDialogVisible = false;
|
this.taskDialogVisible = false;
|
||||||
this.loadTasks();
|
this.loadTasks();
|
||||||
this.loadStatistics();
|
this.loadStatistics();
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.$message.error(taskData.task_id ? '更新任务失败' : '创建任务失败');
|
this.$message.error(this.taskForm.task_id ? '更新任务失败' : '创建任务失败');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user