This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-11-22 14:03:32 +07:00
parent 0023e22fb9
commit 1e4dd426f3
5 changed files with 8 additions and 5 deletions

View file

@ -316,10 +316,11 @@ async function getData() {
function onClickOpenDialog() { function onClickOpenDialog() {
if (!informaData.value) return; if (!informaData.value) return;
modal.value = true; modal.value = true;
id.value = informaData.value.id; id.value = informaData.value.id;
age.value = calculateAge(informaData.value.birthDate); age.value = calculateAge(informaData.value.birthDate);
formData.citizenId = informaData.value.citizenId; formData.citizenId = informaData.value.citizenId;
formData.prefix = informaData.value.prefix; formData.prefix = informaData.value.prefixMain;
formData.rank = informaData.value.rank; formData.rank = informaData.value.rank;
formData.firstName = informaData.value.firstName; formData.firstName = informaData.value.firstName;
formData.lastName = informaData.value.lastName; formData.lastName = informaData.value.lastName;

View file

@ -461,7 +461,7 @@ onMounted(async () => {
icon="add" icon="add"
@click=" @click="
() => { () => {
changeNameData.prefix = profileInfo?.prefix; changeNameData.prefix = profileInfo?.prefixMain;
changeNameData.firstName = profileInfo?.firstName; changeNameData.firstName = profileInfo?.firstName;
changeNameData.lastName = profileInfo?.lastName; changeNameData.lastName = profileInfo?.lastName;
prefixChange = changeNameData.prefix; prefixChange = changeNameData.prefix;
@ -496,7 +496,6 @@ onMounted(async () => {
outlined outlined
emit-value emit-value
map-options map-options
options-dense options-dense
option-value="name" option-value="name"
style="min-width: 140px" style="min-width: 140px"

View file

@ -1,5 +1,5 @@
interface RequestObject { interface RequestObject {
birthDate: Date | null | string; birthDate: Date | null;
bloodGroup: string | null; bloodGroup: string | null;
citizenId: string; citizenId: string;
// email: string | null; // email: string | null;
@ -15,6 +15,7 @@ interface RequestObject {
relationship?: string | null; relationship?: string | null;
religion?: string | null; religion?: string | null;
phone?: string | null; phone?: string | null;
prefixMain: string;
// telephoneNumber: string | null; // telephoneNumber: string | null;
} }

View file

@ -27,7 +27,7 @@ interface DataPerson {
} }
interface DataRequest { interface DataRequest {
createdAt: string|Date; createdAt: string | Date;
createdFullName?: string; createdFullName?: string;
detail: string; detail: string;
fullname: string; fullname: string;
@ -117,6 +117,7 @@ interface DataProfile {
posTypeName: string; posTypeName: string;
posTypeRank: number; posTypeRank: number;
}; };
prefixMain: string;
} }
interface DataLeave { interface DataLeave {

View file

@ -32,6 +32,7 @@ interface ResponseObject {
relationship: string | null; relationship: string | null;
religion: string | null; religion: string | null;
telephoneNumber: string | null; telephoneNumber: string | null;
prefixMain: string;
} }
interface Religion { interface Religion {