diff --git a/src/frontend/src/views/task-manage/common/render-global-var/index.vue b/src/frontend/src/views/task-manage/common/render-global-var/index.vue
index ab322bdbda..34db345c9d 100644
--- a/src/frontend/src/views/task-manage/common/render-global-var/index.vue
+++ b/src/frontend/src/views/task-manage/common/render-global-var/index.vue
@@ -359,10 +359,12 @@
confirmFn: () => {
const currentVar = this.variable[index];
if (currentVar.id > 0) {
- // 删除已存在的变量——设置delete
+ // 删除已存在的变量
+ // —设置delete
currentVar.delete = 1;
} else {
- // 删除新建的变量——直接删除
+ // 删除新建的变量
+ // —直接删除
this.variable.splice(index, 1);
}
this.triggerChange();
diff --git a/src/frontend/src/views/task-manage/common/render-global-var/operation/index.vue b/src/frontend/src/views/task-manage/common/render-global-var/operation/index.vue
index b56be09ec9..daed3fb89d 100644
--- a/src/frontend/src/views/task-manage/common/render-global-var/operation/index.vue
+++ b/src/frontend/src/views/task-manage/common/render-global-var/operation/index.vue
@@ -75,9 +75,9 @@
+ v-bind="$attrs"
+ v-on="$listeners" />
diff --git a/src/frontend/src/views/task-manage/common/render-task-step/index.vue b/src/frontend/src/views/task-manage/common/render-task-step/index.vue
index 99e68f4559..03933dc362 100644
--- a/src/frontend/src/views/task-manage/common/render-task-step/index.vue
+++ b/src/frontend/src/views/task-manage/common/render-task-step/index.vue
@@ -308,9 +308,6 @@
immediate: true,
},
},
- created () {
- this.innerChange = false;
- },
methods: {
/**
* @desc 外部调用——点击指定 index 的步骤
@@ -409,8 +406,12 @@
const currentStep = steps[index];
if (currentStep.id) {
+ // 删除已存在的步骤
+ // —设置delete
currentStep.delete = 1;
} else {
+ // 删除新建的步骤
+ // —直接删除
steps.splice(index, 1);
}
@@ -425,7 +426,6 @@
* @param {Boolean} localValidator 表单验证结果
*/
handleTaskStepSubmit (payload, localValidator) {
- this.innerChange = true;
const operationStep = new TaskStepModel(payload);
const steps = [...this.steps];
diff --git a/src/frontend/src/views/task-manage/template-operation/index.vue b/src/frontend/src/views/task-manage/template-operation/index.vue
index 8ffebfb61a..0f248c8a7d 100644
--- a/src/frontend/src/views/task-manage/template-operation/index.vue
+++ b/src/frontend/src/views/task-manage/template-operation/index.vue
@@ -471,7 +471,7 @@
if (this.isEdit) {
this.editSuccessCallback(taskId, planSync, isPlanEmpty);
} else {
- this.createSuccessCallback(taskId, planSync, isPlanEmpty);
+ this.createSuccessCallback(taskId);
}
});
}))