feat: 调整路由
This commit is contained in:
parent
b5db02d95c
commit
50adc24979
@ -366,39 +366,39 @@ const routes: RouteRecordRaw[] = [
|
|||||||
meta: { title: '查看详情' }
|
meta: { title: '查看详情' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'ai-orchestration',
|
path: 'airag',
|
||||||
name: 'AIOrchestration',
|
name: 'AIRag',
|
||||||
component: () => import('@/views/teacher/ai-orchestration/index.vue'),
|
component: () => import('@/views/teacher/airag/index.vue'),
|
||||||
meta: { title: '智能体编排' }
|
meta: { title: '智能体编排' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'ai-orchestration/app-management',
|
path: 'airag/aiapp',
|
||||||
name: 'AIAppManagement',
|
name: 'AIApp',
|
||||||
component: () => import('@/views/teacher/ai-orchestration/app-management.vue'),
|
component: () => import('@/views/teacher/airag/aiapp/AiAppList.vue'),
|
||||||
meta: { title: 'AI应用管理' }
|
meta: { title: 'AI应用管理' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'ai-orchestration/knowledge-base',
|
path: 'airag/aiknowledge',
|
||||||
name: 'AIKnowledgeBase',
|
name: 'AIKnowledge',
|
||||||
component: () => import('@/views/teacher/ai-orchestration/knowledge-base.vue'),
|
component: () => import('@/views/teacher/airag/aiknowledge/AiKnowledgeBaseList.vue'),
|
||||||
meta: { title: 'AI知识库' }
|
meta: { title: 'AI知识库' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'ai-orchestration/process-design',
|
path: 'airag/aiflow',
|
||||||
name: 'AIProcessDesign',
|
name: 'AIFlow',
|
||||||
component: () => import('@/views/teacher/ai-orchestration/process-design.vue'),
|
component: () => import('@/views/teacher/airag/aiflow/AiFlowDesign.vue'),
|
||||||
meta: { title: 'AI流程设计' }
|
meta: { title: 'AI流程设计' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'ai-orchestration/model-config',
|
path: 'airag/aimodel',
|
||||||
name: 'AIModelConfig',
|
name: 'AIModel',
|
||||||
component: () => import('@/views/teacher/ai-orchestration/model-config.vue'),
|
component: () => import('@/views/teacher/airag/aimodel/AiModelConfig.vue'),
|
||||||
meta: { title: 'AI模型配置' }
|
meta: { title: 'AI模型配置' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'ai-orchestration/ocr-recognition',
|
path: 'airag/ocr',
|
||||||
name: 'AIOCRRecognition',
|
name: 'AIOCR',
|
||||||
component: () => import('@/views/teacher/ai-orchestration/ocr-recognition.vue'),
|
component: () => import('@/views/teacher/airag/ocr/AiOcrList.vue'),
|
||||||
meta: { title: 'OCR识别' }
|
meta: { title: 'OCR识别' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -118,23 +118,23 @@
|
|||||||
|
|
||||||
<!-- 智能体编排子菜单 -->
|
<!-- 智能体编排子菜单 -->
|
||||||
<div class="submenu-container" :class="{ expanded: orchestrationMenuExpanded }">
|
<div class="submenu-container" :class="{ expanded: orchestrationMenuExpanded }">
|
||||||
<router-link to="/teacher/ai-orchestration/app-management" class="submenu-item"
|
<router-link to="/teacher/airag/aiapp" class="submenu-item"
|
||||||
:class="{ active: activeSubNavItem === 'app-management' }" @click="setActiveSubNavItem('app-management')">
|
:class="{ active: activeSubNavItem === 'app-management' }" @click="setActiveSubNavItem('app-management')">
|
||||||
<span>AI应用管理</span>
|
<span>AI应用管理</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
<router-link to="/teacher/ai-orchestration/knowledge-base" class="submenu-item"
|
<router-link to="/teacher/airag/aiknowledge" class="submenu-item"
|
||||||
:class="{ active: activeSubNavItem === 'knowledge-base' }" @click="setActiveSubNavItem('knowledge-base')">
|
:class="{ active: activeSubNavItem === 'knowledge-base' }" @click="setActiveSubNavItem('knowledge-base')">
|
||||||
<span>AI知识库</span>
|
<span>AI知识库</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
<router-link to="/teacher/ai-orchestration/process-design" class="submenu-item"
|
<router-link to="/teacher/airag/aiflow" class="submenu-item"
|
||||||
:class="{ active: activeSubNavItem === 'process-design' }" @click="setActiveSubNavItem('process-design')">
|
:class="{ active: activeSubNavItem === 'process-design' }" @click="setActiveSubNavItem('process-design')">
|
||||||
<span>AI流程设计</span>
|
<span>AI流程设计</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
<router-link to="/teacher/ai-orchestration/model-config" class="submenu-item"
|
<router-link to="/teacher/airag/aimodel" class="submenu-item"
|
||||||
:class="{ active: activeSubNavItem === 'model-config' }" @click="setActiveSubNavItem('model-config')">
|
:class="{ active: activeSubNavItem === 'model-config' }" @click="setActiveSubNavItem('model-config')">
|
||||||
<span>AI模型配置</span>
|
<span>AI模型配置</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
<router-link to="/teacher/ai-orchestration/ocr-recognition" class="submenu-item"
|
<router-link to="/teacher/airag/ocr" class="submenu-item"
|
||||||
:class="{ active: activeSubNavItem === 'ocr-recognition' }"
|
:class="{ active: activeSubNavItem === 'ocr-recognition' }"
|
||||||
@click="setActiveSubNavItem('ocr-recognition')">
|
@click="setActiveSubNavItem('ocr-recognition')">
|
||||||
<span>OCR识别</span>
|
<span>OCR识别</span>
|
||||||
@ -206,7 +206,7 @@ const isAiHovered = ref(false);
|
|||||||
const isAiActive = computed(() => route.path.includes('/teacher/ai-assistant'));
|
const isAiActive = computed(() => route.path.includes('/teacher/ai-assistant'));
|
||||||
const breadcrumbDisplay = computed(() => {
|
const breadcrumbDisplay = computed(() => {
|
||||||
const currentPath = route.path;
|
const currentPath = route.path;
|
||||||
let arr = ['certificate/new', 'ai-assistant', 'ai-orchestration'];
|
let arr = ['certificate/new', 'ai-assistant', 'airag'];
|
||||||
let found = arr.find(item => currentPath.includes(item));
|
let found = arr.find(item => currentPath.includes(item));
|
||||||
if (found) {
|
if (found) {
|
||||||
return false;
|
return false;
|
||||||
@ -708,60 +708,60 @@ const breadcrumbPathItems = computed(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 智能体编排模块的面包屑逻辑
|
// 智能体编排模块的面包屑逻辑
|
||||||
if (currentPath.includes('ai-orchestration')) {
|
if (currentPath.includes('airag')) {
|
||||||
console.log('智能体编排页面路径:', currentPath);
|
console.log('智能体编排页面路径:', currentPath);
|
||||||
let breadcrumbs: Array<{ title: string, path: string }> = [];
|
let breadcrumbs: Array<{ title: string, path: string }> = [];
|
||||||
|
|
||||||
// 根据具体页面添加子页面标题
|
// 根据具体页面添加子页面标题
|
||||||
if (currentPath.includes('app-management')) {
|
if (currentPath.includes('aiapp')) {
|
||||||
breadcrumbs = [
|
breadcrumbs = [
|
||||||
{
|
{
|
||||||
title: '智能体编排',
|
title: '智能体编排',
|
||||||
path: '/teacher/ai-orchestration'
|
path: '/teacher/airag'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'AI应用管理',
|
title: 'AI应用管理',
|
||||||
path: currentPath
|
path: currentPath
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
} else if (currentPath.includes('knowledge-base')) {
|
} else if (currentPath.includes('aiknowledge')) {
|
||||||
breadcrumbs = [
|
breadcrumbs = [
|
||||||
{
|
{
|
||||||
title: '智能体编排',
|
title: '智能体编排',
|
||||||
path: '/teacher/ai-orchestration'
|
path: '/teacher/airag'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'AI知识库',
|
title: 'AI知识库',
|
||||||
path: currentPath
|
path: currentPath
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
} else if (currentPath.includes('process-design')) {
|
} else if (currentPath.includes('aiflow')) {
|
||||||
breadcrumbs = [
|
breadcrumbs = [
|
||||||
{
|
{
|
||||||
title: '智能体编排',
|
title: '智能体编排',
|
||||||
path: '/teacher/ai-orchestration'
|
path: '/teacher/airag'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'AI流程设计',
|
title: 'AI流程设计',
|
||||||
path: currentPath
|
path: currentPath
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
} else if (currentPath.includes('model-config')) {
|
} else if (currentPath.includes('aimodel')) {
|
||||||
breadcrumbs = [
|
breadcrumbs = [
|
||||||
{
|
{
|
||||||
title: '智能体编排',
|
title: '智能体编排',
|
||||||
path: '/teacher/ai-orchestration'
|
path: '/teacher/airag'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'AI模型配置',
|
title: 'AI模型配置',
|
||||||
path: currentPath
|
path: currentPath
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
} else if (currentPath.includes('ocr-recognition')) {
|
} else if (currentPath.includes('ocr')) {
|
||||||
breadcrumbs = [
|
breadcrumbs = [
|
||||||
{
|
{
|
||||||
title: '智能体编排',
|
title: '智能体编排',
|
||||||
path: '/teacher/ai-orchestration'
|
path: '/teacher/airag'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'OCR识别',
|
title: 'OCR识别',
|
||||||
@ -865,21 +865,21 @@ const updateActiveNavItem = () => {
|
|||||||
activeSubNavItem.value = '';
|
activeSubNavItem.value = '';
|
||||||
examMenuExpanded.value = false;
|
examMenuExpanded.value = false;
|
||||||
studentMenuExpanded.value = false;
|
studentMenuExpanded.value = false;
|
||||||
} else if (path.includes('ai-orchestration')) {
|
} else if (path.includes('airag')) {
|
||||||
// 智能体编排相关页面
|
// 智能体编排相关页面
|
||||||
activeNavItem.value = 6; // 智能体编排
|
activeNavItem.value = 6; // 智能体编排
|
||||||
orchestrationMenuExpanded.value = true;
|
orchestrationMenuExpanded.value = true;
|
||||||
|
|
||||||
// 根据路径设置子菜单激活状态
|
// 根据路径设置子菜单激活状态
|
||||||
if (path.includes('app-management')) {
|
if (path.includes('aiapp')) {
|
||||||
activeSubNavItem.value = 'app-management';
|
activeSubNavItem.value = 'app-management';
|
||||||
} else if (path.includes('knowledge-base')) {
|
} else if (path.includes('aiknowledge')) {
|
||||||
activeSubNavItem.value = 'knowledge-base';
|
activeSubNavItem.value = 'knowledge-base';
|
||||||
} else if (path.includes('process-design')) {
|
} else if (path.includes('aiflow')) {
|
||||||
activeSubNavItem.value = 'process-design';
|
activeSubNavItem.value = 'process-design';
|
||||||
} else if (path.includes('model-config')) {
|
} else if (path.includes('aimodel')) {
|
||||||
activeSubNavItem.value = 'model-config';
|
activeSubNavItem.value = 'model-config';
|
||||||
} else if (path.includes('ocr-recognition')) {
|
} else if (path.includes('ocr')) {
|
||||||
activeSubNavItem.value = 'ocr-recognition';
|
activeSubNavItem.value = 'ocr-recognition';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -68,4 +68,4 @@
|
|||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: #666;
|
color: #666;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="ai-orchestration-page">
|
<div class="airag-page">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1>AI编排中心</h1>
|
<h1>AI编排中心</h1>
|
||||||
<p>统一管理和配置AI相关功能</p>
|
<p>统一管理和配置AI相关功能</p>
|
||||||
@ -26,7 +26,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.ai-orchestration-page {
|
.airag-page {
|
||||||
padding: 24px;
|
padding: 24px;
|
||||||
max-width: 1200px;
|
max-width: 1200px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
@ -76,4 +76,4 @@
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #6b7280;
|
color: #6b7280;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
Loading…
x
Reference in New Issue
Block a user