แก้ ติกเปลี่ยนชื่อออก
เปลี่ยนชื่อ-นามสกุล
This commit is contained in:
parent
fa9953a677
commit
760e44bce0
1 changed files with 14 additions and 1 deletions
|
|
@ -416,6 +416,20 @@ watch(
|
|||
}
|
||||
);
|
||||
|
||||
watch(
|
||||
() => selection.value,
|
||||
() => {
|
||||
if (!selection.value.includes("prefix")) {
|
||||
changeNameData.prefix = prefixChange.value;
|
||||
}
|
||||
if (!selection.value.includes("firstname")) {
|
||||
changeNameData.firstName = firstNameChange.value;
|
||||
}
|
||||
if (!selection.value.includes("lastname")) {
|
||||
changeNameData.lastName = lastNameChange.value;
|
||||
}
|
||||
}
|
||||
);
|
||||
/** ทำงานเมื่อ Components ถูกเรียกใช้งาน*/
|
||||
onMounted(async () => {
|
||||
// เช็ค ตัวเลือก ถ้าไม่มีให้ ดึงข้อมูลใหท่
|
||||
|
|
@ -541,7 +555,6 @@ onMounted(async () => {
|
|||
<q-form @submit.prevent greedy @validation-success="onSubmit()">
|
||||
<dialog-header tittle="เปลี่ยนชื่อ-นามสกุล" :close="closeDialog" />
|
||||
<q-separator />
|
||||
|
||||
<q-card-section>
|
||||
<div class="row q-mb-sm">
|
||||
<div class="col-12">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue