updated kpi list & detail
This commit is contained in:
parent
8c829c03bd
commit
bd0835b0f1
32 changed files with 5970 additions and 2034 deletions
|
|
@ -1,41 +1,50 @@
|
|||
import env from "../index";
|
||||
const KPI = `${env.API_URI}/kpi`;
|
||||
const kpiPeriod = `${env.API_URI}/kpi/period`;
|
||||
const kpiEvaluation = `${env.API_URI}/kpi/evaluation`;
|
||||
const kpiUserEvaluation = `${env.API_URI}/kpi/user/evaluation`;
|
||||
const kpiAchievement = `${env.API_URI}/kpi/user/achievement`;
|
||||
const kpiGroup = `${env.API_URI}/kpi/group`;
|
||||
const kpiEvaluation = `${env.API_URI}/kpi/user/evaluation`;
|
||||
const kpiPlan = `${env.API_URI}/kpi/plan`;
|
||||
const kpiRole = `${env.API_URI}/kpi/role`;
|
||||
const kpiSpecial = `${env.API_URI}/kpi/special`;
|
||||
const kpiCapacity = `${env.API_URI}/kpi/capacity`;
|
||||
const kpiLink = `${env.API_URI}/kpi/link`;
|
||||
const KpiUser = `${env.API_URI}/kpi/user`;
|
||||
const KpiCapacity = `${env.API_URI}/kpi/capacity`;
|
||||
const KpiFile = `${env.API_URI}/salary/file`;
|
||||
const KpiEvaluationInfo = `${env.API_URI}/kpi/evaluation`;
|
||||
const Kpiorg = `${env.API_URI}/org/profile/commander`;
|
||||
|
||||
const KpiUser = `${env.API_URI}/kpi/user`;
|
||||
const kpiAchievement = `${env.API_URI}/kpi/user/achievement`;
|
||||
const kpiReason = `${env.API_URI}/kpi/reason`;
|
||||
|
||||
const urlFile = `${env.API_URI}/salary`;
|
||||
|
||||
export default {
|
||||
KPI,
|
||||
/** รอบการประเมินผล*/
|
||||
kpiPeriod,
|
||||
kpiPeriodById: (id: string) => `${kpiPeriod}/${id}`,
|
||||
kpiEvaluation,
|
||||
kpiFile: KpiFile,
|
||||
|
||||
/** role */
|
||||
kpiRoleMainList: `${KPI}/role`,
|
||||
|
||||
kpiGroup,
|
||||
kpiGroupById: (id: string) => `${kpiGroup}/${id}`,
|
||||
kpiPlan,
|
||||
kpiPlanById: (id: string) => `${kpiPlan}/${id}`,
|
||||
kpiRole,
|
||||
kpiSpecial,
|
||||
KpiCapacity,
|
||||
KpiFile: KpiFile,
|
||||
|
||||
/** สมรรถนะ */
|
||||
kpiCapacity,
|
||||
|
||||
kpiLink,
|
||||
|
||||
kpiUserEvaluation,
|
||||
profilePosition: () => `${env.API_URI}/org/profile/keycloak/position`,
|
||||
kpiAchievement: (type: string) => `${kpiAchievement}/${type}`,
|
||||
kpiAchievementPoint: (type: string) => `${kpiAchievement}/${type}/point`,
|
||||
|
||||
kpiScoreTotal: () => `${kpiEvaluation}/point`,
|
||||
|
||||
/** ผลสัมฤทธิ์ของงาน*/
|
||||
fileByFile: (name: string, group: string, id: string, fileName: string) =>
|
||||
`${urlFile}/file/${name}/${group}/${id}/${fileName}`,
|
||||
kpiUserCapacity: `${KpiUser}/capacity`,
|
||||
KpiEvaluationInfo,
|
||||
Kpiorg,
|
||||
kpiEvaluationCheck: `${kpiEvaluation}/check`,
|
||||
kpiSendToStatus: (id: string) => `${kpiEvaluation}/status/${id}`,
|
||||
kpiReqEdit: (id: string) => `${kpiEvaluation}/edit/${id}`,
|
||||
/**ประเมิน*/
|
||||
kpiAchievementDevelop: `${kpiAchievement}/development`,
|
||||
|
||||
kpiCommentP: (typP: string, type: string, role: string, id: string) =>
|
||||
`${kpiReason}/${typP}/${type}/${role}/${id}`,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue