feat: 注释AI助教和智能体编排功能模块

This commit is contained in:
QDKF 2025-09-25 20:55:32 +08:00
parent 41cccd9f7a
commit cb0de218fa

View File

@ -96,18 +96,18 @@
</router-link> </router-link>
</div> </div>
<!-- ai助教 --> <!-- ai助教 - 已注释 -->
<div class="ai-container"> <!-- <div class="ai-container">
<router-link to="/teacher/ai-assistant" class="ai-tab" @mouseenter="isAiHovered = true" <router-link to="/teacher/ai-assistant" class="ai-tab" @mouseenter="isAiHovered = true"
@mouseleave="isAiHovered = false"> @mouseleave="isAiHovered = false">
<img :src="(isAiActive || isAiHovered) ? '/images/aiAssistant/AI助教1.png' : '/images/aiAssistant/AI助教2.png'" <img :src="(isAiActive || isAiHovered) ? '/images/aiAssistant/AI助教1.png' : '/images/aiAssistant/AI助教2.png'"
alt="ai" /> alt="ai" />
<span>AI助教</span> <span>AI助教</span>
</router-link> </router-link>
</div> </div> -->
<!-- 智能体编排 - 可展开菜单 --> <!-- 智能体编排 - 可展开菜单 - 已注释 -->
<div class="nav-container orchestration-nav"> <!-- <div class="nav-container orchestration-nav">
<div class="nav-item" :class="{ active: activeNavItem === 6 }" @click="toggleOrchestrationMenu"> <div class="nav-item" :class="{ active: activeNavItem === 6 }" @click="toggleOrchestrationMenu">
<img :src="activeNavItem === 6 ? '/images/aiAssistant/AI助教1.png' : '/images/aiAssistant/AI助教2.png'" alt=""> <img :src="activeNavItem === 6 ? '/images/aiAssistant/AI助教1.png' : '/images/aiAssistant/AI助教2.png'" alt="">
<span>智能体编排</span> <span>智能体编排</span>
@ -116,7 +116,6 @@
</n-icon> </n-icon>
</div> </div>
<!-- 智能体编排子菜单 -->
<div class="submenu-container" :class="{ expanded: orchestrationMenuExpanded }"> <div class="submenu-container" :class="{ expanded: orchestrationMenuExpanded }">
<router-link to="/teacher/airag/aiapp" 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')">
@ -140,7 +139,7 @@
<span>OCR识别</span> <span>OCR识别</span>
</router-link> </router-link>
</div> </div>
</div> </div> -->
</div> </div>
<!-- 右侧路由视图 --> <!-- 右侧路由视图 -->
@ -198,11 +197,11 @@ const height = window.innerHeight;
console.log(`当前屏幕宽度: ${width}px, 高度: ${height}px`); console.log(`当前屏幕宽度: ${width}px, 高度: ${height}px`);
// //
const activeNavItem = ref(0); // 0: , 1: , 2: , 3: , 4: , 5: , 6: const activeNavItem = ref(0); // 0: , 1: , 2: , 3: , 4: , 5: (6: - )
const activeSubNavItem = ref(''); // const activeSubNavItem = ref(''); //
const examMenuExpanded = ref(false); // const examMenuExpanded = ref(false); //
const studentMenuExpanded = ref(false); // const studentMenuExpanded = ref(false); //
const orchestrationMenuExpanded = ref(false); // // const orchestrationMenuExpanded = ref(false); // -
const showTopImage = ref(false); // / const showTopImage = ref(false); // /
// //
@ -214,11 +213,11 @@ const hideTopImageRoutes = [
const route = useRoute(); const route = useRoute();
const router = useRouter(); const router = useRouter();
const isAiHovered = ref(false); // const isAiHovered = ref(false); // AI -
const isAiActive = computed(() => route.path.includes('/teacher/ai-assistant')); // const isAiActive = computed(() => route.path.includes('/teacher/ai-assistant')); // AI -
const breadcrumbDisplay = computed(() => { const breadcrumbDisplay = computed(() => {
const currentPath = route.path; const currentPath = route.path;
let arr = ['certificate/new', 'ai-assistant', 'airag']; 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;
@ -238,12 +237,12 @@ const setActiveNavItem = (index: number) => {
if (index !== 1) { if (index !== 1) {
studentMenuExpanded.value = false; studentMenuExpanded.value = false;
} }
// // -
if (index !== 6) { // if (index !== 6) {
orchestrationMenuExpanded.value = false; // orchestrationMenuExpanded.value = false;
} // }
// //
if (index !== 4 && index !== 1 && index !== 6) { if (index !== 4 && index !== 1) { // index !== 6
activeSubNavItem.value = ''; activeSubNavItem.value = '';
} }
} }
@ -281,16 +280,16 @@ const toggleStudentMenu = (path: string) => {
} }
} }
// // -
const toggleOrchestrationMenu = () => { // const toggleOrchestrationMenu = () => {
orchestrationMenuExpanded.value = !orchestrationMenuExpanded.value; // orchestrationMenuExpanded.value = !orchestrationMenuExpanded.value;
activeNavItem.value = 6; // activeNavItem.value = 6;
// // //
if (orchestrationMenuExpanded.value && !activeSubNavItem.value) { // if (orchestrationMenuExpanded.value && !activeSubNavItem.value) {
activeSubNavItem.value = 'app-management'; // activeSubNavItem.value = 'app-management';
} // }
} // }
// //
const setActiveSubNavItem = (subItem: string) => { const setActiveSubNavItem = (subItem: string) => {
@ -862,30 +861,30 @@ const updateActiveNavItem = () => {
activeSubNavItem.value = found || ''; activeSubNavItem.value = found || '';
} else if (path.includes('message-center')) { } else if (path.includes('message-center')) {
activeNavItem.value = 5; // activeNavItem.value = 5; //
} else if (path.includes('ai-assistant')) { // } else if (path.includes('ai-assistant')) {
// AI // // AI -
console.log('检测到AI助教页面清空导航选中状态'); // console.log('AI');
activeNavItem.value = -1; // activeNavItem.value = -1;
activeSubNavItem.value = ''; // activeSubNavItem.value = '';
examMenuExpanded.value = false; // examMenuExpanded.value = false;
studentMenuExpanded.value = false; // studentMenuExpanded.value = false;
} else if (path.includes('airag')) { // } else if (path.includes('airag')) {
// // // -
activeNavItem.value = 6; // // activeNavItem.value = 6; //
orchestrationMenuExpanded.value = true; // orchestrationMenuExpanded.value = true;
// // //
if (path.includes('aiapp')) { // if (path.includes('aiapp')) {
activeSubNavItem.value = 'app-management'; // activeSubNavItem.value = 'app-management';
} else if (path.includes('aiknowledge')) { // } else if (path.includes('aiknowledge')) {
activeSubNavItem.value = 'knowledge-base'; // activeSubNavItem.value = 'knowledge-base';
} else if (path.includes('aiflow')) { // } else if (path.includes('aiflow')) {
activeSubNavItem.value = 'process-design'; // activeSubNavItem.value = 'process-design';
} else if (path.includes('aimodel')) { // } else if (path.includes('aimodel')) {
activeSubNavItem.value = 'model-config'; // activeSubNavItem.value = 'model-config';
} else if (path.includes('ocr')) { // } else if (path.includes('ocr')) {
activeSubNavItem.value = 'ocr-recognition'; // activeSubNavItem.value = 'ocr-recognition';
} // }
} }
} }