|
@@ -427,7 +427,6 @@ export default {
|
|
},
|
|
},
|
|
verifyProcess(structureValue) {
|
|
verifyProcess(structureValue) {
|
|
for (var r of structureValue.nodes) {
|
|
for (var r of structureValue.nodes) {
|
|
- console.log(r)
|
|
|
|
if (r.sort === undefined || r.sort === null || r.sort === '') {
|
|
if (r.sort === undefined || r.sort === null || r.sort === '') {
|
|
return '流程节点顺序不能为空'
|
|
return '流程节点顺序不能为空'
|
|
} else if (r.label === undefined || r.label === null || r.label === '') {
|
|
} else if (r.label === undefined || r.label === null || r.label === '') {
|
|
@@ -459,6 +458,9 @@ export default {
|
|
for (var n of structureValue.nodes) {
|
|
for (var n of structureValue.nodes) {
|
|
n.sort = '1'
|
|
n.sort = '1'
|
|
}
|
|
}
|
|
|
|
+ for (var j of structureValue.edges) {
|
|
|
|
+ j.sort = '1'
|
|
|
|
+ }
|
|
var r = this.verifyProcess(structureValue)
|
|
var r = this.verifyProcess(structureValue)
|
|
if (r !== '') {
|
|
if (r !== '') {
|
|
this.$message.error(r)
|
|
this.$message.error(r)
|
|
@@ -483,6 +485,9 @@ export default {
|
|
for (var n of structureValue.nodes) {
|
|
for (var n of structureValue.nodes) {
|
|
n.sort = '1'
|
|
n.sort = '1'
|
|
}
|
|
}
|
|
|
|
+ for (var j of structureValue.edges) {
|
|
|
|
+ j.sort = '1'
|
|
|
|
+ }
|
|
var r = this.verifyProcess(structureValue)
|
|
var r = this.verifyProcess(structureValue)
|
|
if (r !== '') {
|
|
if (r !== '') {
|
|
this.$message.error(r)
|
|
this.$message.error(r)
|