Browse Source

Merge pull request #3927 from zhuangchong/1.3.3-release-fix#3789

[1.3.3-release][fix-#3843][api]When update workflow definition,first verify the name of the workflow definition, save the data
pull/3/MERGE
xingchun-chen 4 years ago committed by GitHub
parent
commit
9c71fedc82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue

14
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue

@ -82,7 +82,7 @@
</div>
</template>
<x-button type="text" @click="close()"> {{$t('Cancel')}} </x-button>
<x-button type="primary" shape="circle" @click="ok()">{{$t('Add')}}</x-button>
<x-button type="primary" shape="circle" :disabled="isDetails" @click="ok()">{{$t('Add')}}</x-button>
</div>
</div>
</div>
@ -169,22 +169,14 @@
this.$emit('onUdp')
}
// Edit => direct storage
if (this.store.state.dag.name && this.store.state.dag.name===this.name) {
_verif()
} else if (this.store.state.dag.name && this.store.state.dag.name!==this.name) {
if (this.store.state.dag.name !== this.name) {
this.store.dispatch('dag/verifDAGName', this.name).then(res => {
_verif()
}).catch(e => {
this.$message.error(e.msg || '')
})
} else {
// New First verify that the name exists
this.store.dispatch('dag/verifDAGName', this.name).then(res => {
_verif()
}).catch(e => {
this.$message.error(e.msg || '')
})
_verif()
}
},
/**

Loading…
Cancel
Save