| | |
| | | name: null |
| | | }, // node点击保存当前点击数据 |
| | | clickSelectDevice: { |
| | | index: "", // 点击选择存储当前行索引 |
| | | rpId: "" // 点击选择存储当前行项目Id |
| | | index: null, // 点击选择存储当前行索引 |
| | | rpId: null // 点击选择存储当前行项目Id |
| | | } |
| | | }; |
| | | }, |
| | |
| | | } |
| | | }).then(res => { |
| | | this.materialOptions = res.data; |
| | | if(this.materialOptions.length===1){ |
| | | this.$message({ |
| | | message: '该项目下只有一个试验设备,无需选择!', |
| | | type: 'warning' |
| | | }); |
| | | return |
| | | } |
| | | row.isSelectDevice = true |
| | | this.filterText = row.did |
| | | }); |
| | | }, |
| | | // 点击表格选择触发 |
| | | clickTableSelect(scope) { |
| | | scope.row.isSelectDevice = true |
| | | // this.centerDialogVisible = true; |
| | | if(this.clickSelectDevice.index!=null){ |
| | | this.$set(this.inspectionItems[this.clickSelectDevice.index],'isSelectDevice',false) |
| | | } |
| | | this.clickSelectDevice.index = scope.$index; |
| | | this.clickSelectDevice.rpId = scope.row.id; |
| | | this.getOptions(scope.row); |