未验证 提交 9c71fedc 编写于 作者: X xingchun-chen 提交者: GitHub

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
......@@ -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()
}
},
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册