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