普通工作流流动完成

This commit is contained in:
pixel
2020-11-23 18:13:46 +08:00
parent a487266f5b
commit 1591944756
10 changed files with 137 additions and 29 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div class="workflow-use">
<WorkflowInfo v-if="done" :wf="this.node" :business="business"/>
<WorkflowInfo v-if="done" :wf="this.node" :business="business" :workflowMoveID="$route.query.workflowMoveID" />
</div>
</template>
<script>
@@ -16,7 +16,7 @@ export default {
},
async created(){
const workflowId = this.$route.query.workflowId
const wfmId = this.$route.query.wfmId
const workflowMoveID = this.$route.query.workflowMoveID
if(workflowId){
const res = await findWorkflowStep({id:workflowId})
if(res.code == 0){
@@ -24,8 +24,8 @@ export default {
this.node = res.data.workflow.nodes[0]
this.done = true
}
}else if(wfmId){
const res = await getWorkflowMoveByID({id:wfmId})
}else if(workflowMoveID){
const res = await getWorkflowMoveByID({id:workflowMoveID})
if(res.code == 0){
this.business = res.data.business
this.node = res.data.move.workflowNode