| | |
| | | <div class="machine-nest-list"> |
| | | <MachineNestTotal @searchNickName="handleSearch" /> |
| | | <div class="content-wrapper"> |
| | | <div |
| | | <!-- <div |
| | | class="table-list" |
| | | v-if="tableList.length > 0" |
| | | infinite-scroll-distance="6" |
| | | v-infinite-scroll="loadMore" |
| | | :infinite-scroll-disabled="busy" |
| | | infinite-scroll-immediate="true" |
| | | > --> |
| | | <div |
| | | class="table-list" |
| | | v-if="tableList.length > 0" |
| | | > |
| | | <div |
| | | :class="[index % 2 === 1 ? 'table-itemeven' : 'table-item']" |
| | |
| | | // 分页参数 |
| | | const pageParams = ref({ |
| | | current: 1, |
| | | size: 8, |
| | | size: 99, |
| | | total: 0, |
| | | }) |
| | | |
| | |
| | | if (res.data.code !== 0) return |
| | | if (res.data.data.records.length === 0) return (isMore.value = false) |
| | | // pageParams.value.current += 1 |
| | | pageParams.value.size += 8 |
| | | // pageParams.value.size += 8 |
| | | tableList.value = res.data.data.records;// [...tableList.value, ...res.data.data.records] |
| | | busy.value = false |
| | | }) |