| | |
| | | this.units = res.data |
| | | }) |
| | | }, |
| | | methodChange(val) { |
| | | this.$refs.sampleTable.doLayout() |
| | | methodChange(val, row) { |
| | | this.getProductLoad = true |
| | | this.$axios.post(this.$api.standardTree.selectStandardProductList, { |
| | | model: this.addObj.model, |
| | |
| | | res.data.forEach(a => { |
| | | a.state = 1 |
| | | }) |
| | | this.sampleIds.forEach(a => { |
| | | for (var b in this.sampleList) { |
| | | if (this.sampleList[b].id == a) { |
| | | this.sampleList[b].standardMethodListId = val |
| | | this.sampleList[b].insProduct = this.HaveJson(res.data) |
| | | } |
| | | } |
| | | }) |
| | | row.insProduct = this.HaveJson(res.data) |
| | | this.getProductLoad = false |
| | | this.productList = [] |
| | | this.$refs.sampleTable.setCurrentRow() |