添加流转接口 设计流转表
This commit is contained in:
@@ -106,10 +106,10 @@ export const getWorkflowProcessList = (params) => {
|
||||
// @Produce application/json
|
||||
// @Param data body model.WorkflowProcess true "用id查询WorkflowProcess"
|
||||
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
|
||||
// @Router /workflowProcess/findWorkflowCreateStep [get]
|
||||
export const findWorkflowCreateStep = (params) => {
|
||||
// @Router /workflowProcess/findWorkflowStep [get]
|
||||
export const findWorkflowStep = (params) => {
|
||||
return service({
|
||||
url: "/workflowProcess/findWorkflowCreateStep",
|
||||
url: "/workflowProcess/findWorkflowStep",
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
|
||||
@@ -10,13 +10,14 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
filterDict(value,type){
|
||||
const rowLabel = this[type+"Options"]&&this[type+"Options"].filter(item=>item.value == value)
|
||||
return rowLabel&&rowLabel[0]&&rowLabel[0].label
|
||||
filterDict(value, type) {
|
||||
const rowLabel = this[type + "Options"] && this[type + "Options"].filter(item => item.value == value)
|
||||
return rowLabel && rowLabel[0] && rowLabel[0].label
|
||||
},
|
||||
async getDict(type){
|
||||
async getDict(type) {
|
||||
const dicts = await getDict(type)
|
||||
this[type+"Options"] = dicts
|
||||
this[type + "Options"] = dicts
|
||||
return dicts
|
||||
},
|
||||
handleSizeChange(val) {
|
||||
this.pageSize = val
|
||||
@@ -28,7 +29,7 @@ export default {
|
||||
},
|
||||
async getTableData(page = this.page, pageSize = this.pageSize) {
|
||||
const table = await this.listApi({ page, pageSize, ...this.searchInfo })
|
||||
if(table.code == 0){
|
||||
if (table.code == 0) {
|
||||
this.tableData = table.data.list
|
||||
this.total = table.data.total
|
||||
this.page = table.data.page
|
||||
|
||||
@@ -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