fix: ปรับ api ค้นหาคนครองในโครงสร้างปัจจุบัน แก้ tag ผิด
This commit is contained in:
parent
762acf46bd
commit
2135c01c16
4 changed files with 13 additions and 6 deletions
|
|
@ -57,6 +57,7 @@ export default {
|
||||||
|
|
||||||
/**ครองตำแหน่ง */
|
/**ครองตำแหน่ง */
|
||||||
orgSearchProfile: `${orgProfile}/search`,
|
orgSearchProfile: `${orgProfile}/search`,
|
||||||
|
orgSearchCurrentProfile: `${orgProfile}/search/current/person`,
|
||||||
orgProfile: `${orgPos}/profile`,
|
orgProfile: `${orgPos}/profile`,
|
||||||
orgDeleteProfile: (id: string) => `${orgPos}/profile/delete/${id}`,
|
orgDeleteProfile: (id: string) => `${orgPos}/profile/delete/${id}`,
|
||||||
orgSummary: `${orgPos}/summary`,
|
orgSummary: `${orgPos}/summary`,
|
||||||
|
|
|
||||||
|
|
@ -330,7 +330,12 @@ function searchData() {
|
||||||
keyword: formData.personal, //นามสกุล ชื่อ สกุล เลขบัตร
|
keyword: formData.personal, //นามสกุล ชื่อ สกุล เลขบัตร
|
||||||
};
|
};
|
||||||
http
|
http
|
||||||
.post(config.API.orgSearchProfile, reqBody)
|
.post(
|
||||||
|
store.typeOrganizational === "draft"
|
||||||
|
? config.API.orgSearchProfile
|
||||||
|
: config.API.orgSearchCurrentProfile,
|
||||||
|
reqBody
|
||||||
|
)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
totalPage.value = Math.ceil(res.data.result.total / pageSize.value);
|
totalPage.value = Math.ceil(res.data.result.total / pageSize.value);
|
||||||
const list = res.data.result.data.map((e: SelectPerson) => ({
|
const list = res.data.result.data.map((e: SelectPerson) => ({
|
||||||
|
|
@ -450,7 +455,7 @@ watch(
|
||||||
<template>
|
<template>
|
||||||
<q-dialog v-model="modal" persistent>
|
<q-dialog v-model="modal" persistent>
|
||||||
<q-card style="min-width: 80vw">
|
<q-card style="min-width: 80vw">
|
||||||
<form @submit.prevent="validateForm">
|
<q-form greedy @submit.prevent @validation-success="validateForm">
|
||||||
<DialogHeader :tittle="`เลือกคนครอง`" :close="close" />
|
<DialogHeader :tittle="`เลือกคนครอง`" :close="close" />
|
||||||
<q-separator />
|
<q-separator />
|
||||||
|
|
||||||
|
|
@ -564,6 +569,7 @@ watch(
|
||||||
label="ค้นหาจากชื่อ-นามสกุล หรือเลขประจำตัวประชาชน"
|
label="ค้นหาจากชื่อ-นามสกุล หรือเลขประจำตัวประชาชน"
|
||||||
lazy-rules
|
lazy-rules
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
|
@keydown.enter.prevent="searchData"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-2">
|
<div class="col-2">
|
||||||
|
|
@ -577,6 +583,7 @@ watch(
|
||||||
label="ตำแหน่งในสายงาน"
|
label="ตำแหน่งในสายงาน"
|
||||||
lazy-rules
|
lazy-rules
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
|
@keydown.enter.prevent="searchData"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-2">
|
<div class="col-2">
|
||||||
|
|
@ -650,7 +657,6 @@ watch(
|
||||||
map-options
|
map-options
|
||||||
:options="columnsResult"
|
:options="columnsResult"
|
||||||
option-value="name"
|
option-value="name"
|
||||||
|
|
||||||
style="min-width: 140px"
|
style="min-width: 140px"
|
||||||
class="col-xs-12 col-sm-3 col-md-2"
|
class="col-xs-12 col-sm-3 col-md-2"
|
||||||
/>
|
/>
|
||||||
|
|
@ -746,7 +752,7 @@ watch(
|
||||||
<q-card-actions align="right" class="bg-white text-teal">
|
<q-card-actions align="right" class="bg-white text-teal">
|
||||||
<q-btn type="submit" :label="`ยืนยัน`" color="public" />
|
<q-btn type="submit" :label="`ยืนยัน`" color="public" />
|
||||||
</q-card-actions>
|
</q-card-actions>
|
||||||
</form>
|
</q-form>
|
||||||
</q-card>
|
</q-card>
|
||||||
</q-dialog>
|
</q-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -462,7 +462,7 @@ onMounted(async () => {
|
||||||
<q-tr
|
<q-tr
|
||||||
:props="props"
|
:props="props"
|
||||||
class="cursor-pointer"
|
class="cursor-pointer"
|
||||||
@click.stop,pervent="
|
@click.stop.prevent="
|
||||||
onRedirectToPosition(props.row.id, props.row.type)
|
onRedirectToPosition(props.row.id, props.row.type)
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -687,7 +687,7 @@ function onViewDetailNoti(url: string) {
|
||||||
dense
|
dense
|
||||||
icon="mdi-close"
|
icon="mdi-close"
|
||||||
class="mybtn q-mx-xs"
|
class="mybtn q-mx-xs"
|
||||||
@click.stop.pervent="clickDelete(n.id, index)"
|
@click.stop.prevent="clickDelete(n.id, index)"
|
||||||
></q-btn>
|
></q-btn>
|
||||||
</q-item>
|
</q-item>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue