新增工作流复制功能

This commit is contained in:
xlsea 2024-01-15 15:52:00 +08:00
parent ba2bd3f6a5
commit c215fa33c7
7 changed files with 58 additions and 38 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,16 +1,16 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Easy Retry</title>
<script type="module" crossorigin src="./assets/dNTD4Vxf.js"></script>
<link rel="stylesheet" crossorigin href="./assets/ZUK1tnHV.css">
</head>
<body>
<div id="app"></div>
</body>
</html>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Easy Retry</title>
<script type="module" crossorigin src="./assets/eCMYxQqR.js"></script>
<link rel="stylesheet" crossorigin href="./assets/tWxQPn1H.css">
</head>
<body>
<div id="app"></div>
</body>
</html>

View File

@ -222,6 +222,13 @@ export const asyncRouterMap = [
component: () => import('@/views/job/WorkflowEdit'),
meta: { title: '工作流编辑', icon: 'profile', permission: ['jobBatch'] }
},
{
path: '/job/workflow/copy',
name: 'WorkflowCopy',
hidden: true,
component: () => import('@/views/job/WorkflowCopy'),
meta: { title: '工作流复制', icon: 'profile', permission: ['jobBatch'] }
},
{
path: '/job/workflow/detail',
name: 'WorkflowDetail',

View File

@ -0,0 +1,12 @@
<template>
<work-flow value="wA4wN1nZ" />
</template>
<script>
import WorkFlow from './form/WorkFlow.vue'
export default {
name: 'WorkFlowEdit',
components: { WorkFlow }
}
</script>

View File

@ -313,6 +313,7 @@ export default {
})
},
handleCopy (record) {
this.$router.push({ path: '/job/workflow/copy', query: { id: record.id } })
},
handleDel (record) {
delWorkflow(record.id).then((res) => {