|
@@ -61,7 +61,7 @@
|
|
|
<div class="group_itemOperations">
|
|
|
<el-space wrap>
|
|
|
<el-tooltip effect="dark" content="编辑" placement="top">
|
|
|
- <el-icon :size="16" @click="updateEv(element.processId)"><EditPen /></el-icon>
|
|
|
+ <el-icon :size="16" @click="updateEv(element)"><EditPen /></el-icon>
|
|
|
</el-tooltip>
|
|
|
</el-space>
|
|
|
<el-space wrap style="margin-left: 10px">
|
|
@@ -231,8 +231,9 @@ const copyEv = async (id: any) => {
|
|
|
}
|
|
|
|
|
|
// 修改
|
|
|
-const updateEv = async (id: any) => {
|
|
|
- router.push('/flow_create?id=' + id)
|
|
|
+const updateEv = async (element: any) => {
|
|
|
+ const jumpRouterUrl = element.processType === 'child' ? '/flow_create/child' : '/flow_create/index'
|
|
|
+ router.push(`${jumpRouterUrl}?id=${element.processId}`)
|
|
|
}
|
|
|
|
|
|
// keep-alive缓存树,防止创建完流程过后,回到当前窗口未刷新
|