YY hace 2 años
padre
commit
ba6d96eb80
Se han modificado 2 ficheros con 13 adiciones y 0 borrados
  1. 10 0
      src/router/module/account.js
  2. 3 0
      src/views/system/module/menus.vue

+ 10 - 0
src/router/module/account.js

@@ -38,5 +38,15 @@ export default [
     path: '/user/personal/detail',
     meta: { title: '信息管理' },
     component: () => import('@/views/user/personal/detail.vue')
+  },
+  {
+    path: '/user/company',
+    meta: { title: '企业用户' },
+    component: () => import('@/views/user/company/index.vue')
+  },
+  {
+    path: '/user/company/detail',
+    meta: { title: '信息管理' },
+    component: () => import('@/views/user/company/detail.vue')
   }
 ];

+ 3 - 0
src/views/system/module/menus.vue

@@ -88,6 +88,8 @@ const fields: Ref<any> = ref([
   { label: '菜单名称', model: 'name' },
   { label: '菜单类型', model: 'type', type: 'select' },
   { label: '父级菜单', model: 'parent_id', type: 'select' },
+  { label: '路由地址', model: 'path' },
+  { label: '组件地址', model: 'component' },
   { label: '顺序', model: 'sort', type: 'number' },
   { label: '图标', model: 'icon', type: 'select' },
   { label: '是否使用', model: 'is_use', type: 'select' },
@@ -177,6 +179,7 @@ const getAllChild = (children) => {
 // 提交保存
 const toSave = async (data) => {
   let res: IQueryResult;
+  delete data.parent_name;
   if (data._id) res = await menusAxios.update(data);
   else res = await menusAxios.create(data);
   if (res.errcode == '0') {