ปรับโหลด

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

@ -34,7 +34,7 @@ const profileId = ref<string>(route.params.id.toString());
/**
* props
*/
const isLeave = defineModel<boolean>("isLeave", {
const isLeave = defineModel<boolean>("isLeave", {
required: true,
});
@ -96,9 +96,9 @@ const formData = reactive<FormEmployment>({
});
/** function fetch ข้อมูลรายการการจ้าง*/
function fetchListEmployment() {
async function fetchListEmployment() {
showLoader();
http
await http
.get(config.API.employmentEmployee(profileId.value))
.then((res) => {
const data = res.data.result;
@ -170,10 +170,9 @@ function onSubmit() {
})
.catch((err) => {
messageError($q, err);
})
.finally(() => {
hideLoader();
});
})
.finally(() => {});
});
}
@ -275,7 +274,6 @@ onMounted(() => {
map-options
:options="columns?.slice(0, 2)"
option-value="name"
style="min-width: 140px"
/>
</div>
@ -474,7 +472,6 @@ onMounted(() => {
map-options
:options="columns"
option-value="name"
style="min-width: 140px"
/>
</div>