去除打印,抄表路线支持所有园区,支持部分选择框清除内容
This commit is contained in:
@@ -16,16 +16,45 @@ Page({
|
||||
actionItems: [{
|
||||
name: '详情',
|
||||
value: 'detail'
|
||||
},{
|
||||
name: '确认',
|
||||
value: 'ok'
|
||||
}],
|
||||
}],
|
||||
},
|
||||
showActionMenu(e) {
|
||||
this.setData({
|
||||
currentActionSheet: e.currentTarget.dataset.id
|
||||
});
|
||||
},
|
||||
onClearPark() {
|
||||
const that = this;
|
||||
this.setData({ park: null, parkName: null, meter: null, meterName: null }, () => {
|
||||
loadingFunc(async () => {
|
||||
await that.init()
|
||||
})
|
||||
})
|
||||
},
|
||||
onClearMeter() {
|
||||
const that = this;
|
||||
this.setData({ meter: null, meterName: null }, () => {
|
||||
loadingFunc(async () => {
|
||||
await that.init()
|
||||
})
|
||||
})
|
||||
},
|
||||
onClearType() {
|
||||
const that = this;
|
||||
this.setData({ noticeFlowType: null, noticeFlowTypeName: null }, () => {
|
||||
loadingFunc(async () => {
|
||||
await that.init()
|
||||
})
|
||||
})
|
||||
},
|
||||
onClearStatus() {
|
||||
const that = this;
|
||||
this.setData({ noticeFlowStatus: null, noticeFlowStatusName: null }, () => {
|
||||
loadingFunc(async () => {
|
||||
await that.init()
|
||||
})
|
||||
})
|
||||
},
|
||||
hideActionMenu() {
|
||||
this.setData({
|
||||
currentActionSheet: null
|
||||
@@ -173,11 +202,11 @@ onMenuSelect(e) {
|
||||
return;
|
||||
}
|
||||
this.setData({
|
||||
list: data?.map(item => {
|
||||
list: Array.isArray(data) ? data?.map(item => {
|
||||
item.time = item?.created_at?.slice(0, 10)
|
||||
item.address = item?.target?.meter_data?.address;
|
||||
return item;
|
||||
}),
|
||||
}) : [],
|
||||
totalPage: Math.ceil(total / size),
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user