|
@ -88,9 +88,9 @@ Page({ |
|
|
|
|
|
|
|
|
// 查看详情
|
|
|
// 查看详情
|
|
|
bindDetail(e) { |
|
|
bindDetail(e) { |
|
|
let data = e.currentTarget.dataset.item; |
|
|
let data = JSON.stringify(e.currentTarget.dataset.item); |
|
|
wx.navigateTo({ |
|
|
wx.navigateTo({ |
|
|
url: '/package/inspectionRecord/inspectionRecordDetail/inspectionRecordDetail?data=' + JSON.stringify(data), |
|
|
url: '/package/inspectionRecord/inspectionRecordDetail/inspectionRecordDetail?data=' + encodeURIComponent(data), |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -100,7 +100,6 @@ Page({ |
|
|
let { endTime, startTime, ResList, ResIndex } = that.data; |
|
|
let { endTime, startTime, ResList, ResIndex } = that.data; |
|
|
let sevenYearAgo = moment().subtract(7, 'days').format('YYYY-MM-DD 00:00:00'); |
|
|
let sevenYearAgo = moment().subtract(7, 'days').format('YYYY-MM-DD 00:00:00'); |
|
|
let currentData = moment().startOf('days').format('YYYY-MM-DD 23:59:59'); |
|
|
let currentData = moment().startOf('days').format('YYYY-MM-DD 23:59:59'); |
|
|
console.log(currentData, 'currentData'); |
|
|
|
|
|
let alarm = ResList[ResIndex].value == 'all' ? 'null' : ResList[ResIndex].value == 'normal' ? false : true; |
|
|
let alarm = ResList[ResIndex].value == 'all' ? 'null' : ResList[ResIndex].value == 'normal' ? false : true; |
|
|
wx.showLoading({ |
|
|
wx.showLoading({ |
|
|
title: '加载中' |
|
|
title: '加载中' |
|
|