89 lines
1.7 KiB
Vue
89 lines
1.7 KiB
Vue
|
|
<template>
|
|||
|
|
<div class="workflow-view">
|
|||
|
|
<div class="workflow-header">
|
|||
|
|
<div class="header-left">
|
|||
|
|
<h1>智能体编排</h1>
|
|||
|
|
<p class="subtitle">可视化工作流编排平台,拖拽节点构建智能工作流</p>
|
|||
|
|
</div>
|
|||
|
|
<div class="header-right">
|
|||
|
|
<el-button type="primary" @click="saveWorkflow">
|
|||
|
|
<el-icon><Check /></el-icon>
|
|||
|
|
保存
|
|||
|
|
</el-button>
|
|||
|
|
<el-button @click="exportWorkflow">
|
|||
|
|
<el-icon><Download /></el-icon>
|
|||
|
|
导出
|
|||
|
|
</el-button>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="workflow-container">
|
|||
|
|
<WorkflowEditor />
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</template>
|
|||
|
|
|
|||
|
|
<script setup>
|
|||
|
|
import { ref } from 'vue'
|
|||
|
|
import { Check, Download } from '@element-plus/icons-vue'
|
|||
|
|
import { ElMessage } from 'element-plus'
|
|||
|
|
import WorkflowEditor from '@/components/workflow/WorkflowEditor.vue'
|
|||
|
|
|
|||
|
|
const saveWorkflow = () => {
|
|||
|
|
ElMessage.success('工作流保存成功')
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
const exportWorkflow = () => {
|
|||
|
|
ElMessage.info('工作流导出功能开发中')
|
|||
|
|
}
|
|||
|
|
</script>
|
|||
|
|
|
|||
|
|
<style lang="scss" scoped>
|
|||
|
|
.workflow-view {
|
|||
|
|
height: 100%;
|
|||
|
|
display: flex;
|
|||
|
|
flex-direction: column;
|
|||
|
|
background: #f5f7fa;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.workflow-header {
|
|||
|
|
padding: 16px 24px;
|
|||
|
|
background: #fff;
|
|||
|
|
border-bottom: 1px solid #e4e7ed;
|
|||
|
|
display: flex;
|
|||
|
|
justify-content: space-between;
|
|||
|
|
align-items: center;
|
|||
|
|
flex-shrink: 0;
|
|||
|
|
|
|||
|
|
.header-left {
|
|||
|
|
h1 {
|
|||
|
|
font-size: 20px;
|
|||
|
|
margin: 0 0 4px 0;
|
|||
|
|
color: #303133;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.subtitle {
|
|||
|
|
font-size: 13px;
|
|||
|
|
color: #909399;
|
|||
|
|
margin: 0;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.header-right {
|
|||
|
|
display: flex;
|
|||
|
|
gap: 12px;
|
|||
|
|
|
|||
|
|
.el-button {
|
|||
|
|
display: flex;
|
|||
|
|
align-items: center;
|
|||
|
|
gap: 6px;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.workflow-container {
|
|||
|
|
flex: 1;
|
|||
|
|
overflow: hidden;
|
|||
|
|
}
|
|||
|
|
</style>
|