อัตราค่าจ้าง => เพิ่ม title

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-07-05 16:56:13 +07:00
parent 3f43b5456c
commit 5ee1ab2b43

View file

@ -107,15 +107,18 @@ const pagination = ref({
rowsPerPage: formFilter.pageSize,
});
const isActive = ref<boolean>(false);
const groupSalary = ref<string>("");
function fetchDataDetail() {
http
.get(config.API.salaryEmployeeChartByid(salaryEmployeeId.value))
.then((res) => {
isActive.value = res.data.result.isActive;
groupSalary.value = res.data.result.group;
})
.catch((e) => {})
.finally(() => {});
.catch((e) => {
messageError($q, e);
});
}
function fetchSalalyEmployeeRate() {
@ -222,9 +225,9 @@ watch(
}
);
onMounted(() => {
fetchSalalyEmployeeRate();
fetchDataDetail();
onMounted(async () => {
await fetchDataDetail();
await fetchSalalyEmployeeRate();
});
</script>
<template>
@ -240,7 +243,7 @@ onMounted(() => {
class="q-mr-sm"
@click="router.go(-1)"
/>
ตราคาจาง
ตราคาจาง กลมท{{ groupSalary }}
</div>
</div>
<q-card flat bordered class="q-pa-md">