工作流起始接口以及动态获取view功能

This commit is contained in:
pixel
2020-11-10 17:39:29 +08:00
parent e56a68da59
commit af0d7cc397
27 changed files with 874 additions and 368 deletions
@@ -328,7 +328,15 @@ export default {
if(res.code == 0){
res.data.reworkflowProcess.nodes.map(item=>{
if(item.assignValue){
item.assignValue = item.assignValue.split(",")
const watiUseArr = item.assignValue.split(",")
if(item.assignType == 'user'){
item.assignValue = []
watiUseArr.map(i => {
item.assignValue.push(Number(i))
})
}else{
item.assignValue = watiUseArr
}
}
})
this.demoData.nodes = res.data.reworkflowProcess.nodes
@@ -56,6 +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="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">
@@ -159,6 +160,14 @@ export default {
}
});
},
async useWorkflowProcess(row){
this.$router.push({
name: "workflowUse",
query: {
id: row.id
}
});
},
async viewWorkflowProcess(row) {
this.$router.push({
name: "workflowCreate",