feat: 调整路由

This commit is contained in:
QDKF 2025-09-20 14:35:59 +08:00
parent b5db02d95c
commit 50adc24979
8 changed files with 45 additions and 45 deletions

View File

@ -366,39 +366,39 @@ const routes: RouteRecordRaw[] = [
meta: { title: '查看详情' }
},
{
path: 'ai-orchestration',
name: 'AIOrchestration',
component: () => import('@/views/teacher/ai-orchestration/index.vue'),
path: 'airag',
name: 'AIRag',
component: () => import('@/views/teacher/airag/index.vue'),
meta: { title: '智能体编排' }
},
{
path: 'ai-orchestration/app-management',
name: 'AIAppManagement',
component: () => import('@/views/teacher/ai-orchestration/app-management.vue'),
path: 'airag/aiapp',
name: 'AIApp',
component: () => import('@/views/teacher/airag/aiapp/AiAppList.vue'),
meta: { title: 'AI应用管理' }
},
{
path: 'ai-orchestration/knowledge-base',
name: 'AIKnowledgeBase',
component: () => import('@/views/teacher/ai-orchestration/knowledge-base.vue'),
path: 'airag/aiknowledge',
name: 'AIKnowledge',
component: () => import('@/views/teacher/airag/aiknowledge/AiKnowledgeBaseList.vue'),
meta: { title: 'AI知识库' }
},
{
path: 'ai-orchestration/process-design',
name: 'AIProcessDesign',
component: () => import('@/views/teacher/ai-orchestration/process-design.vue'),
path: 'airag/aiflow',
name: 'AIFlow',
component: () => import('@/views/teacher/airag/aiflow/AiFlowDesign.vue'),
meta: { title: 'AI流程设计' }
},
{
path: 'ai-orchestration/model-config',
name: 'AIModelConfig',
component: () => import('@/views/teacher/ai-orchestration/model-config.vue'),
path: 'airag/aimodel',
name: 'AIModel',
component: () => import('@/views/teacher/airag/aimodel/AiModelConfig.vue'),
meta: { title: 'AI模型配置' }
},
{
path: 'ai-orchestration/ocr-recognition',
name: 'AIOCRRecognition',
component: () => import('@/views/teacher/ai-orchestration/ocr-recognition.vue'),
path: 'airag/ocr',
name: 'AIOCR',
component: () => import('@/views/teacher/airag/ocr/AiOcrList.vue'),
meta: { title: 'OCR识别' }
},
{

View File

@ -118,23 +118,23 @@
<!-- 智能体编排子菜单 -->
<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')">
<span>AI应用管理</span>
</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')">
<span>AI知识库</span>
</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')">
<span>AI流程设计</span>
</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')">
<span>AI模型配置</span>
</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' }"
@click="setActiveSubNavItem('ocr-recognition')">
<span>OCR识别</span>
@ -206,7 +206,7 @@ const isAiHovered = ref(false);
const isAiActive = computed(() => route.path.includes('/teacher/ai-assistant'));
const breadcrumbDisplay = computed(() => {
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));
if (found) {
return false;
@ -708,60 +708,60 @@ const breadcrumbPathItems = computed(() => {
}
//
if (currentPath.includes('ai-orchestration')) {
if (currentPath.includes('airag')) {
console.log('智能体编排页面路径:', currentPath);
let breadcrumbs: Array<{ title: string, path: string }> = [];
//
if (currentPath.includes('app-management')) {
if (currentPath.includes('aiapp')) {
breadcrumbs = [
{
title: '智能体编排',
path: '/teacher/ai-orchestration'
path: '/teacher/airag'
},
{
title: 'AI应用管理',
path: currentPath
}
];
} else if (currentPath.includes('knowledge-base')) {
} else if (currentPath.includes('aiknowledge')) {
breadcrumbs = [
{
title: '智能体编排',
path: '/teacher/ai-orchestration'
path: '/teacher/airag'
},
{
title: 'AI知识库',
path: currentPath
}
];
} else if (currentPath.includes('process-design')) {
} else if (currentPath.includes('aiflow')) {
breadcrumbs = [
{
title: '智能体编排',
path: '/teacher/ai-orchestration'
path: '/teacher/airag'
},
{
title: 'AI流程设计',
path: currentPath
}
];
} else if (currentPath.includes('model-config')) {
} else if (currentPath.includes('aimodel')) {
breadcrumbs = [
{
title: '智能体编排',
path: '/teacher/ai-orchestration'
path: '/teacher/airag'
},
{
title: 'AI模型配置',
path: currentPath
}
];
} else if (currentPath.includes('ocr-recognition')) {
} else if (currentPath.includes('ocr')) {
breadcrumbs = [
{
title: '智能体编排',
path: '/teacher/ai-orchestration'
path: '/teacher/airag'
},
{
title: 'OCR识别',
@ -865,21 +865,21 @@ const updateActiveNavItem = () => {
activeSubNavItem.value = '';
examMenuExpanded.value = false;
studentMenuExpanded.value = false;
} else if (path.includes('ai-orchestration')) {
} else if (path.includes('airag')) {
//
activeNavItem.value = 6; //
orchestrationMenuExpanded.value = true;
//
if (path.includes('app-management')) {
if (path.includes('aiapp')) {
activeSubNavItem.value = 'app-management';
} else if (path.includes('knowledge-base')) {
} else if (path.includes('aiknowledge')) {
activeSubNavItem.value = 'knowledge-base';
} else if (path.includes('process-design')) {
} else if (path.includes('aiflow')) {
activeSubNavItem.value = 'process-design';
} else if (path.includes('model-config')) {
} else if (path.includes('aimodel')) {
activeSubNavItem.value = 'model-config';
} else if (path.includes('ocr-recognition')) {
} else if (path.includes('ocr')) {
activeSubNavItem.value = 'ocr-recognition';
}
}

View File

@ -1,5 +1,5 @@
<template>
<div class="ai-orchestration-page">
<div class="airag-page">
<div class="page-header">
<h1>AI编排中心</h1>
<p>统一管理和配置AI相关功能</p>
@ -26,7 +26,7 @@
</script>
<style scoped>
.ai-orchestration-page {
.airag-page {
padding: 24px;
max-width: 1200px;
margin: 0 auto;