- ผูก api ออกคำสั่งให้ครบ loop
- แก้ label
This commit is contained in:
parent
b1c37ad2e0
commit
8f16fadeea
9 changed files with 196 additions and 86 deletions
|
|
@ -29,6 +29,7 @@ const config = ref<any>({
|
|||
// API_PROBATION_URI: "https://ehr.joolsoft.com/v1",
|
||||
API_PROBATION_URI: "https://bmaehr.joolsoft.com/nodeapi/v1",
|
||||
// API_PROBATION_URI: "http://192.168.1.151:7776/v1",
|
||||
API_REPORT2_URI: "https://bma-ehr.frappet.synology.me/api/v2",
|
||||
},
|
||||
test: {
|
||||
API_URI: "http://localhost:5010/api/v1",
|
||||
|
|
@ -50,6 +51,7 @@ const config = ref<any>({
|
|||
MEET_URI: "meet.frappet.com",
|
||||
API_RETIREMENT_URI: `${window.location.protocol}//${window.location.host}/api/v1`,
|
||||
API_PROBATION_URI: "https://bmaehr.joolsoft.com/nodeapi/v1",
|
||||
API_REPORT2_URI: `${window.location.protocol}//${window.location.host}/api/v2`,
|
||||
},
|
||||
});
|
||||
|
||||
|
|
@ -78,6 +80,9 @@ const API_URI_ORG_TREE = ref<string>(config.value[env.value].API_URI_ORG_TREE);
|
|||
const API_PROBATION_URI = ref<string>(
|
||||
config.value[env.value].API_PROBATION_URI
|
||||
);
|
||||
const API_REPORT2_URI = ref<string>(
|
||||
config.value[env.value].API_REPORT2_URI
|
||||
);
|
||||
|
||||
export default {
|
||||
env: env.value,
|
||||
|
|
@ -93,4 +98,5 @@ export default {
|
|||
MEET_URI: MEET_URI.value,
|
||||
API_RETIREMENT_URI: API_RETIREMENT_URI.value,
|
||||
API_PROBATION_URI: API_PROBATION_URI.value,
|
||||
API_REPORT2_URI: API_REPORT2_URI.value,
|
||||
};
|
||||
|
|
|
|||
10
src/api/reports/api.report.ts
Normal file
10
src/api/reports/api.report.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
/**
|
||||
* api รายงานทั้งหมด
|
||||
*/
|
||||
import env from "../index";
|
||||
const reportOrder = `${env.API_REPORT2_URI}/report/order`;
|
||||
|
||||
export default {
|
||||
reportOrderCover: (fileType: string, id: string) => `${reportOrder}/cover/${fileType}/${id}`,
|
||||
reportOrderAttachment: (fileType: string, id: string) => `${reportOrder}/attachment/${fileType}/${id}`,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue