Skip to content

Commit

Permalink
feat: add clear filter for period & search
Browse files Browse the repository at this point in the history
  • Loading branch information
newarifrh committed Jun 27, 2024
1 parent 4b26e3c commit 7eb2418
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/views/contract/ListContractView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<template #default="scope">
<el-tag :type="statusType(scope.row)" effect="dark">{{
statusText(scope.row)
}}</el-tag>
}}</el-tag>
</template>
</el-table-column>

Expand Down Expand Up @@ -236,6 +236,8 @@ const print = () => {
const clearFilter = () => {
contractsTableRef.value!.clearFilter();
search.value = ""
periodSelected.value = null;
};
const clearSelection = () => {
Expand Down
2 changes: 2 additions & 0 deletions src/views/report/ListReportView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ const print = () => {
const clearFilter = () => {
reportsTableRef.value!.clearFilter();
search.value = ""
periodSelected.value = null;
};
const clearSelection = () => {
Expand Down

0 comments on commit 7eb2418

Please sign in to comment.