fix: restore assistant and move exam navigation

fix/exam-question-access-material-excel-delete-draft
chenyuan 4 weeks ago
parent e5a7183285
commit 5d5cdee83d

@ -146,6 +146,12 @@ const mentList = ref([
role: 2, role: 2,
activePrefix: "/admin-student", activePrefix: "/admin-student",
}, },
{
name: "考试考核",
path: "/examination/index",
role: 4,
activePrefix: "/examination",
},
{ {
name: "实验报告", name: "实验报告",
path: "/report/index", path: "/report/index",

@ -294,6 +294,7 @@ const sidebarStyle = computed(() => {
}; };
}); });
const studentCourseNav = [ const studentCourseNav = [
{ title: "AI智能助手", path: "/assistant/index", activePrefix: "/assistant" },
{ {
title: "互联网产品开发基础", title: "互联网产品开发基础",
children: [ children: [
@ -393,13 +394,14 @@ const trainingTaskKeyByPath = {
"/assessment/diagnosis": "product-diagnosis-iteration", "/assessment/diagnosis": "product-diagnosis-iteration",
}; };
const studentCourseBaseNav = [ const studentCourseBaseNav = [
{ title: "考试考核", path: "/examination/index", activePrefix: "/examination" }, { title: "AI智能助手", path: "/assistant/index", activePrefix: "/assistant" },
]; ];
const studentTaskSections = ref([]); const studentTaskSections = ref([]);
const currentCourseNav = computed(() => (isTeacherRole.value const currentCourseNav = computed(() => (isTeacherRole.value
? filterTeacherManageNavigation(teacherManageNav) ? filterTeacherManageNavigation(teacherManageNav)
: [...studentCourseBaseNav, ...studentTaskSections.value])); : [...studentCourseBaseNav, ...studentTaskSections.value]));
const studentIconByPath = { const studentIconByPath = {
"/assistant/index": "MagicStick",
"/comprehensive/index": "School", "/comprehensive/index": "School",
"/foundation/new-product-survey": "Search", "/foundation/new-product-survey": "Search",
"/foundation/product-development-factors": "SetUp", "/foundation/product-development-factors": "SetUp",
@ -435,7 +437,6 @@ const studentIconByPath = {
"/task-review/index": "DocumentChecked", "/task-review/index": "DocumentChecked",
"/score/index": "DataBoard", "/score/index": "DataBoard",
"/exam/index": "Finished", "/exam/index": "Finished",
"/examination/index": "Finished",
}; };
const studentIconBySectionStart = [ const studentIconBySectionStart = [
{ path: "/training/", icon: "Document" }, { path: "/training/", icon: "Document" },

Loading…
Cancel
Save