|
@@ -427,6 +427,7 @@ export default {
|
|
|
},
|
|
|
verifyProcess(structureValue) {
|
|
|
for (var r of structureValue.nodes) {
|
|
|
+ console.log(r)
|
|
|
if (r.sort === undefined || r.sort === null || r.sort === '') {
|
|
|
return '流程节点顺序不能为空'
|
|
|
} else if (r.label === undefined || r.label === null || r.label === '') {
|
|
@@ -455,6 +456,9 @@ export default {
|
|
|
this.$refs[formName].validate((valid) => {
|
|
|
if (valid) {
|
|
|
var structureValue = this.$refs.wfd.graph.save()
|
|
|
+ for (var n of structureValue.nodes) {
|
|
|
+ n.sort = '1'
|
|
|
+ }
|
|
|
var r = this.verifyProcess(structureValue)
|
|
|
if (r !== '') {
|
|
|
this.$message.error(r)
|
|
@@ -476,6 +480,9 @@ export default {
|
|
|
this.$refs[formName].validate((valid) => {
|
|
|
if (valid) {
|
|
|
var structureValue = this.$refs.wfd.graph.save()
|
|
|
+ for (var n of structureValue.nodes) {
|
|
|
+ n.sort = '1'
|
|
|
+ }
|
|
|
var r = this.verifyProcess(structureValue)
|
|
|
if (r !== '') {
|
|
|
this.$message.error(r)
|