|
@@ -438,13 +438,14 @@ export default {
|
|
|
.catch(_ => {})
|
|
|
},
|
|
|
verifyProcess(structureValue) {
|
|
|
- console.log(structureValue)
|
|
|
+ // console.log(structureValue)
|
|
|
for (var r of structureValue.nodes) {
|
|
|
if (r.sort === undefined || r.sort === null || r.sort === '') {
|
|
|
return '流程节点顺序不能为空'
|
|
|
- } else if (r.label === undefined || r.label === null || r.label === '') {
|
|
|
- return '流程节点标题不能为空'
|
|
|
}
|
|
|
+ // else if (r.label === undefined || r.label === null || r.label === '') {
|
|
|
+ // return '流程节点标题不能为空'
|
|
|
+ // }
|
|
|
if (r.clazz === 'userTask' || r.clazz === 'receiveTask') {
|
|
|
if (r.assignType === undefined || r.assignType === null || r.assignType === '') {
|
|
|
return '审批节点或处理节点的处理人类型不能为空'
|
|
@@ -453,11 +454,13 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ // else if (e.label === undefined || e.label === null || e.label === '') {
|
|
|
+ // return '流转标题不能为空'
|
|
|
+ // }
|
|
|
+ console.log(structureValue)
|
|
|
for (var e of structureValue.edges) {
|
|
|
if (e.sort === undefined || e.sort === null || e.sort === '') {
|
|
|
return '流转顺序不能为空'
|
|
|
- } else if (e.label === undefined || e.label === null || e.label === '') {
|
|
|
- return '流转标题不能为空'
|
|
|
} else if (e.flowProperties === undefined || e.flowProperties === null || e.flowProperties === '') {
|
|
|
return '流转属性不能为空'
|
|
|
}
|
|
@@ -470,9 +473,12 @@ export default {
|
|
|
var structureValue = this.$refs.wfd.graph.save()
|
|
|
for (var n of structureValue.nodes) {
|
|
|
n.sort = '1'
|
|
|
+ n.activeOrder = false
|
|
|
+ n.isCounterSign = false
|
|
|
}
|
|
|
for (var j of structureValue.edges) {
|
|
|
j.sort = '1'
|
|
|
+ j.flowProperties = '1'
|
|
|
}
|
|
|
var r = this.verifyProcess(structureValue)
|
|
|
if (r !== '') {
|
|
@@ -497,6 +503,8 @@ export default {
|
|
|
var structureValue = this.$refs.wfd.graph.save()
|
|
|
for (var n of structureValue.nodes) {
|
|
|
n.sort = '1'
|
|
|
+ n.activeOrder = false
|
|
|
+ n.isCounterSign = false
|
|
|
}
|
|
|
for (var j of structureValue.edges) {
|
|
|
j.sort = '1'
|