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() {
if (!informaData.value) return;
modal.value = true;
id.value = informaData.value.id;
age.value = calculateAge(informaData.value.birthDate);
formData.citizenId = informaData.value.citizenId;
formData.prefix = informaData.value.prefix;
formData.prefix = informaData.value.prefixMain;
formData.rank = informaData.value.rank;
formData.firstName = informaData.value.firstName;
formData.lastName = informaData.value.lastName;

View file

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

View file

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

View file

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

View file

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