feat: 2.6.0 优化工作流节点展示

This commit is contained in:
xlsea 2023-12-28 12:27:05 +08:00 committed by byteblogs168
parent 524899d7d6
commit 93f8227b7c
9 changed files with 99 additions and 108 deletions

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

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/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>

View File

@ -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>

View File

@ -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: {}
}

View File

@ -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>

View 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>