增加工作流使用方法 接口

增加工作流通用完成方法
增加查询待办
查询我发起的工作流功能
增加测试示例
This commit is contained in:
pixel
2020-11-17 16:41:43 +08:00
parent 4863b2c5be
commit 2fad9035d3
16 changed files with 402 additions and 27 deletions

View File

@@ -1,6 +1,7 @@
<template>
<div class="workflow-use">
<WorkflowInfo v-if="done" :wf="this.node"/>
</div>
</template>
<script>
@@ -9,7 +10,7 @@ export default {
name:"WorklowUse",
data(){
return{
done:false
}
},
async created(){
@@ -20,9 +21,13 @@ export default {
const res = await findWorkflowStep({id:workflowId})
if(res.code == 0){
this.workflow = res.data.workflow
this.node = res.data.workflow.node[0]
this.node = res.data.workflow.nodes[0]
this.done = true
}
}
},
beforeCreate(){
this.$options.components.WorkflowInfo = ()=>import("@/"+this.node.view)
}
}
</script>