Browse Source

生成标签

master_hella_20240701
wangyufei 5 months ago
parent
commit
ffb76f94fc
  1. 5
      src/components/TableForm/src/TableForm.vue
  2. 1
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

5
src/components/TableForm/src/TableForm.vue

@ -316,7 +316,7 @@
</el-table-column>
</el-table>
<!-- :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:page-size="pageSize"
:small="true"
@ -542,8 +542,7 @@ const buttonOperationClick = (row, label, index)=> {
const currentPage =ref(1)
const pageSize = ref(10)
const showTableData = ()=>{
console.log('props.tableData',props.tableData)
if(props.tableData.length>100){
if(props.tableData.length>10){
return props.tableData.slice((currentPage.value-1)*pageSize.value,currentPage.value*pageSize.value)
}else{
return props.tableData

1
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -821,6 +821,7 @@ const formLabelRef = ref()
const { tableObject: detatableData, tableMethods: detatableMethods } =useTable({
getListApi: SupplierdeliverRequestDetailApi.getSupplierdeliverRequestDetailPage
})
detatableData.pageSize = 500
const { getList:getDetailList } = detatableMethods

Loading…
Cancel
Save