feat: 2.6.0 工作流对接新增、任务列表接口

This commit is contained in:
xlsea 2023-12-16 18:21:49 +08:00 committed by byteblogs168
parent b3df82b0d0
commit 594013f65b
4 changed files with 109 additions and 103 deletions

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-vFLC-vfC.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-C4lfd_Yu.css">
<script type="module" crossorigin src="./assets/index-EsAAShxt.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-YIrpEFhz.css">
</head>
<body>

View File

@ -35,19 +35,25 @@ export default {
methods: {
save () {
window.removeEventListener('message', this.handleMessage)
this.$message.info('工作流提交成功')
this.$message.info('工作流新增成功')
this.$router.push({ path: '/job/workflow/list' })
},
cancel () {
window.removeEventListener('message', this.handleMessage)
this.$router.push({ path: '/job/workflow/list' })
},
update () {
this.$message.info('工作流修改成功')
this.$router.push({ path: '/job/workflow/list' })
},
handleMessage (e) {
if (typeof e.data === 'object') {
if (e.data.code === 'SV5ucvLBhvFkOftb') {
this.save()
} else if (e.data.code === 'kb4DO9h6WIiqFhbp') {
this.cancel()
} else if (e.data.code === '8Rr3XPtVVAHfduQg') {
this.update()
}
}
}