From e3d85476f2d7db75e2c5ecb09b26c4e0709f13a3 Mon Sep 17 00:00:00 2001 From: songjianet <1778651752@qq.com> Date: Wed, 1 Dec 2021 18:06:26 +0800 Subject: [PATCH] [Fix][Create Warning Instance Edit] Fix the problem of incomplete display of the edit form. (#7096) (#7097) --- .../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 6260d56b67..4abdf53d15 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 } }