diff --git a/src/modules/04_registry/components/Leave.vue b/src/modules/04_registry/components/Leave.vue index 25cb029ce..fc95812fd 100644 --- a/src/modules/04_registry/components/Leave.vue +++ b/src/modules/04_registry/components/Leave.vue @@ -82,9 +82,7 @@ -
+
{ messageError($q, e); }) .finally(() => { - store.isLoad++ + store.isLoad++; }); } }; @@ -916,18 +914,18 @@ const clickAddLeave = async () => { numLeave.value = 0; numUsedLeave.value = 0; await clickTotal(); - if (rowsTotal.value.length > 0) { - let data: DataOptionLeave[] = []; - rowsTotal.value.map((e: ResponseTotalObject) => { - data.push({ - id: e.typeLeaveId, - name: e.typeLeave, - totalLeave: e.totalLeave, - }); - }); - typeLeaveOption.value = data; - typeLeaveOptionFilter.value = data; - } + // if (rowsTotal.value.length > 0) { + // let data: DataOptionLeave[] = []; + // rowsTotal.value.map((e: ResponseTotalObject) => { + // data.push({ + // id: e.typeLeaveId, + // name: e.typeLeave, + // totalLeave: e.totalLeave, + // }); + // }); + // typeLeaveOption.value = data; + // typeLeaveOptionFilter.value = data; + // } // await addData(); }; @@ -1137,18 +1135,18 @@ const selectData = async (props: DataProps) => { numLeave.value = props.row.numLeave; numUsedLeave.value = props.row.sumLeave; await clickTotal(); - if (rowsTotal.value.length > 0) { - let data: DataOptionLeave[] = []; - rowsTotal.value.map((e: ResponseTotalObject) => { - data.push({ - id: e.typeLeaveId, - name: e.typeLeave, - totalLeave: e.totalLeave, - }); - }); - typeLeaveOption.value = data; - typeLeaveOptionFilter.value = data; - } + // if (rowsTotal.value.length > 0) { + // let data: DataOptionLeave[] = []; + // rowsTotal.value.map((e: ResponseTotalObject) => { + // data.push({ + // id: e.typeLeaveId, + // name: e.typeLeave, + // totalLeave: e.totalLeave, + // }); + // }); + // typeLeaveOption.value = data; + // typeLeaveOptionFilter.value = data; + // } await checkRowPage(); }; @@ -1203,6 +1201,8 @@ const clickTotal = async () => { .get(config.API.profileLeaveTotalId(profileId.value)) .then((res) => { let data = res.data.result; + typeLeaveOption.value = data; + typeLeaveOptionFilter.value = data; data.map((e: ResponseTotalObject) => { rowsTotal.value.push({ typeLeaveId: e.typeLeaveId, diff --git a/src/modules/04_registry/components/Salary.vue b/src/modules/04_registry/components/Salary.vue index 6da94eb80..0e352cf31 100644 --- a/src/modules/04_registry/components/Salary.vue +++ b/src/modules/04_registry/components/Salary.vue @@ -190,7 +190,7 @@
- + /> --> + +
+
+