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