Merge branch 'main' of http://113.45.67.59:3003/linfeng/staff_data
This commit is contained in:
commit
5abb19f467
|
@ -96,10 +96,10 @@ export class ShareCodeService {
|
|||
}
|
||||
|
||||
// 标记分享码为已使用
|
||||
await db.shareCode.update({
|
||||
where: { id: shareCode.id },
|
||||
data: { isUsed: true },
|
||||
});
|
||||
// await db.shareCode.update({
|
||||
// where: { id: shareCode.id },
|
||||
// data: { isUsed: true },
|
||||
// });
|
||||
|
||||
// 记录使用日志
|
||||
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
|
||||
| CustomNonIndexRouteObject;
|
||||
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: "/",
|
||||
// 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>,
|
||||
// },
|
||||
{
|
||||
path: "/login",
|
||||
breadcrumb: "登录",
|
||||
element: <LoginPage></LoginPage>,
|
||||
},
|
||||
index: true,
|
||||
path: "/",
|
||||
element:<DeptSettingPage></DeptSettingPage>,
|
||||
errorElement: <ErrorPage />,
|
||||
}
|
||||
];
|
||||
|
||||
export const router = createBrowserRouter(routes);
|
||||
|
|
|
@ -154,8 +154,6 @@ export const trainSituationDetailSelect: Prisma.TrainSituationSelect = {
|
|||
name: true,
|
||||
},
|
||||
},
|
||||
age: true,
|
||||
sex: true,
|
||||
absent: true,
|
||||
},
|
||||
},
|
||||
|
@ -173,8 +171,6 @@ export const staffDetailSelect: Prisma.StaffSelect = {
|
|||
username: true,
|
||||
deptId: true,
|
||||
avatar: true,
|
||||
age: true,
|
||||
sex: true,
|
||||
absent: true,
|
||||
trainSituations:{
|
||||
select:{
|
||||
|
|
16990
pnpm-lock.yaml
16990
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue