diff --git a/src/assets/styles/dialog.scss b/src/assets/styles/dialog.scss index 31a110c..402a1c0 100644 --- a/src/assets/styles/dialog.scss +++ b/src/assets/styles/dialog.scss @@ -1,7 +1,23 @@ .gdialog { + color: #dcecff; + + p, + span, + div, + li { + color: #dcecff !important; + } + p { - color: black !important; + font-size: 15px; + line-height: 1.65; } + + strong, + b { + color: #ffffff !important; + } + border-radius: 5px; .el-dialog__title { font-weight: 600 !important; @@ -130,4 +146,4 @@ color: #ffffff; } } -} \ No newline at end of file +} diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 6a0ab57..00beb7c 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -4,7 +4,7 @@ 电商互联网产品开发实训系统 数 字 营 销 实 训 系 统 - 教 师 端 -
+
@@ -106,6 +106,36 @@ const mentList = ref([ role: 1, activePrefix: "/platform-school-admins", }, + { + name: "院系管理", + path: "/admin-faculty/index", + role: 2, + activePrefix: "/admin-faculty", + }, + { + name: "专业管理", + path: "/admin-major/index", + role: 2, + activePrefix: "/admin-major", + }, + { + name: "班级管理", + path: "/admin-class/index", + role: 2, + activePrefix: "/admin-class", + }, + { + name: "教师管理", + path: "/admin-teacher/index", + role: 2, + activePrefix: "/admin-teacher", + }, + { + name: "学生管理", + path: "/admin-student/index", + role: 2, + activePrefix: "/admin-student", + }, { name: "实验报告", path: "/report/index", @@ -179,7 +209,7 @@ const roleList = computed(() => { return item.path === "/index" || item.role === 1; } if (currentRole === 2) { - return item.path === "/index"; + return item.path === "/index" || item.role === 2; } if (!item.role || item.path === "/index" || item.path === "/analysis/index") return true; return item.role == currentRole; @@ -323,6 +353,14 @@ onMounted(() => { &.platform-nav { gap: 14px; } + &.school-admin-nav { + left: 55%; + gap: 8px; + font-size: 16px; + .el-ment-item { + padding: 6px 10px; + } + } } .right-menu { float: right; diff --git a/src/layout/index.vue b/src/layout/index.vue index e6d4979..d383c77 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -30,7 +30,7 @@ const sidebar = computed(() => useAppStore().sidebar); const device = computed(() => useAppStore().device); const needTagsView = computed(() => settingsStore.tagsView); const fixedHeader = computed(() => settingsStore.fixedHeader); -const useTopNavbarOnly = computed(() => role.value === 1); +const useTopNavbarOnly = computed(() => role.value === 1 || role.value === 2); const classObj = computed(() => ({ hideSidebar: !sidebar.value.opened, diff --git a/src/views/index.vue b/src/views/index.vue index c6d0d3d..e1af51f 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -57,12 +57,11 @@ const go = (path) => { router.push(path); }; const schoolAdminLinks = [ - { label: "School", title: "学校管理", desc: "查看并编辑当前学校基础信息。", path: "/admin-school/index" }, - { label: "Faculty", title: "院系管理", desc: "维护本校院系数据。", path: "/admin-faculty/index" }, - { label: "Major", title: "专业管理", desc: "维护本校专业数据。", path: "/admin-major/index" }, - { label: "Class", title: "班级管理", desc: "维护本校班级数据。", path: "/admin-class/index" }, - { label: "Teacher", title: "教师管理", desc: "维护本校教师账号。", path: "/admin-teacher/index" }, - { label: "Student", title: "学生管理", desc: "维护本校学生账号。", path: "/admin-student/index" }, + { label: "Faculty", title: "院系管理", desc: "维护院系数据。", path: "/admin-faculty/index" }, + { label: "Major", title: "专业管理", desc: "维护专业数据。", path: "/admin-major/index" }, + { label: "Class", title: "班级管理", desc: "维护班级数据。", path: "/admin-class/index" }, + { label: "Teacher", title: "教师管理", desc: "维护教师账号。", path: "/admin-teacher/index" }, + { label: "Student", title: "学生管理", desc: "维护学生账号。", path: "/admin-student/index" }, ];