rht
This commit is contained in:
parent
652883d142
commit
7aac442e9a
|
@ -95,10 +95,10 @@ export class ShareCodeService {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 标记分享码为已使用
|
// 标记分享码为已使用
|
||||||
await db.shareCode.update({
|
// await db.shareCode.update({
|
||||||
where: { id: shareCode.id },
|
// where: { id: shareCode.id },
|
||||||
data: { isUsed: true },
|
// data: { isUsed: true },
|
||||||
});
|
// });
|
||||||
|
|
||||||
// 记录使用日志
|
// 记录使用日志
|
||||||
this.logger.log(`Share code ${code} used for file ${shareCode.fileId}`);
|
this.logger.log(`Share code ${code} used for file ${shareCode.fileId}`);
|
||||||
|
|
0
apps/web/src/components/models/course/detail/CourseOperationBtns/CourseOperationBtns.tsx
Normal file → Executable file
0
apps/web/src/components/models/course/detail/CourseOperationBtns/CourseOperationBtns.tsx
Normal file → Executable file
0
apps/web/src/components/models/department/department-children-select.tsx
Normal file → Executable file
0
apps/web/src/components/models/department/department-children-select.tsx
Normal file → Executable file
0
apps/web/src/components/models/trainContent/train-content-tree-select.tsx
Normal file → Executable file
0
apps/web/src/components/models/trainContent/train-content-tree-select.tsx
Normal file → Executable file
|
@ -39,50 +39,57 @@ export type CustomRouteObject =
|
||||||
| CustomIndexRouteObject
|
| CustomIndexRouteObject
|
||||||
| CustomNonIndexRouteObject;
|
| CustomNonIndexRouteObject;
|
||||||
export const routes: CustomRouteObject[] = [
|
export const routes: CustomRouteObject[] = [
|
||||||
|
// {
|
||||||
|
// path: "/",
|
||||||
|
// errorElement: <ErrorPage />,
|
||||||
|
// handle: {
|
||||||
|
// crumb() {
|
||||||
|
// return <Link to={"/"}>主页</Link>;
|
||||||
|
// },
|
||||||
|
// },
|
||||||
|
// children: [
|
||||||
|
// {
|
||||||
|
// element: <MainLayout></MainLayout>,
|
||||||
|
// children: [
|
||||||
|
// {
|
||||||
|
// index: true,
|
||||||
|
// element:<Dashboard></Dashboard>,
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// path: "/staffinformation",
|
||||||
|
// element: <StaffInformation></StaffInformation>,
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// path: "/staff",
|
||||||
|
// element: <StaffMessage></StaffMessage>,
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// path: "/systemlog",
|
||||||
|
// element: <SystemLogPage></SystemLogPage>,
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// path: "/admin",
|
||||||
|
// element: <AdminLayout></AdminLayout>,
|
||||||
|
// children:adminRoute.children
|
||||||
|
// },
|
||||||
|
|
||||||
|
|
||||||
|
// ],
|
||||||
|
// },
|
||||||
|
|
||||||
|
// ],
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// path: "/login",
|
||||||
|
// breadcrumb: "登录",
|
||||||
|
// element: <LoginPage></LoginPage>,
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
|
index: true,
|
||||||
path: "/",
|
path: "/",
|
||||||
|
element:<DeptSettingPage></DeptSettingPage>,
|
||||||
errorElement: <ErrorPage />,
|
errorElement: <ErrorPage />,
|
||||||
handle: {
|
}
|
||||||
crumb() {
|
|
||||||
return <Link to={"/"}>主页</Link>;
|
|
||||||
},
|
|
||||||
},
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
element: <MainLayout></MainLayout>,
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
index: true,
|
|
||||||
element:<Dashboard></Dashboard>,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: "/staffinformation",
|
|
||||||
element: <StaffInformation></StaffInformation>,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: "/staff",
|
|
||||||
element: <StaffMessage></StaffMessage>,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: "/systemlog",
|
|
||||||
element: <SystemLogPage></SystemLogPage>,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: "/admin",
|
|
||||||
element: <AdminLayout></AdminLayout>,
|
|
||||||
children:adminRoute.children
|
|
||||||
},
|
|
||||||
|
|
||||||
],
|
|
||||||
},
|
|
||||||
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: "/login",
|
|
||||||
breadcrumb: "登录",
|
|
||||||
element: <LoginPage></LoginPage>,
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
export const router = createBrowserRouter(routes);
|
export const router = createBrowserRouter(routes);
|
||||||
|
|
|
@ -154,8 +154,6 @@ export const trainSituationDetailSelect: Prisma.TrainSituationSelect = {
|
||||||
name: true,
|
name: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
age: true,
|
|
||||||
sex: true,
|
|
||||||
absent: true,
|
absent: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -173,8 +171,6 @@ export const staffDetailSelect: Prisma.StaffSelect = {
|
||||||
username: true,
|
username: true,
|
||||||
deptId: true,
|
deptId: true,
|
||||||
avatar: true,
|
avatar: true,
|
||||||
age: true,
|
|
||||||
sex: true,
|
|
||||||
absent: true,
|
absent: true,
|
||||||
trainSituations:{
|
trainSituations:{
|
||||||
select:{
|
select:{
|
||||||
|
|
16990
pnpm-lock.yaml
16990
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue