feat: 完善企业场景多线路由与执行稳定性

补齐平台模板与场景 DSL、预算控制、执行看板和企业场景脚本,增强 Windows 启动/迁移与前端代理和聊天会话记忆,修复执行创建阶段 500 与异步链路排障体验。

Made-with: Cursor
This commit is contained in:
renjianbo
2026-04-09 21:58:53 +08:00
parent bd3f8be781
commit 0608161c82
58 changed files with 6104 additions and 172 deletions

View File

@@ -19,6 +19,10 @@
:ellipsis="false"
@select="handleMenuSelect"
>
<el-menu-item index="console" @click="router.push('/console')">
<el-icon><Grid /></el-icon>
<span>主控台</span>
</el-menu-item>
<el-menu-item index="workflows">
<el-icon><Document /></el-icon>
<span>工作流管理</span>
@@ -76,7 +80,7 @@
import { computed } from 'vue'
import { useRouter, useRoute } from 'vue-router'
import { useUserStore } from '@/stores/user'
import { Document, User, List, Connection, Setting, Star, Lock, Monitor, Bell } from '@element-plus/icons-vue'
import { Document, User, List, Connection, Setting, Star, Lock, Monitor, Bell, Grid } from '@element-plus/icons-vue'
const router = useRouter()
const route = useRoute()
@@ -84,6 +88,8 @@ const userStore = useUserStore()
// 当前激活的菜单
const activeMenu = computed(() => {
if (route.path === '/console') return 'console'
if (route.path === '/execution-board') return 'console'
if (route.path === '/' || route.path === '/workflow' || route.path.startsWith('/workflow/')) return 'workflows'
if (route.path === '/agents' || route.path.startsWith('/agents/')) return 'agents'
if (route.path === '/executions' || route.path.startsWith('/executions/')) return 'executions'
@@ -99,7 +105,9 @@ const activeMenu = computed(() => {
// 菜单选择
const handleMenuSelect = (key: string) => {
if (key === 'workflows') {
if (key === 'console') {
router.push('/console')
} else if (key === 'workflows') {
router.push('/')
} else if (key === 'agents') {
router.push('/agents')