fix request api search person add body system

This commit is contained in:
Warunee Tamkoo 2025-07-30 15:13:06 +07:00
parent 9cd792e90c
commit a6f7b4e587
9 changed files with 25 additions and 4 deletions

View file

@ -1108,6 +1108,7 @@ onMounted(async () => {
btn-title="เพิ่มรายชื่อผู้ถูกร้องเรียน"
:save="addPerson"
:selected-data="mainStore.rowsAdd"
:system="(route.meta?.Key as string) || undefined"
/>
<PopupPersonal

View file

@ -1029,7 +1029,10 @@ onMounted(async () => {
class="text-center"
>
<q-btn
v-if="props.row.disciplineRejectDoc && props.row.disciplineRejectDoc.length > 0"
v-if="
props.row.disciplineRejectDoc &&
props.row.disciplineRejectDoc.length > 0
"
flat
round
dense
@ -1774,6 +1777,7 @@ onMounted(async () => {
btn-title="เพิ่มรายชื่อผู้ถูกร้องเรียน"
:selected-data="mainStore.rowsAdd"
:save="addPerson"
:system="(route.meta?.Key as string) || undefined"
/>
<DialogDirector

View file

@ -1950,6 +1950,7 @@ onMounted(async () => {
btn-title="เพิ่มรายชื่อผู้ถูกสอบสวน"
:save="addPerson"
:selected-data="mainStore.rowsAdd"
:system="(route.meta?.Key as string) || undefined"
/>
<DialogDirector

View file

@ -2,6 +2,7 @@
import { ref, reactive, watch } from "vue";
import { useQuasar } from "quasar";
import type { QTableProps } from "quasar";
import { useRoute } from "vue-router";
import http from "@/plugins/http";
import config from "@/app.config";
@ -26,6 +27,7 @@ const pagination = ref({
rowsPerPage: 10,
});
const route = useRoute();
const modalPersonal = ref<boolean>(false);
const personId = ref<string>("");
const searchRef = ref<any>(null);
@ -193,6 +195,7 @@ async function getSearch() {
const body = {
fieldName: type.value,
keyword: search.value,
system: (route.meta?.Key as string) || undefined,
};
await http
.post(

View file

@ -540,7 +540,7 @@ onMounted(() => {
}}
</div>
<div v-else>
{{ col.value?col.value:'-' }}
{{ col.value ? col.value : "-" }}
</div>
</q-td>
</q-tr>
@ -766,6 +766,7 @@ onMounted(() => {
:save="addPerson"
:selected-data="mainStore.rowsAdd"
selecetSwitch="single"
:system="(route.meta?.Key as string) || undefined"
/>
<DialogHistory