Przeglądaj źródła

修改菜单布局

Renxy 2 lat temu
rodzic
commit
d0e9a9af0f
3 zmienionych plików z 131 dodań i 79 usunięć
  1. 52 0
      .umirc.ts
  2. 2 2
      src/app.tsx
  3. 77 77
      src/global.less

+ 52 - 0
.umirc.ts

@@ -182,6 +182,58 @@ export default defineConfig({
       component: './ManufacturerMng/Firm',
       component: './ManufacturerMng/Firm',
       icon: 'https://gt-digitization.oss-cn-hangzhou.aliyuncs.com/doc/department/2023-04/manufacturerIcon.png',
       icon: 'https://gt-digitization.oss-cn-hangzhou.aliyuncs.com/doc/department/2023-04/manufacturerIcon.png',
     },
     },
+    {
+      name: '工时管理',
+      path: '/workload',
+      icon: 'https://gt-digitization.oss-cn-hangzhou.aliyuncs.com/doc/department/2023-04/manufacturerIcon.png',
+      routes: [
+        {
+          name: '上报工时',
+          path: 'work-hours',
+          component: './PurchaseList/WorkingHours/index',
+        },
+        {
+          name: '审批工时',
+          path: 'work-hours-auth',
+          component: './PurchaseList/WorkingHours/Auth',
+        },
+        {
+          name: '工时报表',
+          path: '/workload/report',
+          icon: 'https://gt-digitization.oss-cn-hangzhou.aliyuncs.com/doc/department/2023-04/manufacturerIcon.png',
+          routes: [
+            {
+              name: '项目报表',
+              path: 'project',
+              component: './PurchaseList/Report/ProjectTree',
+            },
+            {
+              name: '部门报表',
+              path: 'department',
+              component: './PurchaseList/Report/Department',
+            },
+            { name: '财务报表', path: '/workload/report/finance' },
+          ],
+        },
+      ],
+    },
+    {
+      name: '项目立项',
+      path: '/workload/approval',
+      icon: 'https://gt-digitization.oss-cn-hangzhou.aliyuncs.com/doc/department/2023-04/manufacturerIcon.png',
+      routes: [
+        {
+          name: '项目列表',
+          path: 'list',
+          component: './PurchaseList/Approval/List',
+        },
+        {
+          name: '审核列表',
+          path: 'auth',
+          component: './PurchaseList/Approval/Auth',
+        },
+      ],
+    },
     {
     {
       name: '人日立项',
       name: '人日立项',
       path: '/workload',
       path: '/workload',

+ 2 - 2
src/app.tsx

@@ -55,8 +55,8 @@ export const layout: RunTimeLayoutConfig = (initialState) => {
         colorBgMenuItemSelected: 'rgba(230,243,254,1)',
         colorBgMenuItemSelected: 'rgba(230,243,254,1)',
       },
       },
     },
     },
-    splitMenus: true,
-    fixedHeader: true,
+    // splitMenus: true,
+    // fixedHeader: true,
     fixSiderbar: true,
     fixSiderbar: true,
     rightRender: () => <UserDropdown />,
     rightRender: () => <UserDropdown />,
     logo: logo,
     logo: logo,

+ 77 - 77
src/global.less

@@ -109,83 +109,83 @@ input[type='reset'] {
   margin-inline: 0;
   margin-inline: 0;
   height: 79px;
   height: 79px;
 }
 }
-// .ant-pro-layout .ant-layout-header.ant-pro-layout-header {
-//   background-color: transparent;
-//   height: 79px;
-// }
-// .ant-layout .ant-layout-header {
-//   height: 79px !important;
-//   line-height: 79px !important;
-// }
-// .ant-pro-global-header-logo img {
-//   height: 40px;
-// }
-// .ant-pro-global-header-logo-mix {
-//   margin-left: 62px;
-// }
-
-// .ant-layout-sider {
-//   height: calc(100% - 79px) !important;
-//   inset-block-start: 79px !important;
-//   background-size: 132% 100% !important;
-//   background-image: url(@/assets/SideMenu/background.png) !important;
-// }
-
-// .ant-menu-title-content {
-//   font-size: 18px;
-//   color: #e8f7fc;
-// }
-
-// .ant-pro-base-menu-icon {
-//   height: 20px;
-//   width: 20px;
-// }
-// .ant-pro-base-menu-item-icon {
-//   margin-right: 10px;
-// }
-
-// .ant-menu-item,
-// .ant-menu-submenu {
-//   margin-top: 15px !important;
-//   margin-bottom: 15px !important;
-// }
-
-// .ant-menu-item,
-// .ant-menu-submenu-title {
-//   border-bottom: 1px solid !important;
-//   border-image: linear-gradient(#3e6ab4, #5bbdfa) 2 2 2 2 !important;
-// }
-
-// .ant-menu-sub {
-//   margin-left: 32px !important;
-//   .ant-menu-item {
-//     margin-top: 10px !important;
-//     margin-bottom: 10px !important;
-//   }
-  // .ant-menu-title-content {
-  //   font-size: 16px;
-  //   color: #e8f7fc;
-  // }
-// }
-
-// .ant-menu-submenu-arrow {
-//   color: #e8f7fc !important;
-// }
-
-// .ant-menu-item-selected,
-// .ant-pro-base-menu-collapsed
-//   .ant-menu-submenu-selected
-//   > .ant-menu-submenu-title,
-// .ant-menu-item:active {
-//   background-image: url(@/assets/SideMenu/selectedBackground.png);
-//   background-color: transparent !important;
-// }
-
-// .ant-menu-submenu-popup {
-//   .ant-menu {
-//     background-color: #1b366f !important;
-//   }
-// }
+.ant-pro-layout .ant-layout-header.ant-pro-layout-header {
+  background-color: transparent;
+  height: 79px;
+}
+.ant-layout .ant-layout-header {
+  height: 79px !important;
+  line-height: 79px !important;
+}
+.ant-pro-global-header-logo img {
+  height: 40px;
+}
+.ant-pro-global-header-logo-mix {
+  margin-left: 62px;
+}
+
+.ant-layout-sider {
+  height: calc(100% - 79px) !important;
+  inset-block-start: 79px !important;
+  background-size: 132% 100% !important;
+  background-image: url(@/assets/SideMenu/background.png) !important;
+}
+
+.ant-menu-title-content {
+  font-size: 18px;
+  color: #e8f7fc;
+}
+
+.ant-pro-base-menu-icon {
+  height: 20px;
+  width: 20px;
+}
+.ant-pro-base-menu-item-icon {
+  margin-right: 10px;
+}
+
+.ant-menu-item,
+.ant-menu-submenu {
+  margin-top: 15px !important;
+  margin-bottom: 15px !important;
+}
+
+.ant-menu-item,
+.ant-menu-submenu-title {
+  border-bottom: 1px solid !important;
+  border-image: linear-gradient(#3e6ab4, #5bbdfa) 2 2 2 2 !important;
+}
+
+.ant-menu-sub {
+  margin-left: 32px !important;
+  .ant-menu-item {
+    margin-top: 10px !important;
+    margin-bottom: 10px !important;
+  }
+  .ant-menu-title-content {
+    font-size: 16px;
+    color: #e8f7fc;
+  }
+}
+
+.ant-menu-submenu-arrow {
+  color: #e8f7fc !important;
+}
+
+.ant-menu-item-selected,
+.ant-pro-base-menu-collapsed
+  .ant-menu-submenu-selected
+  > .ant-menu-submenu-title,
+.ant-menu-item:active {
+  background-image: url(@/assets/SideMenu/selectedBackground.png);
+  background-color: transparent !important;
+}
+
+.ant-menu-submenu-popup {
+  .ant-menu {
+    background-color: #1b366f !important;
+  }
+}
 ::-webkit-scrollbar {
 ::-webkit-scrollbar {
   width: 12px;
   width: 12px;
   height: 14px;
   height: 14px;