updated format code & eslint rule
This commit is contained in:
parent
67c6810def
commit
8a31554f38
102 changed files with 6271 additions and 6164 deletions
|
|
@ -1,44 +1,47 @@
|
|||
/**config api */
|
||||
import { ref } from "vue"
|
||||
import { ref } from "vue";
|
||||
|
||||
const env = ref<string>(process.env.NODE_ENV || "development")
|
||||
export const apiUrlConfig = import.meta.env.VITE_API_URI_CONFIG
|
||||
export const apiUrlConfigPublish = import.meta.env.VITE_API_PUBLISH_URL
|
||||
const env = ref<string>(process.env.NODE_ENV || "development");
|
||||
export const apiUrlConfig = import.meta.env.VITE_API_URI_CONFIG;
|
||||
export const apiUrlConfigPublish = import.meta.env.VITE_API_PUBLISH_URL;
|
||||
|
||||
// if (process.env.VUE_APP_TEST) {
|
||||
// env = "test";
|
||||
// }
|
||||
const config = ref<any>({
|
||||
development: {
|
||||
// API_URI: "https://localhost:7260/api",
|
||||
API_URI: "https://bma-ehr.frappet.synology.me/api/v1",
|
||||
API_URL_SUPPORT: "https://bma-ehr.frappet.synology.me/api/v1/support",
|
||||
MEET_URI: "meet.frappet.com",
|
||||
LINK_EVALUATE_PUBLISH: "https://bma-ehr-publish.frappet.synology.me",
|
||||
},
|
||||
test: {
|
||||
API_URI: "http://localhost:5010/api/v1",
|
||||
MEET_URI: "meet.frappet.com",
|
||||
},
|
||||
production: {
|
||||
API_URI: apiUrlConfig,
|
||||
API_URL_SUPPORT: `${apiUrlConfig}/support`,
|
||||
API_URI_ORG_TREE: "https://s3cluster.frappet.com/bma-ehr-fpt/organization/strueture/tree_20230707_115124.json",
|
||||
MEET_URI: "meet.frappet.com",
|
||||
LINK_EVALUATE_PUBLISH: apiUrlConfigPublish,
|
||||
},
|
||||
})
|
||||
development: {
|
||||
// API_URI: "https://localhost:7260/api",
|
||||
API_URI: "https://bma-ehr.frappet.synology.me/api/v1",
|
||||
API_URL_SUPPORT: "https://bma-ehr.frappet.synology.me/api/v1/support",
|
||||
MEET_URI: "meet.frappet.com",
|
||||
LINK_EVALUATE_PUBLISH: "https://bma-ehr-publish.frappet.synology.me",
|
||||
},
|
||||
test: {
|
||||
API_URI: "http://localhost:5010/api/v1",
|
||||
MEET_URI: "meet.frappet.com",
|
||||
},
|
||||
production: {
|
||||
API_URI: apiUrlConfig,
|
||||
API_URL_SUPPORT: `${apiUrlConfig}/support`,
|
||||
API_URI_ORG_TREE:
|
||||
"https://s3cluster.frappet.com/bma-ehr-fpt/organization/strueture/tree_20230707_115124.json",
|
||||
MEET_URI: "meet.frappet.com",
|
||||
LINK_EVALUATE_PUBLISH: apiUrlConfigPublish,
|
||||
},
|
||||
});
|
||||
|
||||
const API_URI = ref<string>(config.value[env.value].API_URI)
|
||||
const API_URL_SUPPORT = ref<string>(config.value[env.value].API_URL_SUPPORT)
|
||||
const MEET_URI = ref<string>(config.value[env.value].MEET_URI)
|
||||
const LINK_EVALUATE_PUBLISH = ref<string>(config.value[env.value].LINK_EVALUATE_PUBLISH)
|
||||
const API_URI = ref<string>(config.value[env.value].API_URI);
|
||||
const API_URL_SUPPORT = ref<string>(config.value[env.value].API_URL_SUPPORT);
|
||||
const MEET_URI = ref<string>(config.value[env.value].MEET_URI);
|
||||
const LINK_EVALUATE_PUBLISH = ref<string>(
|
||||
config.value[env.value].LINK_EVALUATE_PUBLISH
|
||||
);
|
||||
|
||||
export default {
|
||||
env: env.value,
|
||||
config: config.value,
|
||||
API_URI: API_URI.value,
|
||||
API_URL_SUPPORT: API_URL_SUPPORT.value,
|
||||
MEET_URI: MEET_URI.value,
|
||||
LINK_EVALUATE_PUBLISH: LINK_EVALUATE_PUBLISH.value,
|
||||
}
|
||||
env: env.value,
|
||||
config: config.value,
|
||||
API_URI: API_URI.value,
|
||||
API_URL_SUPPORT: API_URL_SUPPORT.value,
|
||||
MEET_URI: MEET_URI.value,
|
||||
LINK_EVALUATE_PUBLISH: LINK_EVALUATE_PUBLISH.value,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3,11 +3,10 @@ const probation = `${env.API_URI}/probation`;
|
|||
const org = `${env.API_URI}/org`;
|
||||
const kpiCapacity = `${env.API_URI}/kpi/capacity`;
|
||||
|
||||
|
||||
const reportProbation = `${env.API_URI}/report/probation`;
|
||||
export default {
|
||||
probationMain:(id:string)=>`${probation}/assign/probation-assign-list?personal_id=${id}`,
|
||||
|
||||
probationMain: (id: string) =>
|
||||
`${probation}/assign/probation-assign-list?personal_id=${id}`,
|
||||
|
||||
orgProfilePlacement: (id: string) => `${org}/profile/placement/${id}`,
|
||||
calculateDate: () => `${probation}/calculate/assign-finish`,
|
||||
|
|
@ -55,6 +54,6 @@ export default {
|
|||
`${probation}/evaluate-record/create/commander?assign_id=${id}`,
|
||||
reportEvaluateRecord1: (type: string, id: string) =>
|
||||
`${reportProbation}/14/${type}/${id}`,
|
||||
|
||||
kpiCapacity
|
||||
|
||||
kpiCapacity,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,5 +7,6 @@ const developmentSalaryFile = `${env.API_URI}/salary/file`;
|
|||
export default {
|
||||
developmentScholarshipReport,
|
||||
developmentScholarship: `${development}/scholarship`,
|
||||
developmentSalaryFile: (name: string, group: string, id: string) => `${developmentSalaryFile}/${name}/${group}/${id}`,
|
||||
developmentSalaryFile: (name: string, group: string, id: string) =>
|
||||
`${developmentSalaryFile}/${name}/${group}/${id}`,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,13 +1,11 @@
|
|||
/**
|
||||
* API Structure + Org Chart
|
||||
*/
|
||||
import env from "../index"
|
||||
|
||||
const tttt = `${env.API_URI}/test`
|
||||
import env from "../index";
|
||||
|
||||
const tttt = `${env.API_URI}/test`;
|
||||
|
||||
export default {
|
||||
gettttt: `${tttt}`,
|
||||
puttttt: (id: string) => `${tttt}/${id}`,
|
||||
|
||||
}
|
||||
gettttt: `${tttt}`,
|
||||
puttttt: (id: string) => `${tttt}/${id}`,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import env from "../index"
|
||||
import env from "../index";
|
||||
|
||||
const placementTransfer = `${env.API_URI}/placement`
|
||||
const placementTransfer = `${env.API_URI}/placement`;
|
||||
|
||||
export default {
|
||||
listUserTransfer: () => `${placementTransfer}/transfer/user`,
|
||||
listtransfer: () => `${placementTransfer}/transfer`,
|
||||
transferByid: (id: string) => `${placementTransfer}/transfer/user/${id}`,
|
||||
}
|
||||
listUserTransfer: () => `${placementTransfer}/transfer/user`,
|
||||
listtransfer: () => `${placementTransfer}/transfer`,
|
||||
transferByid: (id: string) => `${placementTransfer}/transfer/user/${id}`,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue