feat: 2.6.0 新增工作流批次任务详情界面

This commit is contained in:
xlsea 2023-12-25 14:37:01 +08:00 committed by byteblogs168
parent 0a1cc01413
commit 4de9299d4a
6 changed files with 56 additions and 12 deletions

View File

@ -5,8 +5,8 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Easy Retry</title> <title>Easy Retry</title>
<script type="module" crossorigin src="./assets/index-al5i8Tol.js"></script> <script type="module" crossorigin src="./assets/index-aW6B2Y0u.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-0c08PtDs.css"> <link rel="stylesheet" crossorigin href="./assets/index-1Lyo693A.css">
</head> </head>
<body> <body>

View File

@ -247,6 +247,13 @@ export const asyncRouterMap = [
name: 'WorkflowBatchList', name: 'WorkflowBatchList',
component: () => import('@/views/job/WorkflowBatchList'), component: () => import('@/views/job/WorkflowBatchList'),
meta: { title: '工作流任务批次', icon: 'profile', permission: ['jobBatch'] } meta: { title: '工作流任务批次', icon: 'profile', permission: ['jobBatch'] }
},
{
path: '/job/workflow/batch/detail',
name: 'WorkflowBatchDetail',
hidden: true,
component: () => import('@/views/job/WorkflowBatchDetail'),
meta: { title: '工作流任务批次详情', icon: 'profile', permission: ['jobBatch'] }
} }
] ]
}, },

View File

@ -0,0 +1,41 @@
<template>
<iframe
ref="iframe"
:src="`/lib?token=${token}&x1c2Hdd6=xkjIc2ZHZ0&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

@ -120,7 +120,7 @@
import ATextarea from 'ant-design-vue/es/input/TextArea' import ATextarea from 'ant-design-vue/es/input/TextArea'
import AInput from 'ant-design-vue/es/input/Input' import AInput from 'ant-design-vue/es/input/Input'
import { Drawer, STable } from '@/components' import { Drawer, STable } from '@/components'
import { workflowBatchListPage, jobNameList, workflowBatchDetail } from '@/api/jobApi' import { workflowBatchListPage, jobNameList } from '@/api/jobApi'
import { getAllGroupNameList } from '@/api/manage' import { getAllGroupNameList } from '@/api/manage'
import JobBatchInfo from '@/views/job/JobBatchInfo' import JobBatchInfo from '@/views/job/JobBatchInfo'
const enums = require('@/utils/jobEnum') const enums = require('@/utils/jobEnum')
@ -255,11 +255,7 @@ export default {
}, },
handleInfo (record) { handleInfo (record) {
record = record || this.currentShowRecord record = record || this.currentShowRecord
// this.$router.push({ path: '/job/batch/info', query: { id: record.id, groupName: record.groupName } }) this.$router.push({ path: '/job/workflow/batch/detail', query: { id: record.id } })
// TODO
workflowBatchDetail(record.id).then(res => {
console.log(res)
})
}, },
handleOk (record) {}, handleOk (record) {},
handleStop (record) { handleStop (record) {