From 3a2801eca36541001eeab8b266e7e2b46f18c3a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?= <819653817@qq.com> Date: Wed, 22 May 2024 17:03:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9D=80=E6=97=A0=E6=B3=95=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../safetyinspection/safetyinspection.js | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) 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() {