添加流转接口 设计流转表
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
|
||||
<el-table-column label="按钮组">
|
||||
<template slot-scope="scope">
|
||||
<el-button class="table-button" @click="useWorkflowProcess(scope.row)" size="success" >使用</el-button>
|
||||
<el-button class="table-button" @click="useWorkflowProcess(scope.row)" size="success" >启动</el-button>
|
||||
<el-button class="table-button" @click="updateWorkflowProcess(scope.row)" size="small" type="primary">变更</el-button>
|
||||
<el-button class="table-button" @click="viewWorkflowProcess(scope.row)" size="small" type="warning">查看</el-button>
|
||||
<el-popover placement="top" width="160" v-model="scope.row.visible">
|
||||
@@ -164,7 +164,8 @@ export default {
|
||||
this.$router.push({
|
||||
name: "workflowUse",
|
||||
query: {
|
||||
id: row.id
|
||||
workflowId: row.id,
|
||||
activeId:0,
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<div class="workflow-use">
|
||||
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import {findWorkflowStep} from "@/api/workflowProcess.js"
|
||||
export default {
|
||||
name:"WorklowUse",
|
||||
data(){
|
||||
return{
|
||||
|
||||
}
|
||||
},
|
||||
async created(){
|
||||
const workflowId = this.$route.query.workflowId
|
||||
const actionId = this.$route.query.actionId
|
||||
const businessId = this.$route.query.businessId
|
||||
if(workflowId){
|
||||
const res = await findWorkflowStep({id:workflowId})
|
||||
if(res.code == 0){
|
||||
this.workflow = res.data.workflow
|
||||
this.node = res.data.workflow.node[0]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user