@@ -417,7 +417,9 @@ | |||
let ruleForm = JSON.parse(JSON.stringify(this.ruleForm)) | |||
ruleForm.inspectLength=0 | |||
this.dataList.map(item=>{ | |||
ruleForm.inspectLength = ruleForm.inspectLength + parseFloat(item.length) | |||
if(item.length){ | |||
ruleForm.inspectLength = ruleForm.inspectLength + parseFloat(item.length) | |||
} | |||
}) | |||
ruleForm.inspectLength = parseFloat(Number(ruleForm.inspectLength).toFixed(4)) | |||
this.ruleForm = Object.assign({}, ruleForm) |