|
@@ -217,18 +217,18 @@ export default {
|
|
|
let id = this.instanceId?this.instanceId:this.$route.query.instanceId
|
|
|
addGenflowshow({instanceId:id})
|
|
|
.then(res => {
|
|
|
- if(res.data.resultCode === 0){
|
|
|
- let guiStyle = res.data.data.guiStyle?JSON.parse(res.data.data.guiStyle):{}
|
|
|
- let approvalHistory = res.data.data.guiValue?res.data.data.guiValue:[]
|
|
|
+ if(res.resultCode === 0){
|
|
|
+ let guiStyle = res.data.guiStyle?JSON.parse(res.data.guiStyle):{}
|
|
|
+ let approvalHistory = res.data.guiValue?res.data.guiValue:[]
|
|
|
this.myDiagram = Object.assign(this.myDiagram,guiStyle)
|
|
|
this.approvalHistory = approvalHistory
|
|
|
- if(res.data.data.showNodes.indexOf(res.data.data.currentNode) >= 0){
|
|
|
- res.data.data.showNodes.splice(res.data.data.showNodes.findIndex(item => item === res.data.data.currentNode), 1)
|
|
|
+ if(res.data.showNodes.indexOf(res.data.currentNode) >= 0){
|
|
|
+ res.data.showNodes.splice(res.data.showNodes.findIndex(item => item === res.data.data.currentNode), 1)
|
|
|
}
|
|
|
- res.data.data.showNodes.push(res.data.data.currentNode)
|
|
|
- this.showNodes = res.data.data.showNodes
|
|
|
- this.processStatus = res.data.data.processStatus
|
|
|
- switch(res.data.data.processStatus){
|
|
|
+ res.data.showNodes.push(res.data.currentNode)
|
|
|
+ this.showNodes = res.data.showNodes
|
|
|
+ this.processStatus = res.data.processStatus
|
|
|
+ switch(res.data.processStatus){
|
|
|
case 0:
|
|
|
this.processStyle = {
|
|
|
color:'#C8C8C8'
|
|
@@ -257,9 +257,9 @@ export default {
|
|
|
};
|
|
|
break;
|
|
|
}
|
|
|
- this.processStatusName = res.data.data.processStatusName
|
|
|
+ this.processStatusName = res.data.processStatusName
|
|
|
this.myDisplay = new FlowDisplay('myFlowDesignerDiv');
|
|
|
- this.showFlowPath(this.myDisplay,res.data.data.currentNode)
|
|
|
+ this.showFlowPath(this.myDisplay,res.data.currentNode)
|
|
|
}
|
|
|
});
|
|
|
|