diff --git a/src/api/05_placement/api.probation.ts b/src/api/05_placement/api.probation.ts index a4f54e3ea..c465ffb1d 100644 --- a/src/api/05_placement/api.probation.ts +++ b/src/api/05_placement/api.probation.ts @@ -34,8 +34,6 @@ export default { changestatusProbations: (personalId: string) => `${evaluate}/report/change-status?personal_id=${personalId}`, - - // probationGetAssignList: (personalId: string) => // `${finish}/probation-assign-list?personal_id=${personalId}`, // clearPosition: (personalId:string) => `${placement}/position/clear/${personalId}` @@ -86,4 +84,6 @@ export default { summaryReportDetail: (id: string) => `${evaluate}/report?assign_id=${id}`, orgProfilePlacement: (id: string) => `${orgProfile}/profile/placement/${id}`, + orgProfileStatus: (profileId: string) => + `${orgProfile}/profile/probation/${profileId}`, }; diff --git a/src/modules/02_organizationalNew/components/DialogFormAgency.vue b/src/modules/02_organizationalNew/components/DialogFormAgency.vue index cce3791da..167b0f1c5 100644 --- a/src/modules/02_organizationalNew/components/DialogFormAgency.vue +++ b/src/modules/02_organizationalNew/components/DialogFormAgency.vue @@ -61,7 +61,10 @@ const orgLevelOptionMain = ref([ { name: "ระดับฝ่าย/กลุ่มงาน", id: "SECTION" }, ]); -const orgLevelSubOptionMain = ref([]); +const orgLevelSubOptionMain = ref([ + { name: "สำนัก/สำนักงาน", id: "OFFICER" }, + { name: "สำนักงานเขต", id: "DISTRICT" }, +]); const orgLevelOption = ref([]); @@ -143,8 +146,7 @@ function onSubmit() { ["org" + type + "PhoneIn"]: formData.orgPhoneIn, ["org" + type + "Fax"]: formData.orgFax, ["org" + type + "Rank"]: formData.orgLevel, - ["org" + type + "RankSub"]: - level.value !== 0 ? formData.orgLevelSub : undefined, + ["org" + type + "RankSub"]: formData.orgLevelSub, [nameId]: rootId, responsibility: formData.responsibility != null ? formData.responsibility : "", @@ -276,7 +278,7 @@ function selectOrgLevele(val: string, status: boolean = true) { switch (val) { case "OFFICE": orgLevelSubOptionMain.value = [ - { name: "ระดับกอง", id: "DIVISION" }, + { name: "กอง", id: "DIVISION" }, { name: "สำนักงาน", id: "OFFICE", @@ -289,7 +291,7 @@ function selectOrgLevele(val: string, status: boolean = true) { break; case "DIVISION": orgLevelSubOptionMain.value = [ - { name: "ระดับส่วน", id: "SECTION" }, + { name: "ส่วน", id: "SECTION" }, { name: "กลุ่มภารกิจ", id: "MISSION", @@ -298,7 +300,7 @@ function selectOrgLevele(val: string, status: boolean = true) { case "SECTION": orgLevelSubOptionMain.value = [ - { name: "ระดับฝ่าย", id: "FACTION" }, + { name: "ฝ่าย", id: "FACTION" }, { name: "กลุ่มงาน", id: "WORK", @@ -419,9 +421,8 @@ function selectOrgLevele(val: string, status: boolean = true) { lazy-rules /> -
+
{ - getpersonalList(); - success($q, "เพิ่มข้อมูลสำเร็จ"); + .then(async () => { + await http + .get(config.API.orgProfileStatus(data.id)) + .then((res) => { + getpersonalList(); + success($q, "เพิ่มข้อมูลสำเร็จ"); + }) + .catch((e) => { + messageError($q, e); + }); }) .catch((e) => { messageError($q, e);