From 9d907a71c6f035b0c0d9333a925b4ac3d39a65d2 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 6 Feb 2025 11:30:16 +0700 Subject: [PATCH] fix Snap Display --- .../13_salary/components/04_salaryLists/TabMain.vue | 3 +++ .../components/04_salaryLists/TableTypeOther.vue | 11 ++++++++--- .../components/04_salaryLists/TableTypePending.vue | 8 +++++++- .../components/05_salaryListsEmployee/TabMain.vue | 3 +++ .../05_salaryListsEmployee/TableTypeOther.vue | 8 +++++++- .../05_salaryListsEmployee/TableTypePending.vue | 9 ++++++++- src/modules/13_salary/views/04_salaryLists.vue | 1 + .../13_salary/views/05_salaryListsEmployee.vue | 1 + 8 files changed, 38 insertions(+), 6 deletions(-) diff --git a/src/modules/13_salary/components/04_salaryLists/TabMain.vue b/src/modules/13_salary/components/04_salaryLists/TabMain.vue index b606e5192..318c2f068 100644 --- a/src/modules/13_salary/components/04_salaryLists/TabMain.vue +++ b/src/modules/13_salary/components/04_salaryLists/TabMain.vue @@ -34,6 +34,7 @@ const props = defineProps({ rootId: { type: String, require: true }, periodId: { type: String, require: true }, roundFilter: { type: Object, require: true }, + snapShot: { type: String, require: true }, }); const total = ref(); @@ -632,6 +633,7 @@ const updateIsShowRetire = async () => { v-model:formFilter="formFilter" :fetchDataTable="fetchDataPeriodNew" :total="total" + :snap-shot="props?.snapShot" /> { :fetchDataTable="fetchDataPeriodNew" :total="total" :type="item.type" + :snap-shot="props?.snapShot" /> diff --git a/src/modules/13_salary/components/04_salaryLists/TableTypeOther.vue b/src/modules/13_salary/components/04_salaryLists/TableTypeOther.vue index 234588ae6..9b6d9d27f 100644 --- a/src/modules/13_salary/components/04_salaryLists/TableTypeOther.vue +++ b/src/modules/13_salary/components/04_salaryLists/TableTypeOther.vue @@ -29,6 +29,8 @@ const { dialogRemove, messageError, showLoader, hideLoader, success } = /** props*/ const formFilter = defineModel("formFilter", { required: true }); const maxPage = defineModel("maxPage", { required: true }); +const snapShot = defineModel("snapShot"); + const props = defineProps({ rows: { type: Array }, fetchDataTable: { @@ -295,7 +297,11 @@ watch(