Vue.js 2 Web管理端,Element UI组件库,用于后台管理。
| Task | Location | Notes |
|---|---|---|
| 页面组件 | src/views/ |
管理界面页面组件 |
| API调用 | src/api/ |
后端API接口封装 |
| 路由配置 | src/router/ |
Vue Router配置 |
| 工具函数 | src/utils/ |
通用工具函数 |
| 状态管理 | src/store/ |
Vuex状态管理 |
| 公共组件 | src/components/ |
可复用UI组件 |
src/
├── views/ # 页面视图组件
│ ├── Dashboard.vue # 管理员首页(8统计卡片+趋势图+系统健康+快捷操作)
│ ├── TeacherDashboard.vue # 规划师首页(独立角色仪表板)
│ ├── admin/ # 管理员页面
│ └── teacher/ # 规划师页面 (7个)
├── api/ # API接口
├── router/ # 路由配置
├── store/ # Vuex状态
├── utils/ # 工具函数
└── components/ # 公共组件
router.beforeEach 执行以下检查:
npm install # 安装依赖
npm run serve # 开发模式 (localhost:8082)
npm run build # 生产构建
.v-modal { display: none !important } 防止 Element UI 组件残留遮罩