修改电量查询分页内容,兼容开票时用户未填写发票信息的问题
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: sticky;
|
||||
z-index: 999 !important;
|
||||
z-index: 999999 !important;
|
||||
}
|
||||
|
||||
.titleContent {
|
||||
|
@@ -154,7 +154,7 @@ Page({
|
||||
alertInfo(message)
|
||||
return;
|
||||
}
|
||||
this.setData({ meterReadingList: data })
|
||||
this.setData({ meterReadingList: data, totalPage: 1 })
|
||||
},
|
||||
async export() {
|
||||
loadingFunc(async () => {
|
||||
@@ -204,7 +204,7 @@ Page({
|
||||
alertInfo(message)
|
||||
return;
|
||||
}
|
||||
this.setData({ accountingList: data })
|
||||
this.setData({ accountingList: data, totalPage: 1 })
|
||||
},
|
||||
async getMeters() {
|
||||
const { id } = wx.getStorageSync('tenement')
|
||||
|
@@ -53,7 +53,7 @@
|
||||
<view class="timeText" wx:else> {{year}} </view>
|
||||
<van-icon name="arrow-down" />
|
||||
</view>
|
||||
<van-button type="info" size="small" bind:click="export"> 导出 </van-button>
|
||||
<!-- <van-button type="info" size="small" bind:click="export"> 导出 </van-button> -->
|
||||
</view>
|
||||
</view>
|
||||
<view wx:elif="{{queryType === 1}}">
|
||||
@@ -72,7 +72,12 @@
|
||||
<view style="margin: 30rpx;">
|
||||
<view wx:if="{{list.length}}">
|
||||
<table header="{{header}}" list="{{list}}" />
|
||||
<pagination currentIndex="{{page}}" totalPage="{{totalPage}}" bind:pagingChange="onChangePage" />
|
||||
<pagination
|
||||
currentIndex="{{page}}"
|
||||
totalPage="{{totalPage}}"
|
||||
bind:pagingChange="onChangePage"
|
||||
wx:if="{{timeType === 0}}"
|
||||
/>
|
||||
</view>
|
||||
<empty bind:refresh="init" wx:else />
|
||||
</view>
|
||||
@@ -112,7 +117,7 @@
|
||||
canvas-id="mychart-bar"
|
||||
ec="{{ ec }}"
|
||||
forceUseOldCanvas="{{false}}"
|
||||
wx:if="{{list.length}}"
|
||||
wx:if="{{list.length && queryType === 0}}"
|
||||
>
|
||||
</echarts>
|
||||
<custom-picker
|
||||
|
Reference in New Issue
Block a user