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

Loading…
Cancel
Save