feat: 2.6.0 工作流对接编辑、详情接口

This commit is contained in:
xlsea 2023-12-16 17:58:03 +08:00 committed by byteblogs168
parent 756e9204ff
commit b3df82b0d0
8 changed files with 181 additions and 134 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -5,8 +5,8 @@
<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/index-OUOgMQdd.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-F6SqBqfF.css">
<script type="module" crossorigin src="./assets/index-vFLC-vfC.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-C4lfd_Yu.css">
</head>
<body>

View File

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

View File

@ -0,0 +1,41 @@
<template>
<iframe
ref="iframe"
:src="`/lib?token=${token}&x1c2Hdd6=kaxC8Iml&namespaceId=${namespaceId}&id=${id}`"
marginwidth="0"
frameborder="no"
:style="`width: 100%;height:calc(99vh - 60px)`"
/>
</template>
<script>
import storage from 'store'
export default {
name: 'WorkFlowDetail',
components: {},
data () {
return {
id: '',
token: '',
namespaceId: ''
}
},
mounted () {
this.id = this.$route.query.id
this.token = storage.get('Access-Token')
this.namespaceId = storage.get('app_namespace')
},
methods: {}
}
</script>
<style>
.ant-layout-content {
margin: 0;
}
.ant-layout-footer {
display: none;
}
</style>

View File

@ -1,10 +1,9 @@
<template>
<iframe
ref="iframe"
:src="`/lib/index.html?token=${token}&namespaceId=${namespaceId}&id=${id}`"
:src="`/lib?token=${token}&x1c2Hdd6=D7Rzd7Oe&namespaceId=${namespaceId}&id=${id}`"
marginwidth="0"
frameborder="no"
onLoad="this.height=100"
:style="`width: 100%;height:calc(99vh - 60px)`"
/>
</template>

View File

@ -307,7 +307,7 @@ export default {
},
handleInfo (record) {
record = record || this.currentShowRecord
this.$router.push({ path: '/job/info', query: { id: record.id, groupName: record.groupName } })
this.$router.push({ path: '/job/workflow/detail', query: { id: record.id } })
},
handleOk (record) {},
handleClose (record) {