Browse Source

前端sdy

zhongtianhaoyuan 4 năm trước cách đây
mục cha
commit
fd00baa0fb
2 tập tin đã thay đổi với 17 bổ sung49 xóa
  1. 4 4
      src/lang/zh.js
  2. 13 45
      src/views/warehouse/component/router/index.js

+ 4 - 4
src/lang/zh.js

@@ -229,8 +229,6 @@
     voyagePlanAdd: '制定航次计划',
     voyagePlanView: '航行计划',
     voyagePlanList: '航行计划',
-    //仓库管理
-     warehouseManagementlist:'仓库管理',
     
     // 首页
     home: '首页',
@@ -490,6 +488,8 @@
     salesContractAdd: '销售合同添加',
     purchaseContractAdd: '采购合同添加',
     purchaseContractEdit: '采购合同编辑',
+    //仓库管理、
+    warehouseManagementList:'仓库管理',
     // 采购模块
     procurement: '采购管理',
     sparepart: '备件采购',
@@ -4669,8 +4669,8 @@
     purchaseContract: '采购合同',
   },
   //仓库管理
-  Warehouse:{
-    warehouseManagementlist:'仓库管理'
+  warehouseManagement:{
+    warehouseManagementList:'仓库管理'
   },
   // 年度培训
   annualTraining: {

+ 13 - 45
src/views/warehouse/component/router/index.js

@@ -1,58 +1,25 @@
-// import Layout from '@/layout/index';
-
-// const contractManagementRouter = {
-//   path: '/warehouseManagement',
-//   component: Layout,
-//   redirect: '/warehouseManagement',
-//   name: 'warehouseManagement',
-//   alwaysShow: true, // will always show the root menu
-//   meta: {
-//     title: 'warehouseManagement',
-//     module: 'warehouseManagement',
-//     icon: 'cg'
-//   },
-//   children: [
-//     {
-//       path: 'warehouseManagementlist',
-//       component: () =>
-//         import(/* webpackChunkName: "applDetail" */ '@/views/warehouse/list'),
-//       name: 'warehouseManagementlist',
-//       meta: {
-//         title: 'warehouseManagementlist',
-//         shortcutEntrance: 'warehouseManagementlist',
-//         module: 'warehouseManagement.salesContract.warehouseManagementlist',
-//         permissicon: [],
-//         keepAlive: true
-//         // module: 'procurement.sparepart.applDetail'
-//       },
-//       hidden: true
-//     },
-//   ],
-// };
-// export default contractManagementRouter;
 import Layout from '@/layout/index';
-
-const contractManagementRouter = {
+const warehouseManagementRouter = {
   path: '/warehouse',
   component: Layout,
-  redirect: '/warehouse',
-  name: 'warehouse',
+  redirect:  { name: 'warehouseManagementList' },
+  name: 'warehouseManagementList',
   alwaysShow: true, // will always show the root menu
   meta: {
-    title: 'warehouse',
-    module: 'warehouse',
+    title: 'warehouseManagementList',
+    module: 'warehouseManagement',
     icon: 'cg'
   },
   children: [
     {
-      path: 'warehouseManagementlist',
+      path: 'warehouseManagementList',
       component: () =>
-        import(/* webpackChunkName: "applDetail" */ '@/views/warehouse/warehouseManagementlist'),
-      name: 'warehouseManagementlist',
+        import(/* webpackChunkName: "applDetail" */ '@/views/warehouse/warehouseManagementList'),
+      name: 'warehouseManagementList',
       meta: {
-        title: 'warehouseManagementlist',
-        shortcutEntrance: 'warehouse',
-        module: 'warehouse.warehouseManagementlist',
+        title: 'warehouseManagementList',
+        shortcutEntrance: 'warehouseManagementList',
+        module: 'warehouseManagement.warehouseManagementList',
         permissicon: [],
         keepAlive: true
         // module: 'procurement.sparepart.applDetail'
@@ -61,4 +28,5 @@ const contractManagementRouter = {
     },
   ],
 };
-export default contractManagementRouter;
+export default warehouseManagementRouter;
+