diff --git a/src/config/route.js b/src/config/route.js index 080c015e..84d54760 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -1882,7 +1882,7 @@ const routes = [ "meta": { "title": "到岗记录", "icon": "el-icon-check", - "perms": ["attendance_record"] + "perms": ["attendance"] }, "component": "hrm/attendance" }, @@ -1892,7 +1892,7 @@ const routes = [ "meta": { "title": "绩效考核", "icon": "el-icon-check", - "perms": ["attendance_record"] + "perms": ["kpi"] }, "component": "hrm/performance" }, @@ -1903,7 +1903,7 @@ const routes = [ "title": "相关证书", "icon": "el-icon-menu", "hidden": true, - "perms": ["employee"] + "perms": ["certificate"] }, "component": "hrm/certificate" diff --git a/src/views/hrm/attendance_form.vue b/src/views/hrm/attendance_form.vue index 72e3044d..ef57313b 100644 --- a/src/views/hrm/attendance_form.vue +++ b/src/views/hrm/attendance_form.vue @@ -169,13 +169,7 @@ export default { methods: { getShiftOptions() { this.$API.system.dept.list.req({ page: 0, type: 'dept' }).then(res => { - let data = []; - res.forEach(item => { - if (item.parent == '3423856735881117696') { - data.push(item) - } - }); - this.deptOptions = data; + this.deptOptions = res; }); this.$API.mtm.shift.list.req({ page: 0 }).then(res => { this.shiftOptions = res; diff --git a/src/views/hrm/team_photon.vue b/src/views/hrm/team_photon.vue index d705dc4a..60066829 100644 --- a/src/views/hrm/team_photon.vue +++ b/src/views/hrm/team_photon.vue @@ -133,14 +133,7 @@ import memberDialog from "./team_form.vue"; //部门数据 getDeptData() { this.$API.system.dept.list.req({ page: 0,type:'dept'}).then(res=>{ - let data = []; - res.forEach(item => { - if(item.parent=='3423856735881117696'){ - data.push(item) - } - }); - console.log(data) - this.deptData = data; + this.deptData = res; }); }, //添加班组