fixing bug

This commit is contained in:
Warunee Tamkoo 2024-06-07 12:41:28 +07:00
parent 1680f26414
commit dcfe03737b
3 changed files with 6 additions and 4 deletions

View file

@ -184,7 +184,7 @@ async function searchInput() {
.then((res) => {
const data = res.data.result;
const list = data.map((e: ResponsePreson) => ({
personId: e.personId,
personId: e.id,
idcard: e.idcard,
prefix: e.prefix,
firstName: e.firstName,
@ -249,6 +249,7 @@ watch(props.data, async () => {
formData.qualification = props.data.qualification;
});
</script>
<template>
<form @submit.prevent.stop="onValidate">
<q-card bordered>

View file

@ -33,7 +33,8 @@ interface typeOp {
}
interface ResponsePreson {
personId: string; //id อ้างอิง profile
id?: string; //id อ้างอิง profile
personId?: string; //id อ้างอิง profile
idcard: string; //เลขประจำตัวประชาชน
prefix: string; //คำนำหน้า
firstName: string; //ชื่อ

View file

@ -12,7 +12,7 @@ import type {
} from "@/modules/11_discipline/interface/request/director";
import http from "@/plugins/http";
import config from "@/app.config";
import PopupPersonal from "@/components/Dialogs/PopupPersonal.vue";
import PopupPersonal from "@/components/Dialogs/PopupPersonalNew.vue";
const modalPersonal = ref<boolean>(false);
const personId = ref<string>("");
@ -207,7 +207,7 @@ async function searchInput() {
.then((res) => {
const data = res.data.result;
const list = data.map((e: ResponsePreson) => ({
personId: e.personId,
personId: e.id,
idcard: e.idcard,
prefix: e.prefix,
firstName: e.firstName,