Browse Source

课程路由搭建

LiShiwei 1 year ago
parent
commit
9ec1e4b977

+ 1 - 1
src/hooks/business/use-table.ts

@@ -9,7 +9,7 @@ import { useLoadingEmpty } from '../common';
  */
  */
 type PaginationParams = Pick<PaginationProps, 'page' | 'pageSize'>;
 type PaginationParams = Pick<PaginationProps, 'page' | 'pageSize'>;
 
 
-/**
+/*
  * 表格请求接口的参数
  * 表格请求接口的参数
  */
  */
 type ApiParams = Record<string, unknown> & PaginationParams;
 type ApiParams = Record<string, unknown> & PaginationParams;

+ 2 - 1
src/locales/lang/en.ts

@@ -75,7 +75,8 @@ const locale: LocaleMessages<I18nType.Schema> = {
         auth: 'Auth',
         auth: 'Auth',
         role: 'Role',
         role: 'Role',
         route: 'Route',
         route: 'Route',
-        user: 'User'
+        user: 'User',
+				course:"course"
       },
       },
       about: 'About'
       about: 'About'
     }
     }

+ 2 - 1
src/locales/lang/zh-cn.ts

@@ -75,7 +75,8 @@ const locale: LocaleMessages<I18nType.Schema> = {
         auth: '权限管理',
         auth: '权限管理',
         role: '角色管理',
         role: '角色管理',
         route: '路由管理',
         route: '路由管理',
-        user: '用户管理'
+        user: '用户管理',
+				course:"课程管理"
       },
       },
       about: '关于'
       about: '关于'
     }
     }

+ 10 - 0
src/router/modules/management.ts

@@ -46,6 +46,16 @@ const management: AuthRoute.Route = {
         requiresAuth: true,
         requiresAuth: true,
         icon: 'material-symbols:route'
         icon: 'material-symbols:route'
       }
       }
+    },{
+      name: 'management_course',
+      path: '/management/course',
+      component: 'self',
+      meta: {
+        title: '课程管理',
+        i18nTitle: 'message.routes.management.course',
+        requiresAuth: true,
+        icon: 'material-symbols:route'
+      }
     }
     }
   ],
   ],
   meta: {
   meta: {

+ 2 - 0
src/typings/page-route.d.ts

@@ -55,6 +55,7 @@ declare namespace PageRoute {
     | 'function_tab'
     | 'function_tab'
     | 'management'
     | 'management'
     | 'management_auth'
     | 'management_auth'
+    | 'management_course'
     | 'management_role'
     | 'management_role'
     | 'management_route'
     | 'management_route'
     | 'management_user'
     | 'management_user'
@@ -113,6 +114,7 @@ declare namespace PageRoute {
     | 'function_tab-multi-detail'
     | 'function_tab-multi-detail'
     | 'function_tab'
     | 'function_tab'
     | 'management_auth'
     | 'management_auth'
+    | 'management_course'
     | 'management_role'
     | 'management_role'
     | 'management_route'
     | 'management_route'
     | 'management_user'
     | 'management_user'

+ 1 - 0
src/typings/system.d.ts

@@ -379,6 +379,7 @@ declare namespace I18nType {
         role: string;
         role: string;
         route: string;
         route: string;
         user: string;
         user: string;
+				course: string;
       };
       };
       about: string;
       about: string;
     };
     };

+ 1 - 0
src/views/index.ts

@@ -34,6 +34,7 @@ export const views: Record<
   'function_tab-multi-detail': () => import('./function/tab-multi-detail/index.vue'),
   'function_tab-multi-detail': () => import('./function/tab-multi-detail/index.vue'),
   function_tab: () => import('./function/tab/index.vue'),
   function_tab: () => import('./function/tab/index.vue'),
   management_auth: () => import('./management/auth/index.vue'),
   management_auth: () => import('./management/auth/index.vue'),
+  management_course: () => import('./management/course/index.vue'),
   management_role: () => import('./management/role/index.vue'),
   management_role: () => import('./management/role/index.vue'),
   management_route: () => import('./management/route/index.vue'),
   management_route: () => import('./management/route/index.vue'),
   management_user: () => import('./management/user/index.vue'),
   management_user: () => import('./management/user/index.vue'),

+ 14 - 0
src/views/management/course/index.vue

@@ -0,0 +1,14 @@
+<template>
+	<div>
+课程管理
+	</div>
+</template>
+
+<script setup lang="ts">
+
+</script>
+
+<style scoped>
+
+</style>
+