工作流录入 根据id查询方法增加

This commit is contained in:
pixel
2020-10-27 18:59:51 +08:00
parent 4e514dc83e
commit bf21fec50e
9 changed files with 172 additions and 298 deletions

View File

@@ -33,9 +33,6 @@
tooltip-effect="dark"
>
<el-table-column type="selection" width="55"></el-table-column>
<el-table-column label="日期" width="180">
<template slot-scope="scope">{{scope.row.CreatedAt|formatDate}}</template>
</el-table-column>
<el-table-column label="流程名称" prop="name" width="120"></el-table-column>
@@ -136,7 +133,7 @@ export default {
const ids = []
this.multipleSelection &&
this.multipleSelection.map(item => {
ids.push(item.ID)
ids.push(item.id)
})
const res = await deleteWorkflowProcessByIds({ ids })
if (res.code == 0) {
@@ -149,8 +146,8 @@ export default {
}
},
async updateWorkflowProcess(row) {
this.$router.push({name:"workflowCreate",params:{
ID:row.ID,
this.$router.push({name:"workflowCreate",query:{
id:row.id,
type:'edit'
}})
},
@@ -168,7 +165,7 @@ export default {
},
async deleteWorkflowProcess(row) {
this.visible = false;
const res = await deleteWorkflowProcess({ ID: row.ID });
const res = await deleteWorkflowProcess({ id: row.id });
if (res.code == 0) {
this.$message({
type: "success",