| | |
| | | :current-row-key="currentKey" :row-key="record=>record.index" v-if="bushingVisible"> |
| | | <el-table-column type="index" align="center" label="序号" width="70px" :key="Math.random()"> |
| | | </el-table-column> |
| | | <el-table-column prop="color" label="管色标" min-width="110px" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="num2" label="标量" min-width="110px" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="num3" label="测试量" min-width="90px" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="color" label="管色标" min-width="100px" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="standNum" label="标量" min-width="100px" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="testNum" label="测试量" min-width="100px" show-overflow-tooltip></el-table-column> |
| | | </el-table> |
| | | </el-drawer> |
| | | <el-drawer title="样品切换" :visible.sync="sampleVisible" :size="500"> |
| | |
| | | } |
| | | }) |
| | | this.sampleProduct = res.data.sampleProduct |
| | | this.currentSample = this.sampleProduct[0] |
| | | this.currentSample = this.HaveJson(this.sampleProduct[0]) |
| | | this.currentSample.insProduct.forEach(a => { |
| | | this.param[a.id] = { |
| | | insValue: [], |
| | |
| | | } |
| | | }) |
| | | if (this.currentSample.index == undefined) this.currentSample['index'] = 1 |
| | | let bushing = this.currentSample.bushing |
| | | this.loading = false |
| | | // this.handleTableData() |
| | | this.getTableLists(); |
| | |
| | | this.currentFiberOptic = null; |
| | | this.bushing = [] |
| | | this.currentBushing = null; |
| | | if(bushing&&bushing.length>0){ |
| | | this.bushing = bushing |
| | | } |
| | | }) |
| | | }, |
| | | currentTable(val1, val0) { |
| | |
| | | this.currentKey = row.index |
| | | }, |
| | | handleChangeSample(row, column, event) { |
| | | this.currentSample = row; |
| | | this.param = {} |
| | | // 清空光纤配置相关数据 |
| | | this.fiberOpticTape = [] |
| | |
| | | this.currentFiberOptic = null; |
| | | this.bushing = [] |
| | | this.currentBushing = null; |
| | | |
| | | this.currentSample.insProduct = this.HaveJson(row.insProduct) |
| | | this.currentSample.insProduct.forEach(a => { |
| | | this.param[a.id] = { |
| | | insValue: [], |
| | |
| | | insResult: null |
| | | } |
| | | }) |
| | | let bushing = this.currentSample.insProduct.bushing |
| | | let bushing = this.currentSample.bushing |
| | | if(bushing&&bushing.length>0){ |
| | | this.bushing = bushing |
| | | } |
| | |
| | | this.tableList = null; |
| | | this.tableList = [this.tableLists[0]] |
| | | this.currentTable = this.tableLists[0].templateId; |
| | | this.currentSample.insProduct = this.HaveJson(obj.productList) |
| | | this.handleTableData() |
| | | } |
| | | }, |