Browse Source

Merge branch 'data-page-V4.3.1' into data-page

data-page-V4.3.1
mk 1 year ago
parent
commit
ca825b6021
  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), 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() {

Loading…
Cancel
Save