hookehuyr

feat(teacher): 新增教师模块路由、表单页面和作业管理页面

添加教师模块相关功能,包括:
1. 在路由配置中添加教师模块路由
2. 创建教师作业新增表单页面
3. 实现教师作业管理日历视图页面
4. 添加相关Vant组件支持
...@@ -30,15 +30,20 @@ declare module 'vue' { ...@@ -30,15 +30,20 @@ declare module 'vue' {
30 UploadVideoPopup: typeof import('./components/ui/UploadVideoPopup.vue')['default'] 30 UploadVideoPopup: typeof import('./components/ui/UploadVideoPopup.vue')['default']
31 UserAgreement: typeof import('./components/ui/UserAgreement.vue')['default'] 31 UserAgreement: typeof import('./components/ui/UserAgreement.vue')['default']
32 VanActionSheet: typeof import('vant/es')['ActionSheet'] 32 VanActionSheet: typeof import('vant/es')['ActionSheet']
33 + VanBackTop: typeof import('vant/es')['BackTop']
33 VanButton: typeof import('vant/es')['Button'] 34 VanButton: typeof import('vant/es')['Button']
34 VanCalendar: typeof import('vant/es')['Calendar'] 35 VanCalendar: typeof import('vant/es')['Calendar']
36 + VanCell: typeof import('vant/es')['Cell']
35 VanCellGroup: typeof import('vant/es')['CellGroup'] 37 VanCellGroup: typeof import('vant/es')['CellGroup']
36 VanCheckbox: typeof import('vant/es')['Checkbox'] 38 VanCheckbox: typeof import('vant/es')['Checkbox']
37 VanCol: typeof import('vant/es')['Col'] 39 VanCol: typeof import('vant/es')['Col']
38 VanConfigProvider: typeof import('vant/es')['ConfigProvider'] 40 VanConfigProvider: typeof import('vant/es')['ConfigProvider']
39 VanDatePicker: typeof import('vant/es')['DatePicker'] 41 VanDatePicker: typeof import('vant/es')['DatePicker']
42 + VanDatetimePicker: typeof import('vant/es')['DatetimePicker']
40 VanDialog: typeof import('vant/es')['Dialog'] 43 VanDialog: typeof import('vant/es')['Dialog']
41 VanDivider: typeof import('vant/es')['Divider'] 44 VanDivider: typeof import('vant/es')['Divider']
45 + VanDropdownItem: typeof import('vant/es')['DropdownItem']
46 + VanDropdownMenu: typeof import('vant/es')['DropdownMenu']
42 VanEmpty: typeof import('vant/es')['Empty'] 47 VanEmpty: typeof import('vant/es')['Empty']
43 VanField: typeof import('vant/es')['Field'] 48 VanField: typeof import('vant/es')['Field']
44 VanForm: typeof import('vant/es')['Form'] 49 VanForm: typeof import('vant/es')['Form']
...@@ -55,6 +60,7 @@ declare module 'vue' { ...@@ -55,6 +60,7 @@ declare module 'vue' {
55 VanProgress: typeof import('vant/es')['Progress'] 60 VanProgress: typeof import('vant/es')['Progress']
56 VanRate: typeof import('vant/es')['Rate'] 61 VanRate: typeof import('vant/es')['Rate']
57 VanRow: typeof import('vant/es')['Row'] 62 VanRow: typeof import('vant/es')['Row']
63 + VanSearch: typeof import('vant/es')['Search']
58 VanSwipe: typeof import('vant/es')['Swipe'] 64 VanSwipe: typeof import('vant/es')['Swipe']
59 VanSwipeItem: typeof import('vant/es')['SwipeItem'] 65 VanSwipeItem: typeof import('vant/es')['SwipeItem']
60 VanTab: typeof import('vant/es')['Tab'] 66 VanTab: typeof import('vant/es')['Tab']
......
1 /* 1 /*
2 * @Date: 2025-03-20 20:36:36 2 * @Date: 2025-03-20 20:36:36
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-06-13 11:24:11 4 + * @LastEditTime: 2025-06-17 16:47:13
5 * @FilePath: /mlaj/src/router/routes.js 5 * @FilePath: /mlaj/src/router/routes.js
6 * @Description: 路由地址映射配置 6 * @Description: 路由地址映射配置
7 */ 7 */
8 import checkinRoutes from './checkin' 8 import checkinRoutes from './checkin'
9 +import teacherRoutes from './teacher'
9 10
10 export const routes = [ 11 export const routes = [
11 { 12 {
...@@ -226,4 +227,5 @@ export const routes = [ ...@@ -226,4 +227,5 @@ export const routes = [
226 } 227 }
227 }, 228 },
228 ...checkinRoutes, 229 ...checkinRoutes,
230 + ...teacherRoutes,
229 ] 231 ]
......
1 +/*
2 + * @Date: 2025-06-17 16:46:50
3 + * @LastEditors: hookehuyr hookehuyr@gmail.com
4 + * @LastEditTime: 2025-06-18 11:34:36
5 + * @FilePath: /mlaj/src/router/teacher.js
6 + * @Description: 文件描述
7 + */
8 +export default [
9 + {
10 + path: '/teacher/index',
11 + name: 'Teacher',
12 + component: () => import('../views/teacher/testPage.vue'),
13 + meta: {
14 + title: '教师',
15 + requiresAuth: true
16 + },
17 + },
18 + {
19 + path: '/teacher/form',
20 + name: 'TeacherForm',
21 + component: () => import('../views/teacher/formPage.vue'),
22 + meta: {
23 + title: '教师新增作业',
24 + requiresAuth: true
25 + },
26 + },
27 +]
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.