diff --git a/src/modules/06_retirement/components/ListRetirement/TableList.vue b/src/modules/06_retirement/components/ListRetirement/TableList.vue index f8c7f6949..5f6061fee 100644 --- a/src/modules/06_retirement/components/ListRetirement/TableList.vue +++ b/src/modules/06_retirement/components/ListRetirement/TableList.vue @@ -164,11 +164,11 @@ const action = ref(""); onMounted(() => { retireld.value = retireld_params.toString(); console.log(retireld_params); - fecthlistprofile(retireld.value); }); const round = ref(); const typeReport = ref(""); +const statusReport = ref(); // fecthlist const fecthlistprofile = async (id: string) => { showLoader(); @@ -177,6 +177,7 @@ const fecthlistprofile = async (id: string) => { .then((res) => { console.log(res); round.value = res.data.result.round; + statusReport.value = res.data.result.json; typeReport.value = res.data.result.typeReport; rows.value = res.data.result.profile.map((e: any) => ({ id: e.id, @@ -193,6 +194,7 @@ const fecthlistprofile = async (id: string) => { reason: e.reason, remove: e.remove, })); + console.log(statusReport.value); }) .catch((e) => { messageError($q, e); @@ -320,11 +322,11 @@ const visibleNote = computed(() => { // .onCancel(() => {}) // .onDismiss(() => {}); // }; -// const classrow = (prop: any) => { -// if (profileId.value!=='' && prop.profileId === profileId.value) { -// return "color: #26a69a;"; -// } else return ""; -// }; +const classrow = (prop: any) => { + if (profileId.value !== "" && prop.profileId === profileId.value) { + return "color: #26a69a;"; + } else return ""; +}; const paging = ref(true); const pagination = ref({ sortBy: "order", @@ -360,9 +362,10 @@ const paginationLabel = (start: number, end: number, total: number) => { :profile-id="profileId" :UpdateListId="UpdateListId" v-if=" - typeReport == null || typeReport == 'ADD' || typeReport == 'ADD' + statusReport !== true || typeReport == 'ADD' || typeReport == '' " /> + @@ -454,8 +457,14 @@ const paginationLabel = (start: number, end: number, total: number) => { - - + +