diff --git a/src/api/registry/api.registry.ts b/src/api/registry/api.registry.ts index 60bf53e6a..62ecb17e9 100644 --- a/src/api/registry/api.registry.ts +++ b/src/api/registry/api.registry.ts @@ -6,7 +6,7 @@ const metadata = `${env.API_URI}/org/metadata/`; export default { registryNew: (type: string) => `${registryNew}${type}`, - registryNewOtherSystem: (type: string) => `${registryNew}/otherSystem${type}`, + registryNewOtherSystem: (type: string) => `${registryNew}${type}/otherSystem`, registryNewByProfileId: (profileId: string, type: string) => `${registryNew}${type}/${profileId}`, diff --git a/src/modules/07_insignia/components/2_Manage/Tab1.vue b/src/modules/07_insignia/components/2_Manage/Tab1.vue index 8e088e2fc..65cf5d6ab 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab1.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab1.vue @@ -90,7 +90,11 @@ const dialogWarn = ref(false); const checkboxData = ref([]); const filterOrganizationOP = ref([]); - +const employeeType = ref("officer"); +const employeeTypeOption = ref([ + { id: "officer", name: "ข้าราชการ กทม. สามัญ" }, + { id: "employee", name: "ลูกจ้างประจำ กทม." }, +]); /** หัวตาราง*/ const visibleColumns = ref([ "no", @@ -360,9 +364,14 @@ const filterOption = ref([ async function fecthlistperson() { showLoader(); http - .get(config.API.registryNewOtherSystem(""), { - params: { ...formFilter, nodeId: organization.value }, - }) + .get( + config.API.registryNewOtherSystem( + employeeType.value == "officer" ? `` : `-employee` + ), + { + params: { ...formFilter, nodeId: organization.value }, + } + ) .then((res) => { maxPage.value = Math.ceil(res.data.result.total / formFilter.pageSize); total.value = res.data.result.total; @@ -1370,7 +1379,7 @@ onMounted(async () => { - + @@ -1379,9 +1388,23 @@ onMounted(async () => {
- - -
+
+
+ + +
+
{ emit-value @update:model-value="formFilter.searchKeyword = ''" /> - - -
- + + + + +
+