เเก้ไขส่งข้อมูล ช้ำ
This commit is contained in:
parent
bb1a67bddc
commit
a6f76328db
1 changed files with 3 additions and 0 deletions
|
|
@ -1201,7 +1201,9 @@ const clickSave = async () => {
|
|||
// * บันทึกเพิ่มข้อมูล
|
||||
// */
|
||||
const saveData = async () => {
|
||||
formData.leaveYear = (await Number(inputDateLaeaveYear.value)) - 543;
|
||||
const sum = Number(numLeave.value) + Number(numUsedLeave.value);
|
||||
console.log(formData.leaveYear);
|
||||
|
||||
if (profileId.value) {
|
||||
showLoader();
|
||||
|
|
@ -1216,6 +1218,7 @@ const saveData = async () => {
|
|||
})
|
||||
.then((res) => {
|
||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
|
||||
modalAdd.value = false;
|
||||
})
|
||||
.catch((e) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue