ปรับระบบวินัยให้ใช้ข้อมูลทะเบียนประวัติใหม่

This commit is contained in:
Warunee Tamkoo 2024-05-23 17:20:19 +07:00
parent 4c01e5aa0d
commit 573eaff2ec
7 changed files with 320 additions and 293 deletions

View file

@ -118,11 +118,11 @@ async function searchInput() {
keyword: search.value,
};
await http
.post(config.API.searchPersonal(), body)
.post(config.API.orgSearchPersonal(), body)
.then((res) => {
const data = res.data.result;
const list = data.map((e: ResponsePreson) => ({
personId: e.personId,
const list = data.map((e: any) => ({
personId: e.id,
idcard: e.idcard,
prefix: e.prefix,
firstName: e.firstName,
@ -130,8 +130,8 @@ async function searchInput() {
name: `${e.prefix}${e.firstName} ${e.lastName}`,
posNo: e.posNo ?? "-",
position: e.position ?? "-",
positionLevel: e.positionLevel ?? "-",
salary: e.salaries ?? "-",
positionLevel: e.positionLevelName ?? "-",
salary: e.salary ?? "-",
organization: e.organization ?? "-",
phone: e.phone ?? "-",
email: e.email ?? "-",
@ -206,17 +206,17 @@ watch(
label="คำค้น"
:rules="[(val) => !!val || `กรุณากรอกคำค้น`]"
>
<template v-slot:after>
<q-btn
color="primary"
icon="search"
label="ค้นหา"
outline
class="full-width q-py-sm q-px-md"
@click="searchInput()"
>
</q-btn>
</template>
<template v-slot:after>
<q-btn
color="primary"
icon="search"
label="ค้นหา"
outline
class="full-width q-py-sm q-px-md"
@click="searchInput()"
>
</q-btn>
</template>
</q-input>
</div>
</div>