| | |
| | | }) |
| | | }, |
| | | updateDevice(row, index) { |
| | | let father=row.father |
| | | let rowId=JSON.stringify(row.iid) |
| | | updateDeviceBypppId({ deviceId: row.eId, ppid: row.iid }).then(res => { |
| | | this.inspectionItems.forEach(obj => { |
| | | console.log(obj); |
| | | if (obj.children&&obj.father==father) { |
| | | obj.children[index - 1].inspectionValue = null |
| | | obj.children[index - 1].iresult = null |
| | | obj.children[index - 1].empiricalValueAddss = [] |
| | | obj.children[index-1].inote='' |
| | | } |
| | | obj.children.forEach(c=>{ |
| | | if(c.iid==rowId){ |
| | | c.inspectionValue = null |
| | | c.iresult = null |
| | | c.empiricalValueAddss = [] |
| | | c.inote='' |
| | | } |
| | | }) |
| | | }) |
| | | }).catch(error => { |
| | | console.log(error) |