diff --git a/src/api/05_placement/api.placement.ts b/src/api/05_placement/api.placement.ts index bd9f76127..62f8615d1 100644 --- a/src/api/05_placement/api.placement.ts +++ b/src/api/05_placement/api.placement.ts @@ -1,6 +1,18 @@ -/** - * api บรรจุ แต่งตั้ง ย้าย โอน - */ -import env from "../index"; +import env from "../index" +const placement = `${env.API_URI}/Placement/placement` +const orgTree = `${env.API_URI_ORG_TREE}`; -export default {}; +export default { + MainDetail: (year: number) => `${placement}/exam/${year}`, + yearOptions: () => `${placement}/fiscal`, + redirectToPage: (examId: string) => `${placement}/pass/${examId}`, + disclaimF: () => `${placement}/pass/disclaim`, + deferment: () => `${placement}/pass/deferment`, + getStatCard: (examId: string) => `${placement}/pass/stat/${examId}`, + getDatapersonal: (id: string) => `${placement}/personal/${id}`, + putProperty: (id: string) => `${placement}/property/${id}`, + orgTree: orgTree, + placementPass: () => `${placement}/pass`, + placementDefermentInfo: (id: string) => `${placement}/pass/deferment/${id}`, + placementDisclaimInfo: (id: string) => `${placement}/pass/disclaim/${id}`, +}; \ No newline at end of file diff --git a/src/api/index.ts b/src/api/index.ts index c72de70d1..2643e3217 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -8,7 +8,7 @@ const env = ref(process.env.NODE_ENV || "development"); const config = ref({ development: { - // API_URI: "https://localhost:7006/api/v1", + // API_URI: "https://localhost:7260/api", API_URI: "https://bma-ehr.frappet.synology.me/api/v1", // API_URI_ORG_SERVICE: "https://localhost:7056/api/v1", //ใช้ชั่วคราว API_URI_ORG_SERVICE: "https://bma-ehr.frappet.synology.me/api/v1", //ใช้ชั่วคราว @@ -20,6 +20,8 @@ const config = ref({ API_CANDIDATE_URI: "https://bma-ehr.frappet.synology.me/api/v1", // API_REPORT_URI: "https://localhost:7187/api/v1", API_REPORT_URI: "https://bma-ehr.frappet.synology.me/api/v1", + API_URI_ORG_TREE: + "https://s3cluster.frappet.com/bma-ehr-fpt/organization/strueture/tree_20230712_172702.json", MEET_URI: "meet.frappet.com", }, test: { @@ -36,6 +38,8 @@ const config = ref({ API_URI_PROFILE_SERVICE: `${window.location.protocol}//${window.location.host}/api/v1`, API_CANDIDATE_URI: `${window.location.protocol}//${window.location.host}/api/v1`, API_REPORT_URI: `${window.location.protocol}//${window.location.host}/api/v1`, + API_URI_ORG_TREE: + "https://s3cluster.frappet.com/bma-ehr-fpt/organization/strueture/tree_20230707_115124.json", MEET_URI: "meet.frappet.com", }, }); @@ -55,6 +59,7 @@ const MEET_URI = ref(config.value[env.value].MEET_URI); const API_URI_PROFILE_SERVICE = ref( config.value[env.value].API_URI_PROFILE_SERVICE ); +const API_URI_ORG_TREE = ref(config.value[env.value].API_URI_ORG_TREE); export default { env: env.value, @@ -65,5 +70,6 @@ export default { API_URI_ORG_SERVICE: API_URI_ORG_SERVICE.value, API_URI_ORG_EMPLOYEE_SERVICE: API_URI_ORG_EMPLOYEE_SERVICE.value, API_URI_PROFILE_SERVICE: API_URI_PROFILE_SERVICE.value, + API_URI_ORG_TREE: API_URI_ORG_TREE.value, MEET_URI: MEET_URI.value, }; diff --git a/src/modules/01_metadata/components/positionEmployee/Group.vue b/src/modules/01_metadata/components/positionEmployee/Group.vue index 00c538863..7d8f70425 100644 --- a/src/modules/01_metadata/components/positionEmployee/Group.vue +++ b/src/modules/01_metadata/components/positionEmployee/Group.vue @@ -437,7 +437,7 @@ const fetchHistory = async () => { .catch((e) => { messageError($q, e); }) - .finally(async () => { + .finally(() => { hideLoader(); }); }; diff --git a/src/modules/04_registry/components/Record.vue b/src/modules/04_registry/components/Record.vue index a32e0f07f..37ad44982 100644 --- a/src/modules/04_registry/components/Record.vue +++ b/src/modules/04_registry/components/Record.vue @@ -309,9 +309,7 @@ const tittleHistory = ref( ); const filterHistory = ref(""); //search data table history const modalHistory = ref(false); //modal ประวัติการแก้ไขข้อมูล -const profileId = ref( - route.params.id ? route.params.id.toString() : "" -); +const profileId = ref(route.params.id ? route.params.id.toString():''); const checkValidate = ref(false); //validate data ผ่านหรือไม่ const rows = ref([]); const filter = ref(""); //search data table @@ -480,7 +478,7 @@ onMounted(async () => { }); const fetchData = async () => { - if (profileId.value) { + if (profileId.value!='') { loaderPage(true); await http .get(config.API.profileNopaidId(profileId.value)) diff --git a/src/modules/05_placement/components/Main.vue b/src/modules/05_placement/components/Main.vue index 7098a4a3c..f72ff76a7 100644 --- a/src/modules/05_placement/components/Main.vue +++ b/src/modules/05_placement/components/Main.vue @@ -1,21 +1,21 @@ diff --git a/src/modules/05_placement/components/pass/DialogAppoint.vue b/src/modules/05_placement/components/pass/DialogAppoint.vue deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/modules/05_placement/components/pass/DialogFooter.vue b/src/modules/05_placement/components/pass/DialogFooter.vue index dab4dfa0c..d2358bb75 100644 --- a/src/modules/05_placement/components/pass/DialogFooter.vue +++ b/src/modules/05_placement/components/pass/DialogFooter.vue @@ -29,9 +29,9 @@ const emit = defineEmits([ const updateEdit = (value: Boolean) => { emit("update:editvisible", value); }; -const cancel = async () => { - props.cancel(); -}; +// const cancel = async () => { +// props.cancel(); +// }; const edit = async () => { updateEdit(!props.editvisible); props.edit(); diff --git a/src/modules/05_placement/components/pass/OrgTree.vue b/src/modules/05_placement/components/pass/OrgTree.vue new file mode 100644 index 000000000..7aba3b1ec --- /dev/null +++ b/src/modules/05_placement/components/pass/OrgTree.vue @@ -0,0 +1,503 @@ + + + + + \ No newline at end of file diff --git a/src/modules/05_placement/components/pass/Table.vue b/src/modules/05_placement/components/pass/Table.vue index e4cbf2fdd..9ca780db6 100644 --- a/src/modules/05_placement/components/pass/Table.vue +++ b/src/modules/05_placement/components/pass/Table.vue @@ -1,20 +1,15 @@ +