|
|
@ -275,9 +275,12 @@ Page({ |
|
|
|
Request.post(addPatrolRecord(), data).then(res => { |
|
|
|
wx.showToast({ |
|
|
|
title: '提交成功', |
|
|
|
icon: 'success' |
|
|
|
}) |
|
|
|
that.getPatrolRecord() |
|
|
|
that.bindCancel(); |
|
|
|
setTimeout(() => { |
|
|
|
that.getPatrolRecord() |
|
|
|
}, 1500) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
if (changeTwo == 'normal') { |
|
|
@ -305,9 +308,12 @@ Page({ |
|
|
|
Request.post(addPatrolRecord(), data).then(res => { |
|
|
|
wx.showToast({ |
|
|
|
title: '提交成功', |
|
|
|
icon: 'success' |
|
|
|
}) |
|
|
|
that.getPatrolRecord() |
|
|
|
that.bindCancel(); |
|
|
|
setTimeout(() => { |
|
|
|
that.getPatrolRecord() |
|
|
|
}, 1500) |
|
|
|
}) |
|
|
|
return; |
|
|
|
} |
|
|
@ -329,9 +335,9 @@ Page({ |
|
|
|
title: '加载中' |
|
|
|
}) |
|
|
|
Request.get(getPatrolRecord(dataList.id, 'null', 'null', 'null', pointId)).then(res => { |
|
|
|
wx.hideLoading(); |
|
|
|
dataList.points.map(e => { |
|
|
|
res.map(i => { |
|
|
|
wx.hideLoading(); |
|
|
|
if (i == null) { |
|
|
|
e.lastInspectionTime = moment().format('YYYY-MM-DD'); |
|
|
|
e.inspectionTime = moment().format('YYYY-MM-DD'); |
|
|
|