| | |
| | | } |
| | | }, |
| | | selectBlur(e){ |
| | | console.log(e,"-----"); |
| | | console.log(e,e.target.tabIndex); |
| | | console.log(e.target.value); |
| | | }, |
| | | changeState(row, index) { |
| | | console.log(row.testValueList); |
| | | return |
| | | this.$nextTick(()=>{ |
| | | if(row){ |
| | | let isTrue = true |
| | |
| | | if (val === undefined || val === '' || val === null) { |
| | | return |
| | | } |
| | | console.log(val); |
| | | console.log(...row.testValueList); |
| | | let obj = { |
| | | deviceId: row.deviceId, |
| | | rpId: row.rpId, |
| | | testValue: val, |
| | | note: row.note |
| | | } |
| | | console.log(obj); |
| | | return |
| | | updateRawInsProduct(obj).then(res => { |
| | | if (res.data.code == 0) { |
| | | this.$message.success("更新成功") |
| | |
| | | let childrenIndex = this.list[i].children.findIndex(el =>{ |
| | | return el.iid == row.iid |
| | | }) |
| | | this.list[i].children.splice(childrenIndex,1) |
| | | if(this.list[i].children.length<2){ |
| | | this.list.splice(i,1) |
| | | }else{ |
| | | this.list[i].children.splice(childrenIndex,1) |
| | | } |
| | | } |
| | | }, |
| | | //添加子项目 |