From cca78607655c71fef8fbd66b184eec6199d360b2 Mon Sep 17 00:00:00 2001 From: break60 <790061044@qq.com> Date: Tue, 21 Jul 2020 09:29:57 +0800 Subject: [PATCH] Click Cancel, the node data is restored to the original data --- .../pages/dag/_source/formModel/formModel.vue | 21 ++----------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue index 1e2cbd3ba6..d3df6adb77 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue @@ -580,25 +580,8 @@ } this.isContentBox = false // flag Whether to delete a node this.$destroy() - this.$emit('close', { - item: { - type: this.cacheBackfillItem.type, - id: this.cacheBackfillItem.id, - name: this.cacheBackfillItem.name, - params: this.cacheBackfillItem.params, - description: this.cacheBackfillItem.description, - runFlag: this.cacheBackfillItem.runFlag, - conditionResult: this.cacheBackfillItem.conditionResult, - dependence: this.cacheBackfillItem.dependence, - maxRetryTimes: this.cacheBackfillItem.maxRetryTimes, - retryInterval: this.cacheBackfillItem.retryInterval, - timeout: this.cacheBackfillItem.timeout, - taskInstancePriority: this.cacheBackfillItem.taskInstancePriority, - workerGroup: this.cacheBackfillItem.workerGroup, - status: this.cacheBackfillItem.status, - branch: this.cacheBackfillItem.branch - }, + item: this.cacheBackfillItem, flag: flag, fromThis: this }) @@ -672,7 +655,7 @@ } else { this.workerGroup = this.store.state.security.workerGroupsListAll[0].id } - this.cacheBackfillItem = o + this.cacheBackfillItem = JSON.parse(JSON.stringify(o)) this.isContentBox = true }, mounted () {