| | |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="inspectionValue" v-for="(item, index) in empiricalValueAdd" :key="index" |
| | | <el-table-column prop="inspectionValue" :key="index" |
| | | label="检验描述" width="240" style="text-align: center;"> |
| | | <template slot-scope="scope"> |
| | | <el-col v-if="scope.row.itype === '1'"> |
| | |
| | | }) |
| | | }, |
| | | updateDevice(row,index){ |
| | | updateDeviceById({equiomentId:row.eId,fpid:row.iId}).then(res=>{ |
| | | let rowId=JSON.stringify(row.iid) |
| | | console.log(row); |
| | | updateDeviceById({deviceId:row.eId,fpid:row.iid}).then(res=>{ |
| | | this.inspectionItems.forEach(obj=>{ |
| | | if(obj.children){ |
| | | obj.children[index-1].inspectionValue = '' |
| | | 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='' |
| | | } |
| | | }) |
| | | |
| | | } |
| | | // if(obj.children){ |
| | | // obj.children[index-1].inspectionValue = '' |
| | | // obj.children[index-1].iresult = null |
| | | // obj.children[index-1].empiricalValueAddss = [] |
| | | // obj.children[index-1].inote='' |
| | | |
| | | // } |
| | | }) |
| | | }).catch(error=>{ |
| | | console.log(error) |
| | |
| | | return |
| | | } |
| | | let obj = { |
| | | equiomentId: row.eId, |
| | | deviceId: row.eId, |
| | | fpid: row.iid, |
| | | inspectionValue: str, |
| | | note : row.inote |