ปรับโหลด

This commit is contained in:
setthawutttty 2024-11-12 14:04:38 +07:00
parent 83f176bc5e
commit ee9891275f
2 changed files with 9 additions and 12 deletions

View file

@ -217,9 +217,9 @@ const docOption = ref<DataOption2[]>(store.optionTemplateDoc);
/**
* function fetch รายการ ตำแหนงเงนเดอน
*/
function fetchListSalary() {
async function fetchListSalary() {
showLoader();
http
await http
.get(config.API.profileListSalaryNew(profileId.value, empType.value))
.then((res) => {
rows.value = res.data.result;
@ -448,13 +448,13 @@ function onSubmit() {
: config.API.profileSalaryNew(empType.value);
const method = isStatusEdit.value ? "patch" : "post";
await http[method](url, formData);
await onClickCloseDialog();
await fetchListSalary();
success($q, "บันทึกข้อมูลสำเร็จ");
await onClickCloseDialog();
} catch (e) {
messageError($q, e);
hideLoader()
} finally {
hideLoader();
}
});
}