修改用电查询切换电表数据不更新的问题
This commit is contained in:
parent
1e92bb8bcf
commit
6ad47c47ac
|
@ -1,5 +1,6 @@
|
|||
.d-table {
|
||||
display: table !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
.d-table-row {
|
||||
display: table-row !important;
|
||||
|
|
|
@ -160,7 +160,18 @@ Page({
|
|||
show: false,
|
||||
title: ""
|
||||
}, () => {
|
||||
const { queryType, } = this.data;
|
||||
switch(queryType) {
|
||||
case 1:
|
||||
this.getReadingList();
|
||||
break;
|
||||
case 2:
|
||||
this.getAccountingBalanceList();
|
||||
break;
|
||||
default:
|
||||
this.init();
|
||||
break;
|
||||
}
|
||||
})
|
||||
},
|
||||
onTimeClose() {
|
||||
|
|
|
@ -262,13 +262,12 @@ Page({
|
|||
wx.setStorageSync('meter', {})
|
||||
return;
|
||||
}
|
||||
const storageMeter = wx.getStorageSync('meter');
|
||||
this.setData({
|
||||
meterList: data || [],
|
||||
meter: storageMeter || (data?.[0] || {})
|
||||
meter: (data?.[0] || {})
|
||||
})
|
||||
// if (!storageMeter) {
|
||||
wx.setStorageSync('meter', data?.[0])
|
||||
wx.setStorageSync('meter', data?.[0] || {} )
|
||||
// }
|
||||
},
|
||||
jumpToElectric() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user