Skip to content

Commit

Permalink
fix pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
Wellheor1 committed Oct 17, 2023
1 parent af509a8 commit be79ab2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion l2-frontend/src/construct/ConstructCompany.vue
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@
/>
<VeTable
:columns="columns"
:table-data="examinationList"
:table-data="examListPagination"
row-key-field-name="card_id"
:checkbox-option="checkboxOption"
/>
Expand Down Expand Up @@ -433,6 +433,9 @@ export default {
isNewCompany() {
return !this.editorCompany.pk;
},
examListPagination() {
return this.examinationList.slice((this.page - 1) * this.pageSize, this.page * this.pageSize);
},
},
mounted() {
this.getCompanies();
Expand Down

0 comments on commit be79ab2

Please sign in to comment.