电量查询新增分页

This commit is contained in:
2024-07-25 15:07:29 +08:00
parent 42412cb4ff
commit 5b280a9e9d
5 changed files with 32 additions and 17 deletions

View File

@@ -70,7 +70,10 @@
</view>
<view wx:if="{{queryType === 0}}">
<view style="margin: 30rpx;">
<table header="{{header}}" list="{{list}}" wx:if="{{list.length}}" />
<view wx:if="{{list.length}}">
<table header="{{header}}" list="{{list}}" />
<pagination currentIndex="{{page}}" totalPage="{{totalPage}}" bind:pagingChange="onChangePage" />
</view>
<empty bind:refresh="init" wx:else />
</view>
<view class="sum">
@@ -84,12 +87,13 @@
header="{{meterReadingHeader}}"
list="{{meterReadingList}}"
/>
<pagination currentIndex="{{}}" totalPage="{{}}" />
</view>
<empty bind:refresh="getReadingList" wx:else />
</view>
</view>
<view wx:if="{{queryType === 2}}">
<view style="margin: 30rpx;">