|
@ -316,7 +316,7 @@ |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
<!-- :page-sizes="[ 10,20, 30, 50, 100]" sizes--> |
|
|
<!-- :page-sizes="[ 10,20, 30, 50, 100]" sizes--> |
|
|
<el-pagination v-show="tableData.length>5" style="margin-top:10px" |
|
|
<el-pagination v-show="tableData.length>10" style="margin-top:10px" |
|
|
v-model:current-page="currentPage" |
|
|
v-model:current-page="currentPage" |
|
|
v-model:page-size="pageSize" |
|
|
v-model:page-size="pageSize" |
|
|
:small="true" |
|
|
:small="true" |
|
@ -542,8 +542,7 @@ const buttonOperationClick = (row, label, index)=> { |
|
|
const currentPage =ref(1) |
|
|
const currentPage =ref(1) |
|
|
const pageSize = ref(10) |
|
|
const pageSize = ref(10) |
|
|
const showTableData = ()=>{ |
|
|
const showTableData = ()=>{ |
|
|
console.log('props.tableData',props.tableData) |
|
|
if(props.tableData.length>10){ |
|
|
if(props.tableData.length>100){ |
|
|
|
|
|
return props.tableData.slice((currentPage.value-1)*pageSize.value,currentPage.value*pageSize.value) |
|
|
return props.tableData.slice((currentPage.value-1)*pageSize.value,currentPage.value*pageSize.value) |
|
|
}else{ |
|
|
}else{ |
|
|
return props.tableData |
|
|
return props.tableData |
|
|