เช็คอัพไฟล์ก่อนบันทึกแก้ไขข้อมูล

This commit is contained in:
Kittapath 2024-02-07 08:55:52 +07:00
parent 4b07d2d3d5
commit 954f90a81a

View file

@ -68,9 +68,7 @@
<DialogHeader tittle="เปลี่ยนชื่อ-นามสกุล" :close="clickClose" />
<q-separator />
<q-card-section class="q-p-sm">
<div
class="row col-12 q-col-gutter-x-xs q-col-gutter-y-xs"
>
<div class="row col-12 q-col-gutter-x-xs q-col-gutter-y-xs">
<div class="col-xs-6 col-sm-6 col-md-6">
<selector
:hide-dropdown-icon="!edit"
@ -632,6 +630,7 @@ const clickNext = async () => {
* กดดอมลตอไป
*/
const getData = () => {
fileUpload.value = [];
const row = rows.value[rowIndex.value];
prefixId.value = row.prefixId;
firstName.value = row.firstName;
@ -669,6 +668,7 @@ const clickEdit = () => {
* กดปมเพมดานบน table
*/
const clickAdd = async () => {
fileUpload.value = [];
editRow.value = false;
await addData();
};