Browse Source

[Fix][Create Warning Instance Edit] Fix the problem of incomplete display of the edit form. (#7096)

3.0.0/version-upgrade
songjianet 3 years ago committed by GitHub
parent
commit
b3efcdfeba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarningInstance.vue

9
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>

Loading…
Cancel
Save