This is an automated email from the ASF dual-hosted git repository. journey pushed a commit to branch dev in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push: new 555880e [Fix-3077][ui] Fix the edit duplicated name verify (#3376) 555880e is described below commit 555880e6e32ab5235f1947fe036f43cef54e50c4 Author: Yichao Yang <1048262...@qq.com> AuthorDate: Tue Aug 25 11:18:36 2020 +0800 [Fix-3077][ui] Fix the edit duplicated name verify (#3376) --- .../src/js/conf/home/pages/dag/_source/udp/udp.vue | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue index b881a80..017a38f 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue @@ -99,6 +99,7 @@ name: 'udp', data () { return { + originalName: '', // dag name name: '', // dag description @@ -169,12 +170,15 @@ this.$emit('onUdp') } - // verify that the name exists - this.store.dispatch('dag/verifDAGName', this.name).then(res => { + if (this.originalName !== this.name) { + this.store.dispatch('dag/verifDAGName', this.name).then(res => { + _verif() + }).catch(e => { + this.$message.error(e.msg || '') + }) + } else { _verif() - }).catch(e => { - this.$message.error(e.msg || '') - }) + } }, /** * Close the popup @@ -196,6 +200,7 @@ this.udpList = dag.globalParams this.udpListCache = dag.globalParams this.name = dag.name + this.originalName = dag.name this.description = dag.description this.syncDefine = dag.syncDefine this.timeout = dag.timeout || 0