mirror of
https://gitcode.com/flipped-aurora/gin-vue-admin.git
synced 2026-05-20 22:27:59 +00:00
增加工作流使用方法 接口
增加工作流通用完成方法 增加查询待办 查询我发起的工作流功能 增加测试示例
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user