fixing bug
This commit is contained in:
parent
1680f26414
commit
dcfe03737b
3 changed files with 6 additions and 4 deletions
|
|
@ -184,7 +184,7 @@ async function searchInput() {
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
const data = res.data.result;
|
const data = res.data.result;
|
||||||
const list = data.map((e: ResponsePreson) => ({
|
const list = data.map((e: ResponsePreson) => ({
|
||||||
personId: e.personId,
|
personId: e.id,
|
||||||
idcard: e.idcard,
|
idcard: e.idcard,
|
||||||
prefix: e.prefix,
|
prefix: e.prefix,
|
||||||
firstName: e.firstName,
|
firstName: e.firstName,
|
||||||
|
|
@ -249,6 +249,7 @@ watch(props.data, async () => {
|
||||||
formData.qualification = props.data.qualification;
|
formData.qualification = props.data.qualification;
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<form @submit.prevent.stop="onValidate">
|
<form @submit.prevent.stop="onValidate">
|
||||||
<q-card bordered>
|
<q-card bordered>
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,8 @@ interface typeOp {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ResponsePreson {
|
interface ResponsePreson {
|
||||||
personId: string; //id อ้างอิง profile
|
id?: string; //id อ้างอิง profile
|
||||||
|
personId?: string; //id อ้างอิง profile
|
||||||
idcard: string; //เลขประจำตัวประชาชน
|
idcard: string; //เลขประจำตัวประชาชน
|
||||||
prefix: string; //คำนำหน้า
|
prefix: string; //คำนำหน้า
|
||||||
firstName: string; //ชื่อ
|
firstName: string; //ชื่อ
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ import type {
|
||||||
} from "@/modules/11_discipline/interface/request/director";
|
} from "@/modules/11_discipline/interface/request/director";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
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 modalPersonal = ref<boolean>(false);
|
||||||
const personId = ref<string>("");
|
const personId = ref<string>("");
|
||||||
|
|
@ -207,7 +207,7 @@ async function searchInput() {
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
const data = res.data.result;
|
const data = res.data.result;
|
||||||
const list = data.map((e: ResponsePreson) => ({
|
const list = data.map((e: ResponsePreson) => ({
|
||||||
personId: e.personId,
|
personId: e.id,
|
||||||
idcard: e.idcard,
|
idcard: e.idcard,
|
||||||
prefix: e.prefix,
|
prefix: e.prefix,
|
||||||
firstName: e.firstName,
|
firstName: e.firstName,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue