This commit is contained in:
Li1304553726 2025-04-08 17:42:16 +08:00
commit 5abb19f467
64 changed files with 7710 additions and 9381 deletions

0
.vscode/settings.json vendored Normal file → Executable file
View File

View File

View File

View File

View File

View File

0
apps/server/src/models/position/dailyTrain.module.ts Normal file → Executable file
View File

0
apps/server/src/models/position/dailyTrain.router.ts Normal file → Executable file
View File

0
apps/server/src/models/position/dailyTrain.service.ts Normal file → Executable file
View File

View File

0
apps/server/src/models/sys-logs/systemLog.module.ts Normal file → Executable file
View File

0
apps/server/src/models/sys-logs/systemLog.router.ts Normal file → Executable file
View File

0
apps/server/src/models/sys-logs/systemLog.service.ts Normal file → Executable file
View File

View File

View File

View File

View File

View File

View File

View File

View File

8
apps/server/src/upload/share-code.service.ts Normal file → Executable file
View File

@ -96,10 +96,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}`);

View File

View File

View File

View File

View File

View File

0
apps/web/src/app/main/admin/deptsettingpage/page.tsx Normal file → Executable file
View File

View File

View File

View File

View File

0
apps/web/src/app/main/daily/page.tsx Normal file → Executable file
View File

0
apps/web/src/app/main/layout/MainHeader.tsx Normal file → Executable file
View File

0
apps/web/src/app/main/layout/MainLayout.tsx Normal file → Executable file
View File

0
apps/web/src/app/main/layout/MainProvider.tsx Normal file → Executable file
View File

0
apps/web/src/app/main/layout/NavigationMenu.tsx Normal file → Executable file
View File

0
apps/web/src/app/main/plan/monthplan/page.tsx Normal file → Executable file
View File

0
apps/web/src/app/main/plan/weekplan/page.tsx Normal file → Executable file
View File

0
apps/web/src/app/main/staffinfo_show/page.tsx Normal file → Executable file
View File

View File

View File

0
apps/web/src/app/main/staffinfo_write/area-options.ts Normal file → Executable file
View File

0
apps/web/src/app/main/staffinfo_write/infoCard.tsx Normal file → Executable file
View File

View File

0
apps/web/src/app/main/systemlog/SystemLogPage.tsx Normal file → Executable file
View File

View File

View File

View File

View File

View File

View File

View File

View File

0
apps/web/src/data/area-options.ts Normal file → Executable file
View File

View File

@ -39,50 +39,57 @@ export type CustomRouteObject =
| CustomIndexRouteObject | CustomIndexRouteObject
| CustomNonIndexRouteObject; | CustomNonIndexRouteObject;
export const routes: CustomRouteObject[] = [ export const routes: CustomRouteObject[] = [
{ // {
path: "/", // path: "/",
errorElement: <ErrorPage />, // errorElement: <ErrorPage />,
handle: { // handle: {
crumb() { // crumb() {
return <Link to={"/"}></Link>; // return <Link to={"/"}>主页</Link>;
}, // },
}, // },
children: [ // children: [
{ // {
element: <MainLayout></MainLayout>, // element: <MainLayout></MainLayout>,
children: [ // 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, index: true,
element:<Dashboard></Dashboard>, path: "/",
}, element:<DeptSettingPage></DeptSettingPage>,
{ errorElement: <ErrorPage />,
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);

0
packages/client/src/api/hooks/useTrainSituation.ts Normal file → Executable file
View File

View File

@ -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:{

0
packages/utils/src/safePrismaQuery.ts Normal file → Executable file
View File

File diff suppressed because it is too large Load Diff