diff --git a/subpages/safetyinspection/pages/safetyinspection/safetyinspection.js b/subpages/safetyinspection/pages/safetyinspection/safetyinspection.js index 451f745..7df6094 100644 --- a/subpages/safetyinspection/pages/safetyinspection/safetyinspection.js +++ b/subpages/safetyinspection/pages/safetyinspection/safetyinspection.js @@ -380,7 +380,7 @@ if(this.data.checkResultFlag == 0 && !hasHazardStatus1 && this.data.addHiddenDan hiddenDangeList:this.data.checkboxOptions.concat(this.data.addHiddenDangeList), attachmentUrls:this.data.uploadImageList.map(item=>({fileName:item.originFileName,attachmentUrl:item.ossUrl.url})), remark:this.data.remark, - reviewAddress:"" + reviewAddress:this.data.reviewAddress } if(this.data.hazardStatus2){ form.hiddenDangeList.push({hazardDesc:this.data.hazardStatus2,hazardStatus:2}) @@ -388,21 +388,21 @@ if(this.data.checkResultFlag == 0 && !hasHazardStatus1 && this.data.addHiddenDan this.setData({ newContent:null }) -// addRecord(form).then(res => { -// if(res.code == 0){ -// wx.showToast({ -// title: '新增成功', -// duration:2000, -// success:function(){ -// setTimeout(()=>{ -// wx.navigateBack({ -// delta: 1 -// }) -// },2000) -// } -// }) -// } -// }) +addRecord(form).then(res => { + if(res.code == 0){ + wx.showToast({ + title: '新增成功', + duration:2000, + success:function(){ + setTimeout(()=>{ + wx.navigateBack({ + delta: 1 + }) + },2000) + } + }) + } + }) console.log(form); }, chooseImage() {