Browse Source

(*) 巡检记录优化

master
liujiangyong 2 years ago
parent
commit
293aa42938
  1. 22
      weapp/package/polling/polling.js

22
weapp/package/polling/polling.js

@ -235,6 +235,7 @@ Page({
*/
onPullDownRefresh() {
let that = this;
if (that.data.currentTab == '0') {
that.setData({
dataList: [],
page: 0, //当前页
@ -243,6 +244,17 @@ Page({
that.getPatrolPlan()
// 手动控制回弹
wx.stopPullDownRefresh();
} else if (that.data.currentTab == '1') {
that.setData({
recordDataList: [],
ResIndex: 0, //巡检结果
startTime: "开始日期", //开始日期
endTime: "结束日期", //结束日期
})
that.getPatrolRecord()
// 手动控制回弹
wx.stopPullDownRefresh();
}
},
/**
@ -264,16 +276,6 @@ Page({
page: page, //更新当前页数
})
_that.getPatrolPlan()
} else if (_that.data.currentTab == '1') {
_that.setData({
recordDataList: [],
ResIndex: 0, //巡检结果
startTime: "开始日期", //开始日期
endTime: "结束日期", //结束日期
})
_that.getPatrolRecord()
// 手动控制回弹
wx.stopPullDownRefresh();
}
},

Loading…
Cancel
Save