培养方案:专业/年级版本、课程模块、学分校验、复制版本、发布锁定、旧版本归档。

教学任务:学期开课、授课教师、唯一主讲、合班、容量与周次校验、发布及结课。
SQLite 开发库已自动升级,无需删除原数据库。
新增对应 MySQL EF Core 迁移。
Vue 已编译进 wwwroot,仍可只运行 ASP.NET Core 单服务。
桌面端及 390px 窄屏页面验证通过,无前端控制台错误。
This commit is contained in:
biss committed 2026-07-24 14:10:43 +08:00
1 parent 30d793773c
commit 628944f64d
23 files changed
+5430 -47

No files matched your search

+20 -2
View File
@@ -6,6 +6,8 @@ import {
DataAnalysis,
OfficeBuilding,
Operation,
Reading,
Tickets,
User,
UserFilled,
} from '@element-plus/icons-vue'
@@ -23,6 +25,8 @@ const pageTitle = computed(() => {
'base-data': '基础数据',
personnel: '人员档案',
courses: '课程库',
curriculum: '培养方案',
'teaching-tasks': '教学任务',
users: '用户与权限',
}
return titles[String(route.name)] ?? '教务管理'
@@ -80,6 +84,20 @@ onMounted(() => auth.refresh().catch(() => undefined))
<el-icon><Collection /></el-icon>
<template #title>课程库</template>
</el-menu-item>
<el-menu-item
v-if="auth.user?.roles.some((role) => ['SuperAdmin', 'AcademicAdmin', 'CollegeAdmin'].includes(role))"
index="/curriculum"
>
<el-icon><Reading /></el-icon>
<template #title>培养方案</template>
</el-menu-item>
<el-menu-item
v-if="auth.user?.roles.some((role) => ['SuperAdmin', 'AcademicAdmin', 'CollegeAdmin'].includes(role))"
index="/teaching-tasks"
>
<el-icon><Tickets /></el-icon>
<template #title>教学任务</template>
</el-menu-item>
<el-menu-item v-if="auth.isSuperAdmin" index="/users">
<el-icon><User /></el-icon>
<template #title>用户与权限</template>
@@ -87,8 +105,8 @@ onMounted(() => auth.refresh().catch(() => undefined))
</el-menu>
<div v-if="!collapsed" class="phase-note">
<span>第一阶段 · 基础底座</span>
<p>组织、权限和教学资源正在运行</p>
<span>第一阶段 · 核心可用版</span>
<p>主数据与培养方案正在运行</p>
</div>
</aside>
+12
View File
@@ -39,6 +39,18 @@ const router = createRouter({
name: 'courses',
component: () => import('../views/CoursesView.vue'),
},
{
path: 'curriculum',
name: 'curriculum',
component: () => import('../views/CurriculumView.vue'),
meta: { roles: ['SuperAdmin', 'AcademicAdmin', 'CollegeAdmin'] },
},
{
path: 'teaching-tasks',
name: 'teaching-tasks',
component: () => import('../views/TeachingTasksView.vue'),
meta: { roles: ['SuperAdmin', 'AcademicAdmin', 'CollegeAdmin'] },
},
{
path: 'users',
name: 'users',
+66
View File
@@ -102,6 +102,7 @@ button { cursor: pointer; }
.phase-line span.active::before { background: var(--amber); box-shadow: 0 0 0 4px #f5ead6; }
.page-stack { display: grid; gap: 18px; }
.page-stack > * { min-width: 0; }
.page-intro { min-height: 106px; padding: 8px 4px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-intro h2 { margin: 7px 0 7px; font-family: "STZhongsong", "Songti SC", serif; font-size: 27px; }
.page-intro p { margin: 0; color: var(--muted); font-size: 13px; }
@@ -156,6 +157,55 @@ button { cursor: pointer; }
.ledger-rule { display: flex; align-items: center; gap: 0; position: relative; z-index: 1; }
.ledger-rule span { padding: 8px 28px; border-right: 1px solid rgba(255,255,255,.12); color: #d2d8e9; font-size: 11px; letter-spacing: .08em; }
.curriculum-filter { padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border: 1px solid var(--line); background: white; }
.curriculum-filter > .el-input { width: 260px; }
.curriculum-filter > .el-select { width: 170px; }
.curriculum-workspace { min-height: 620px; display: grid; grid-template-columns: 285px minmax(0, 1fr); border: 1px solid var(--line); background: white; }
.plan-list { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #fafbfc; }
.plan-list > button { position: relative; padding: 19px 20px; display: grid; gap: 6px; text-align: left; border: none; border-bottom: 1px solid var(--line); background: transparent; }
.plan-list > button:hover { background: white; }
.plan-list > button.active { padding-left: 17px; border-left: 3px solid var(--teal); background: white; }
.plan-list > button span { padding-right: 55px; color: var(--muted); font-size: 10px; }
.plan-list > button b { font-size: 13px; line-height: 1.5; }
.plan-list > button small { color: #969eac; font-size: 10px; }
.plan-list > button i { position: absolute; right: 14px; top: 16px; padding: 3px 7px; border-radius: 10px; color: #777f8d; background: #eef0f3; font-size: 9px; font-style: normal; }
.plan-list > button i.published { color: var(--teal); background: #e5f4f1; }
.plan-list > button i.archived { color: #8d7760; background: #f2ece4; }
.plan-pagination { margin-top: auto; min-height: 58px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.plan-pagination > span { color: var(--muted); font-size: 10px; }
.plan-detail { min-width: 0; padding: 26px; }
.plan-detail-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.plan-detail-head > div:first-child > span { color: var(--teal); font-size: 10px; letter-spacing: .08em; }
.plan-detail-head h3 { margin: 7px 0 5px; font-family: "STZhongsong", "Songti SC", serif; font-size: 23px; }
.plan-detail-head p { margin: 0; color: var(--muted); font-size: 11px; }
.plan-actions { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 7px; }
.plan-actions .el-button + .el-button { margin-left: 0; }
.plan-metrics { margin: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.plan-metrics > div { padding: 15px 17px; border-right: 1px solid var(--line); }
.plan-metrics > div:last-child { border-right: none; }
.plan-metrics span, .plan-metrics b { display: block; }
.plan-metrics span { color: var(--muted); font-size: 10px; }
.plan-metrics b { margin-top: 6px; font: 700 18px/1.2 Consolas, monospace; }
.plan-metrics b.warning { color: #b36f12; }
.module-toolbar { margin: 25px 0 12px; display: flex; align-items: center; justify-content: space-between; }
.module-toolbar b, .module-toolbar span { display: block; }
.module-toolbar b { font-size: 15px; }
.module-toolbar span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.curriculum-module { margin-top: 12px; border: 1px solid var(--line); }
.curriculum-module > header { min-height: 72px; padding: 13px 16px; display: flex; align-items: center; gap: 18px; background: #f8fafb; border-bottom: 1px solid var(--line); }
.curriculum-module > header > div:first-child { min-width: 160px; }
.curriculum-module > header span { color: var(--teal); font: 700 9px/1 Consolas, monospace; letter-spacing: .12em; }
.curriculum-module h4 { margin: 6px 0 0; font-size: 14px; }
.curriculum-module > header p { margin: 0 auto 0 0; color: var(--muted); font-size: 11px; }
.curriculum-module > header > div:last-child { display: flex; align-items: center; white-space: nowrap; }
.curriculum-course-table { min-height: 80px; }
.task-summary { min-height: 82px; padding: 15px 22px; display: flex; align-items: center; gap: 28px; color: white; background: linear-gradient(108deg, #17295a, #263f80); }
.task-summary > div { min-width: 170px; display: flex; align-items: baseline; gap: 8px; }
.task-summary span, .task-summary small { color: #b8c1de; font-size: 10px; }
.task-summary b { margin-left: auto; color: #58d1c0; font: 700 30px/1 Consolas, monospace; }
.task-summary p { margin: 0; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.16); color: #d4daeb; font-size: 11px; letter-spacing: .03em; }
.muted-action { color: #9aa1ae; font-size: 11px; }
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, 1.2fr) minmax(420px, .8fr); background: white; }
.login-story { min-height: 100vh; padding: 54px clamp(45px, 6vw, 90px); display: flex; flex-direction: column; color: white; background: linear-gradient(142deg, #13224d, #243a77 62%, #176b71); overflow: hidden; position: relative; }
.login-story::before { content: ""; position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 46px 46px; }
@@ -222,6 +272,22 @@ button { cursor: pointer; }
.ledger-rule { overflow-x: auto; }
.ledger-rule span { padding: 12px 20px; white-space: nowrap; }
.data-card { overflow: hidden; }
.curriculum-filter > .el-input { width: 100%; }
.curriculum-filter > .el-select { flex: 1 1 140px; width: auto; }
.curriculum-workspace { display: block; }
.plan-list { max-height: 310px; overflow-y: auto; border-right: none; border-bottom: 1px solid var(--line); }
.plan-pagination { position: sticky; bottom: 0; background: #fafbfc; }
.plan-detail { padding: 18px 14px; }
.plan-detail-head { display: block; }
.plan-actions { margin-top: 16px; justify-content: flex-start; }
.plan-metrics { grid-template-columns: 1fr 1fr; }
.plan-metrics > div:nth-child(2) { border-right: none; }
.plan-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.curriculum-module > header { align-items: flex-start; flex-wrap: wrap; }
.curriculum-module > header p { order: 3; width: 100%; }
.task-summary { align-items: flex-start; flex-direction: column; gap: 12px; }
.task-summary > div { width: 100%; }
.task-summary p { padding: 12px 0 0; border-left: none; border-top: 1px solid rgba(255,255,255,.16); line-height: 1.6; }
.form-grid, .form-grid.three { grid-template-columns: 1fr; gap: 0; }
.el-dialog { width: calc(100vw - 24px) !important; }
.login-page { display: block; min-height: 100vh; background: #f4f6f9; }
Loaded 3 of 23 files, more files were not shown because too many files have changed in this diff. Show more