人力资源
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

80 lines
3.2 KiB

'use strict';
const userData = JSON.parse(sessionStorage.getItem('hrUser'));
export const isAuthorized = (authcode) => {
let userInfo = userData || JSON.parse(sessionStorage.getItem('hrUser'));
if (userInfo) {
const { codes } = userInfo
return codes && codes.includes(authcode);
}
}
export const defaultUrl = {
"PERSONNELFILES": {//人员档案
url: 'humanAffairs/archivesCenter/personnelArchives/personnelFiles'
},
"EMPLOYEEINFORMATION": {//员工信息
url: 'humanAffairs/archivesCenter/personnelArchives/employeeInformation'
},
"JOBRATING": {//岗位评级
url: 'humanAffairs/archivesCenter/personnelArchives/positionRating'
},
"DEPARTMENTARCHIVES": {//部门档案
url: 'humanAffairs/archivesCenter/deptArchives/department'
},
"ATTENDANCESTATISTICS": {//出勤统计
url: 'humanAffairs/employeeRelationship/leaveManagement/attendanceStatistics'
},
"LEAVESTATISTICS": {//请假统计
url: 'humanAffairs/employeeRelationship/leaveManagement/leaveStatistics'
},
"OVERTIMESTATISTICS": {//加班统计
url: 'humanAffairs/employeeRelationship/leaveManagement/overtimeStatistics'
},
"EMPLOYEECOMMUNICATIONSTATISTICS": {//员工沟通统计
url: 'humanAffairs/employeeRelationship/communication/employeeCommunication'
},
"APPOINTMENTRECORD": {//任用记录
url: 'humanAffairs/recruit/recruitRecord/appointmentRecords'
},
"SALESPERSONNELDISTRIBUTION": {//销售人员分布
url: 'humanAffairs/recruit/salesStatistics/personnelDistribution'
},
"TRAININGRESOURCEREPOSITORY": {//培训资源储存库
url: 'humanAffairs/train/trainFiles/resourceRepository'
},
"PERSONALTRAININGRECORDS": {//个人培训记录
url: 'humanAffairs/train/trainingManagement/personalTrainRecord'
},
"DEPARTMENTTRAININGRECORDS": {//部门培训记录
url: 'humanAffairs/train/trainingManagement/departmentTrainRecord'
},
"WEEKLYREPORTMANAGEMENT": {//周报管理
url: 'humanAffairs/achievements/basicAction/weeklyManagement'
},
"SALESLOG": {//销售日志
url: 'humanAffairs/achievements/basicAction/saleLog'
},
"ENGINEERINGLOG": {//工程日志
url: 'humanAffairs/achievements/basicAction/pmLog'
},
"EMPLOYEEASSESSMENTDURINGPROBATIONARYPERIOD": {//试用期员工考核
url: 'humanAffairs/achievements/employeeKPI/probationer'
},
"FORMALEMPLOYEEASSESSMENT": {//正式员工考核
url: 'humanAffairs/achievements/employeeKPI/regular'
},
"MIDDLELEVELMONTHLYPROCESSASSESSMENT": {//中层月度过程考核
url: 'humanAffairs/achievements/middleKPI/monthlyProcess'
},
"MIDLEVELQUARTERLYASSESSMENT": {//中层季度考核
url: 'humanAffairs/achievements/middleKPI/quarter'
},
"MONTHLYPROCESSASSESSMENTFORSENIORMANAGEMENT": {//高层月度过程考核
url: 'humanAffairs/achievements/highKPI/highMonthly'
},
"QUARTERLYASSESSMENTOFSENIORMANAGEMENT": {//高层季度考核
url: 'humanAffairs/achievements/highKPI/Highquarter'
},
"REWARDANDPUNISHMENTINFORMATION": {//奖惩信息
url: 'humanAffairs/achievements/penalties/penaltiesRecord'
}
}