fix bug
This commit is contained in:
parent
13e44d7c45
commit
7a54b6d9b2
7 changed files with 271 additions and 4 deletions
70
src/api/14_KPI/api.KPI.ts
Normal file
70
src/api/14_KPI/api.KPI.ts
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
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 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 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`;
|
||||
|
||||
const kpiGroup = `${env.API_URI}/kpi/group`;
|
||||
const kpiLink = `${env.API_URI}/kpi/link`;
|
||||
|
||||
export default {
|
||||
KPI,
|
||||
kpiUserEvaluation,
|
||||
/** รอบการประเมินผล*/
|
||||
kpiPeriod,
|
||||
kpiPeriodById: (id: string) => `${kpiPeriod}/${id}`,
|
||||
|
||||
kpiEvaluation,
|
||||
kpiPlan,
|
||||
kpiPlanById: (id: string) => `${kpiPlan}/${id}`,
|
||||
|
||||
/** role */
|
||||
kpiRole,
|
||||
kpiRoleMainList: `${KPI}/role`,
|
||||
|
||||
kpiSpecial,
|
||||
kpiCapacity,
|
||||
KpiFile: KpiFile,
|
||||
|
||||
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}`,
|
||||
|
||||
kpiGroup,
|
||||
kpiGroupById: (id: string) => `${kpiGroup}/${id}`,
|
||||
|
||||
/** สมรรถนะ */
|
||||
|
||||
kpiLink,
|
||||
|
||||
profilePosition: () => `${env.API_URI}/org/profile/keycloak/position`,
|
||||
};
|
||||
51
src/api/15_development/api.development.ts
Normal file
51
src/api/15_development/api.development.ts
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
import env from "../index";
|
||||
const development = `${env.API_URI}/development`;
|
||||
const developmentOrg = `${env.API_URI}/org`;
|
||||
const devScholarship = `${env.API_URI}/development/scholarship`;
|
||||
const developmentReport = `${env.API_URI}/development/report`;
|
||||
const devStrategy = `${env.API_URI}/development/strategy`;
|
||||
export default {
|
||||
development,
|
||||
/** history */
|
||||
developmentHistoryList: (type: string) =>
|
||||
`${development}/history/${type}/filter`,
|
||||
developmentHistoryListByid: (type: string, id: string) =>
|
||||
`${development}/history/${type}/${id}`,
|
||||
developmentHistoryAdd: (type: string) => `${development}/history/${type}`,
|
||||
developmentProjectSearch: () => `${development}/main/search`,
|
||||
developmentHistoryListOrg: (type: string, year: number) =>
|
||||
`${development}/history/${type}/org/${year}`,
|
||||
|
||||
/** history employee */
|
||||
developmentProjectSearchEmployee: () => `${developmentOrg}/profile-employee/`,
|
||||
|
||||
/** รายการโครงการ*/
|
||||
developmentMain: `${development}/main`,
|
||||
developmentMainById: (id: string) => `${development}/main/${id}`,
|
||||
developmentMainTab: (tab: string, id: string) =>
|
||||
`${development}/main/${tab}/${id}`,
|
||||
|
||||
/** ทุนการศึกษา/ฝึกอบรม*/
|
||||
devScholarship,
|
||||
devScholarshipByid: (id: string) => `${devScholarship}/${id}`,
|
||||
devScholarshipStatus: (id: string, status: string) =>
|
||||
`${devScholarship}/status/${id}/${status}`,
|
||||
|
||||
/** download File */
|
||||
developmentReportMain: () => `${developmentReport}/main`,
|
||||
developmentReportHistory: () => `${developmentReport}/history-officer`,
|
||||
developmentReportHistoryOfficer: () =>
|
||||
`${developmentReport}/history-employee`,
|
||||
developmentReportScholarship: () => `${developmentReport}/scholarship`,
|
||||
|
||||
// ปิดโครงการ
|
||||
developmentMainFinish: (id: string) => `${development}/main/finish/${id}`,
|
||||
// ข้อมูล status ของโครงการ
|
||||
developmentMainStatus: (id: string) => `${development}/main/status/${id}`,
|
||||
|
||||
/** โครงการ tab ข้อมูลเบื้องต้น */
|
||||
developmentBasicInfoById: (id: string) => `${development}/main/tab1/${id}`,
|
||||
|
||||
/**API ยุทธศาสตร์*/
|
||||
devStrategy,
|
||||
};
|
||||
|
|
@ -2,8 +2,8 @@
|
|||
import { ref } from "vue"
|
||||
|
||||
const env = ref<string>(process.env.NODE_ENV || "development")
|
||||
// export const apiUrlConfigPublish = import.meta.env.VITE_API_PUBLISH_URL;
|
||||
// export const apiUrlConfigReport = import.meta.env.VITE_API_REPORT_URL;
|
||||
export const apiUrlConfigPublish = import.meta.env.VITE_API_PUBLISH_URL;
|
||||
export const apiUrlConfigReport = import.meta.env.VITE_API_REPORT_URL;
|
||||
// if (process.env.VUE_APP_TEST) {
|
||||
// env = "test";
|
||||
// }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue