Przeglądaj źródła

门墩儿可查看全员猎聘

Xiao_123 6 miesięcy temu
rodzic
commit
1f646949a2

+ 6 - 3
src/layout/company/side.vue

@@ -70,9 +70,10 @@ const getList = (arr, obj = []) => {
     if (element?.meta?.isAdmin) {
       data.isAdmin = true
     }
-    if (element?.meta?.isPersonMap) {
-      data.isPersonMap = true
-    }
+    // 人才地图
+    if (element?.meta?.isPersonMap) data.isPersonMap = true
+    // 全员猎聘
+    if (element?.meta?.hireJob) data.hireJob = true
     if (element?.children) {
       getList(element.children, data.children)
     }
@@ -86,6 +87,8 @@ const getList = (arr, obj = []) => {
   }
   // 人才地图是否可看
   if (info && Object.keys(info).length && !info?.entitlement?.personMap) obj = obj.filter(e => !e.isPersonMap)
+  // 全员猎聘是否可看
+  if (info && Object.keys(info).length && !info?.entitlement?.hireJob) obj = obj.filter(e => !e.hireJob)
   return obj
 }
 

+ 37 - 36
src/router/modules/components/recruit/enterprise.js

@@ -129,42 +129,43 @@ const enterprise = [
       },
     ]
   },
-  // {
-  //   path: '/recruit/enterprise/hirePosition',
-  //   component: Layout,
-  //   name: 'crowdSourcing',
-  //   meta: {
-  //     title: '全员猎聘',
-  //     enName: 'Crowd Sourcing',
-  //     icon: 'mdi-account-star-outline'
-  //   },
-  //   children: [
-  //     {
-  //       path: '/recruit/enterprise/hirePosition',
-  //       show: true,
-  //       meta: {
-  //         title: '全员猎聘'
-  //       },
-  //       component: () => import('@/views/recruit/enterprise/hirePosition/index.vue')
-  //     },
-  //     {
-  //       path: '/recruit/enterprise/hirePosition/add',
-  //       show: true,
-  //       meta: {
-  //         title: '新增职位'
-  //       },
-  //       component: () => import('@/views/recruit/enterprise/hirePosition/components/add.vue')
-  //     },
-  //     {
-  //       path: '/recruit/enterprise/hirePosition/edit',
-  //       show: true,
-  //       meta: {
-  //         title: '职位编辑'
-  //       },
-  //       component: () => import('@/views/recruit/enterprise/hirePosition/components/add.vue')
-  //     }
-  //   ]
-  // },
+  {
+    path: '/recruit/enterprise/hirePosition',
+    component: Layout,
+    name: 'crowdSourcing',
+    meta: {
+      title: '全员猎聘',
+      enName: 'Crowd Sourcing',
+      icon: 'mdi-account-star-outline',
+      hireJob: true
+    },
+    children: [
+      {
+        path: '/recruit/enterprise/hirePosition',
+        show: true,
+        meta: {
+          title: '全员猎聘'
+        },
+        component: () => import('@/views/recruit/enterprise/hirePosition/index.vue')
+      },
+      {
+        path: '/recruit/enterprise/hirePosition/add',
+        show: true,
+        meta: {
+          title: '新增职位'
+        },
+        component: () => import('@/views/recruit/enterprise/hirePosition/components/add.vue')
+      },
+      {
+        path: '/recruit/enterprise/hirePosition/edit',
+        show: true,
+        meta: {
+          title: '职位编辑'
+        },
+        component: () => import('@/views/recruit/enterprise/hirePosition/components/add.vue')
+      }
+    ]
+  },
   {
     path: '/recruit/enterprise/talentMap',
     component: Layout,