|
@ -235,14 +235,26 @@ Page({ |
|
|
*/ |
|
|
*/ |
|
|
onPullDownRefresh() { |
|
|
onPullDownRefresh() { |
|
|
let that = this; |
|
|
let that = this; |
|
|
that.setData({ |
|
|
if (that.data.currentTab == '0') { |
|
|
dataList: [], |
|
|
that.setData({ |
|
|
page: 0, //当前页
|
|
|
dataList: [], |
|
|
count: '', //总条数
|
|
|
page: 0, //当前页
|
|
|
}) |
|
|
count: '', //总条数
|
|
|
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(); |
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|