You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by so...@apache.org on 2022/03/10 03:36:07 UTC

[dolphinscheduler] branch dev updated: [Fix-8746][UI] Rectify the issue with affecting the original node's data when editing the form of the copied node. (#8791)

This is an automated email from the ASF dual-hosted git repository.

songjian pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 41b66b6  [Fix-8746][UI] Rectify the issue with affecting the original node's data when editing the form of the copied node. (#8791)
41b66b6 is described below

commit 41b66b6adbf286671a9d9682d04b769ad9d21003
Author: calvin <ji...@163.com>
AuthorDate: Thu Mar 10 11:36:01 2022 +0800

    [Fix-8746][UI] Rectify the issue with affecting the original node's data when editing the form of the copied node. (#8791)
---
 .../src/js/conf/home/pages/dag/_source/canvas/contextMenu.vue        | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/canvas/contextMenu.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/canvas/contextMenu.vue
index cb5c6a7..7f251c5 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/canvas/contextMenu.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/canvas/contextMenu.vue
@@ -45,6 +45,7 @@
   import { mapState, mapActions, mapMutations } from 'vuex'
   import { findComponentDownward, uuid } from '@/module/util/'
   import MenuItem from './menuItem.vue'
+  import _ from 'lodash'
 
   export default {
     name: 'dag-context-menu',
@@ -131,6 +132,10 @@
               code,
               name: taskName
             }
+            if (targetTask.taskParams) {
+              task.taskParams = _.cloneDeep(targetTask.taskParams)
+            }
+
             this.dagCanvas.addNode(code, this.currentTask.type, {
               x: targetNode.position.x + 100,
               y: targetNode.position.y + 100