feat: 高级编排

This commit is contained in:
wangdan-fit2cloud 2024-06-20 11:09:53 +08:00
parent 90fd05f08e
commit 870701bf65
3 changed files with 20 additions and 4 deletions

View File

@ -18,7 +18,11 @@
</div>
<!-- 下拉框 -->
<el-collapse-transition>
<div v-show="showPopover" class="workflow-dropdown-menu border border-r-4">
<div
v-show="showPopover"
class="workflow-dropdown-menu border border-r-4"
v-click-outside="clickoutsideDebug"
>
<h5 class="title">基础组件</h5>
<template v-for="(item, index) in menuNodes" :key="index">
<div class="workflow-dropdown-item cursor flex p-8-12" @mousedown="onmousedown(item)">
@ -106,6 +110,10 @@ function clickoutside() {
showPopover.value = false
}
function clickoutsideDebug() {
showDebug.value = false
}
function onmousedown(item: any) {
workflowRef.value?.onmousedown(item)
}

View File

@ -62,6 +62,10 @@
class="mr-8"
/>
</template>
<div class="status-tag">
<el-tag type="warning" v-if="isWorkFlow(item.type)">高级编排</el-tag>
<el-tag v-else>简单配置</el-tag>
</div>
<template #footer>
<div class="footer-content">
@ -129,8 +133,12 @@ const paginationConfig = reactive({
const searchValue = ref('')
function isWorkFlow(type: string) {
return type === 'WORK_FLOW'
}
function settingApplication(row: any) {
if (row.type === 'WORK_FLOW') {
if (isWorkFlow(row.type)) {
router.push({ path: `/application/${row.id}/workflow` })
} else {
router.push({ path: `/application/${row.id}/${row.type}/setting` })

View File

@ -51,7 +51,7 @@
/>
</el-form-item>
</el-form>
<!--
<h4 class="title-decoration-1 mb-16">关联应用</h4>
<el-row :gutter="12">
@ -79,7 +79,7 @@
{{ item.name }}
</CardCheckbox>
</el-col>
</el-row>
</el-row> -->
<div class="text-right">
<el-button @click="submit" type="primary"> 保存 </el-button>