diff --git a/src/api/registry/api.profile.ts b/src/api/registry/api.profile.ts index cc49aecba..ad1fdd93f 100644 --- a/src/api/registry/api.profile.ts +++ b/src/api/registry/api.profile.ts @@ -6,7 +6,7 @@ const profile = `${env.API_URI_PROFILE_SERVICE}/profile/`; const report = `${env.API_REPORT_URI}/report/profile/`; const organizationRoot = `${env.API_URI}/profile/organization/list/root`; - +const registryNew = `${env.API_URI}/org/profile/`; export default { /** * api สังกัด ทะเบียนประวัติเงินเดือน @@ -199,5 +199,9 @@ export default { // verify profileVerified: (profileId: string) => `${profile}verified/${profileId}`, - profileVerifiedUnlock: (profileId: string) => `${profile}not-verified/${profileId}`, + profileVerifiedUnlock: (profileId: string) => + `${profile}not-verified/${profileId}`, + + registryNew, + registryNewId: (id: string) => `${registryNew}${id}`, }; diff --git a/src/modules/02_organizationalNew/components/DialogSelectPerson.vue b/src/modules/02_organizationalNew/components/DialogSelectPerson.vue index 63e01a1a8..cc30a5f7d 100644 --- a/src/modules/02_organizationalNew/components/DialogSelectPerson.vue +++ b/src/modules/02_organizationalNew/components/DialogSelectPerson.vue @@ -41,6 +41,8 @@ const levelOpsMain = ref([]); const typeOps = ref([]); const levelOps = ref([]); const dataLevel = ref(); +const selected = ref([]); +const isSit = ref(false); const executiveOps = ref([]); const store = useOrganizational(); const $q = useQuasar(); @@ -338,6 +340,8 @@ function onSubmit() { dialogConfirm( $q, () => { + console.log("ตำแหน่ง==>", selected.value); + console.log("ทับที่==>", isSit); // showLoader(); // http // .post(config.API.createOrganization, formData) @@ -380,7 +384,7 @@ async function searchData() { .post(config.API.orgSearchProfile, reqBody) .then((res) => { console.log(res); - const list = res.data.result.data.map((e) => ({ + const list = res.data.result.data.map((e: any) => ({ id: e.id, citizenId: e.citizenId, name: `${e.prefix + e.firstName + e.lastName}`, @@ -426,6 +430,7 @@ function clearPosition() { formData.positionLevel = ""; } +