You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by ki...@apache.org on 2021/12/01 10:06:32 UTC

[dolphinscheduler] branch 2.0.1-prepare updated: [Fix][Create Warning Instance Edit] Fix the problem of incomplete display of the edit form. (#7096) (#7097)

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

kirs pushed a commit to branch 2.0.1-prepare
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/2.0.1-prepare by this push:
     new e3d8547  [Fix][Create Warning Instance Edit] Fix the problem of incomplete display of the edit form. (#7096) (#7097)
e3d8547 is described below

commit e3d85476f2d7db75e2c5ecb09b26c4e0709f13a3
Author: songjianet <17...@qq.com>
AuthorDate: Wed Dec 1 18:06:26 2021 +0800

    [Fix][Create Warning Instance Edit] Fix the problem of incomplete display of the edit form. (#7096) (#7097)
---
 .../pages/warningInstance/_source/createWarningInstance.vue      | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarningInstance.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarningInstance.vue
index 6260d56..4abdf53 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarningInstance.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarningInstance.vue
@@ -173,21 +173,18 @@
     },
     watch: {},
     created () {
-      let pluginInstanceParams = []
       if (this.item) {
         this.instanceName = this.item.instanceName
         this.pluginDefineId = this.item.pluginDefineId
-        JSON.parse(this.item.pluginInstanceParams).forEach(item => {
+        this.rule = JSON.parse(this.item.pluginInstanceParams).map(item => {
           if (item.title.indexOf('$t') !== -1) {
             item.title = this.$t(item.field)
           }
-          pluginInstanceParams.push(item)
+          item.props = item.props || {}
+          return item
         })
-        this.rule = pluginInstanceParams
       }
     },
-    mounted () {
-    },
     components: { mPopover, mListBoxF }
   }
 </script>