Browse Source

地址无法显示

data-page-V4.3.1^2
是小王呀\24601 1 year ago
parent
commit
3a2801eca3
  1. 32
      subpages/safetyinspection/pages/safetyinspection/safetyinspection.js

32
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() {

Loading…
Cancel
Save