| | |
| | | this.$refs.machinerySelect.showFlag = true; |
| | | }, |
| | | //设备资源选择回调 |
| | | onMachineryAdd(rows){ |
| | | if(rows !=null && rows.length >0){ |
| | | rows.forEach(row => { |
| | | row.planId = this.planId; |
| | | addInspectionPlanArchives(row).then(response =>{ |
| | | this.getList(); |
| | | }); |
| | | }); |
| | | // onMachineryAdd(rows){ |
| | | // if(rows !=null && rows.length >0){ |
| | | // rows.forEach(row => { |
| | | // row.planId = this.planId; |
| | | // addInspectionPlanArchives(row).then(response =>{ |
| | | // this.getList(); |
| | | // }); |
| | | // }); |
| | | // } |
| | | // }, |
| | | onMachineryAdd(selectedRows){ |
| | | if(selectedRows !=null && selectedRows.length >0){ |
| | | this.checkmachineryList.spareField1 = this.planCode |
| | | this.checkmachineryList = selectedRows |
| | | console.log(this.checkmachineryList) |
| | | } |
| | | }, |
| | | /** 删除按钮操作 */ |