diff --git a/subpages/safetyinspection/pages/safetyinspection/safetyinspection.js b/subpages/safetyinspection/pages/safetyinspection/safetyinspection.js index 8bd8fa4..a612a8a 100644 --- a/subpages/safetyinspection/pages/safetyinspection/safetyinspection.js +++ b/subpages/safetyinspection/pages/safetyinspection/safetyinspection.js @@ -303,6 +303,9 @@ handelClickSave(){ remark:this.data.remark, address:"" } + if (!this.data.reviewTime) { + form.reviewTime=null + } console.log(this.data.checkboxOptions.concat(this.data.addHiddenDangeList)) addRecord(form).then(res => { if(res.code == 0){ diff --git a/subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxml b/subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxml index f2f9bb3..ac32554 100644 --- a/subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxml +++ b/subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxml @@ -27,8 +27,7 @@ {{index + checkboxOptionsnumber -}}. {{item.hazardDesc}} + wx:for-item="item"> {{item.hazardDesc}}