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

@ -46,7 +46,7 @@ export default {
`${profile}search/new-employee/oc/${id}`,
profileSearchNewEmOcLeaveId: (id: string) =>
`${profile}search/new-employee/oc/leave/${id}`,
profileSearchPersonal: () => `${profile}search-personal`,
// profileSearchPersonal: () => `${profile}search-personal`, // ไม่ได้เรียกใช้แล้ว
profileEmployeeTempId: (id: string) => `${profile}employee/temp/${id}`,
profileCoupleId: (profileId: string) => `${profile}couple/${profileId}`,
@ -197,7 +197,7 @@ export default {
employmentHistoryId: (employmentId: string) =>
`${profile}employment/history/${employmentId}`,
searchPersonal: () => `${profile}search-personal`,
// searchPersonal: () => `${profile}search-personal`, // ไม่ได้เรียกใช้แล้ว
//สร้างข้อมูลราชการ
createProfileOfficer: () => `${profile}information/officer`,

View file

@ -92,6 +92,10 @@ const props = defineProps({
type: String,
default: "multiple",
},
system: {
type: String || undefined,
default: "",
},
});
/**ส่งค่ากลับหน้าหลัก */
@ -135,6 +139,7 @@ async function getSearch() {
const body = {
fieldName: type.value,
keyword: search.value ? search.value.trim() : "",
system: props.system ?? undefined,
};
await http
.post(

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

View file

@ -3,6 +3,7 @@ import { ref, reactive, watch, onMounted, computed, type PropType } from "vue";
import { useQuasar } from "quasar";
import http from "@/plugins/http";
import config from "@/app.config";
import { useRoute } from "vue-router";
/**
* importTypr
@ -48,6 +49,7 @@ const props = defineProps({
});
const emit = defineEmits(["formDataReturn"]);
const route = useRoute();
const isReadonly = computed(() => (actionType.value === "VIEW" ? true : false)); //
const modalPersonal = ref<boolean>(false);
const personId = ref<string>("");
@ -173,6 +175,7 @@ function searchInput() {
const body = {
fieldName: type.value,
keyword: search.value ? search.value.trim() : "",
system: (route.meta?.Key as string) || undefined,
};
http
.post(

View file

@ -7,6 +7,7 @@ import config from "@/app.config";
import http from "@/plugins/http";
import { useRouter } from "vue-router";
import { useCounterMixin } from "@/stores/mixin";
import { useRoute } from "vue-router";
import type {
DataOption,
@ -20,6 +21,7 @@ import PopupPersonal from "@/components/Dialogs/PopupPersonalNew.vue";
const $q = useQuasar();
const router = useRouter();
const route = useRoute();
const mixin = useCounterMixin();
const {
showLoader,
@ -237,6 +239,7 @@ async function searchInput(check: boolean) {
const body = {
fieldName: type.value,
keyword: search.value.trim(),
system: (route.meta?.Key as string) || undefined,
};
await http
.post(