feat: 2.6.0 优化工作流节点展示
This commit is contained in:
parent
524899d7d6
commit
93f8227b7c
1
frontend/public/lib/assets/I313ofhX.css
Normal file
1
frontend/public/lib/assets/I313ofhX.css
Normal file
File diff suppressed because one or more lines are too long
11
frontend/public/lib/assets/atvYSz-y.js
Normal file
11
frontend/public/lib/assets/atvYSz-y.js
Normal file
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
@ -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/qhBPYLs6.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="./assets/bhMtdzA3.css">
|
||||
<script type="module" crossorigin src="./assets/atvYSz-y.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="./assets/I313ofhX.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
@ -1,41 +1,21 @@
|
||||
<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)`"
|
||||
/>
|
||||
<work-flow value="xkjIc2ZHZ0" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import storage from 'store'
|
||||
import WorkFlow from './form/WorkFlow.vue'
|
||||
|
||||
export default {
|
||||
name: 'WorkFlowDetail',
|
||||
components: {},
|
||||
components: { WorkFlow },
|
||||
data () {
|
||||
return {
|
||||
id: '',
|
||||
token: '',
|
||||
namespaceId: ''
|
||||
id: ''
|
||||
}
|
||||
},
|
||||
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>
|
||||
|
@ -1,30 +1,20 @@
|
||||
<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)`"
|
||||
/>
|
||||
<work-flow value="kaxC8Iml" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import storage from 'store'
|
||||
import WorkFlow from './form/WorkFlow.vue'
|
||||
|
||||
export default {
|
||||
name: 'WorkFlowDetail',
|
||||
components: {},
|
||||
components: { WorkFlow },
|
||||
data () {
|
||||
return {
|
||||
id: '',
|
||||
token: '',
|
||||
namespaceId: ''
|
||||
id: ''
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.id = this.$route.query.id
|
||||
this.token = storage.get('Access-Token')
|
||||
this.namespaceId = storage.get('app_namespace')
|
||||
},
|
||||
methods: {}
|
||||
}
|
||||
|
@ -1,72 +1,21 @@
|
||||
<template>
|
||||
<iframe
|
||||
ref="iframe"
|
||||
:src="`/lib?token=${token}&x1c2Hdd6=D7Rzd7Oe&namespaceId=${namespaceId}&id=${id}`"
|
||||
marginwidth="0"
|
||||
frameborder="no"
|
||||
:style="`width: 100%;height:calc(99vh - 60px)`"
|
||||
/>
|
||||
<work-flow value="D7Rzd7Oe" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import storage from 'store'
|
||||
import WorkFlow from './form/WorkFlow.vue'
|
||||
|
||||
export default {
|
||||
name: 'WorkFlowEdit',
|
||||
components: {},
|
||||
components: { WorkFlow },
|
||||
data () {
|
||||
return {
|
||||
id: '',
|
||||
token: '',
|
||||
namespaceId: ''
|
||||
id: ''
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.id = this.$route.query.id
|
||||
this.token = storage.get('Access-Token')
|
||||
this.namespaceId = storage.get('app_namespace')
|
||||
},
|
||||
created () {
|
||||
window.addEventListener('message', this.handleMessage, false)
|
||||
},
|
||||
destroyed () {
|
||||
window.removeEventListener('message', this.handleMessage)
|
||||
},
|
||||
methods: {
|
||||
save () {
|
||||
window.removeEventListener('message', this.handleMessage)
|
||||
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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
methods: {}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.ant-layout-content {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.ant-layout-footer {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
|
72
frontend/src/views/job/form/WorkFlow.vue
Normal file
72
frontend/src/views/job/form/WorkFlow.vue
Normal file
@ -0,0 +1,72 @@
|
||||
<template>
|
||||
<iframe
|
||||
ref="iframe"
|
||||
:src="`/lib?id=${id}&x1c2Hdd6=${value}`"
|
||||
marginwidth="0"
|
||||
frameborder="no"
|
||||
:style="`width: 100%;height:calc(99vh - 60px)`"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'WorkFlow',
|
||||
components: {},
|
||||
props: {
|
||||
value: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
id: ''
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.id = this.$route.query.id
|
||||
},
|
||||
created () {
|
||||
window.addEventListener('message', this.handleMessage, false)
|
||||
},
|
||||
destroyed () {
|
||||
window.removeEventListener('message', this.handleMessage)
|
||||
},
|
||||
methods: {
|
||||
save () {
|
||||
window.removeEventListener('message', this.handleMessage)
|
||||
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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.ant-layout-content {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.ant-layout-footer {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue
Block a user