feat: 2.6.0 工作流对接新增、任务列表接口
This commit is contained in:
parent
b3df82b0d0
commit
594013f65b
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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-vFLC-vfC.js"></script>
|
<script type="module" crossorigin src="./assets/index-EsAAShxt.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="./assets/index-C4lfd_Yu.css">
|
<link rel="stylesheet" crossorigin href="./assets/index-YIrpEFhz.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -35,19 +35,25 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
save () {
|
save () {
|
||||||
window.removeEventListener('message', this.handleMessage)
|
window.removeEventListener('message', this.handleMessage)
|
||||||
this.$message.info('工作流提交成功')
|
this.$message.info('工作流新增成功')
|
||||||
this.$router.push({ path: '/job/workflow/list' })
|
this.$router.push({ path: '/job/workflow/list' })
|
||||||
},
|
},
|
||||||
cancel () {
|
cancel () {
|
||||||
window.removeEventListener('message', this.handleMessage)
|
window.removeEventListener('message', this.handleMessage)
|
||||||
this.$router.push({ path: '/job/workflow/list' })
|
this.$router.push({ path: '/job/workflow/list' })
|
||||||
},
|
},
|
||||||
|
update () {
|
||||||
|
this.$message.info('工作流修改成功')
|
||||||
|
this.$router.push({ path: '/job/workflow/list' })
|
||||||
|
},
|
||||||
handleMessage (e) {
|
handleMessage (e) {
|
||||||
if (typeof e.data === 'object') {
|
if (typeof e.data === 'object') {
|
||||||
if (e.data.code === 'SV5ucvLBhvFkOftb') {
|
if (e.data.code === 'SV5ucvLBhvFkOftb') {
|
||||||
this.save()
|
this.save()
|
||||||
} else if (e.data.code === 'kb4DO9h6WIiqFhbp') {
|
} else if (e.data.code === 'kb4DO9h6WIiqFhbp') {
|
||||||
this.cancel()
|
this.cancel()
|
||||||
|
} else if (e.data.code === '8Rr3XPtVVAHfduQg') {
|
||||||
|
this.update()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user