| | |
| | | }, |
| | | created(){ |
| | | this.dataForm.id = this.$route.query.id |
| | | this.resultVal = this.$route.query.resultVal |
| | | console.log("aa--",this.resultVal); |
| | | this.resultVal = this.$route.params.resultVal |
| | | if(this.resultVal == null){ |
| | | let val = sessionStorage.getItem("raw-resultVal-"+this.dataForm.id) |
| | | val == undefined ? null : this.resultVal=val |
| | |
| | | for(var i=0;i<row.testValueList.length;i++){ |
| | | let val = row.testValueList[i] |
| | | let reg = /(^-?[0-9]{1,6}$)|(^-?[0-9]{1,6}[\.]{1}[0-9]{1,3}$)/ |
| | | if(!reg.test(val) && !['是','否'].includes(val)){ |
| | | row.testValueList[i] = null |
| | | this.$message.error("请输入6位数字或选择是否") |
| | | isTrue = false |
| | | if(val.slice(-1)!='.'){ |
| | | if(!reg.test(val) && !['是','否'].includes(val)){ |
| | | row.testValueList[i] = null |
| | | this.$message.error("请输入6位数字或选择是否") |
| | | isTrue = false |
| | | } |
| | | } |
| | | } |
| | | if(!isTrue){ |