| | |
| | | <div class="capacity-scope"> |
| | | <div> |
| | | <el-row class="title"> |
| | | <el-col :span="12"> |
| | | <el-col :span="12" style="text-align: left"> |
| | | <el-radio-group v-model="radio" @input="selectorSwitch" size="medium" fill="#3A7BFA" v-if="select==3"> |
| | | <el-radio-button label="0">检验项目参数</el-radio-button> |
| | | <el-radio-button label="1">检验对象</el-radio-button> |
| | |
| | | obtainItemParameterList() { |
| | | this.$axios.get(this.$api.laboratoryScope.obtainItemParameterList).then(res => { |
| | | let data = [] |
| | | let data0 = [] |
| | | res.data.forEach(a => { |
| | | data.push({ |
| | | label: a.laboratoryName, |
| | | value: a.id |
| | | }) |
| | | data0.push({ |
| | | label: a.laboratoryName, |
| | | value: a.laboratoryName |
| | | }) |
| | | }) |
| | | this.itemParameterData.selectField.laboratory.select = data |
| | | this.itemParameterData.tagField.laboratory.select = data |
| | | this.itemParameterData.selectField.laboratory.select = data0 |
| | | this.itemParameterData.tagField.laboratory.select = data0 |
| | | this.testObjectData.selectField.laboratoryId.select = data |
| | | this.testObjectData.tagField.laboratoryId.select = data |
| | | this.laboratory = data |
| | |
| | | if (power[i].menuMethod == 'selectTestObjectList') { |
| | | select += 2 |
| | | } |
| | | if (this.radio === '0') { |
| | | if (radio === '0') { |
| | | if (power[i].menuMethod == 'upItemParameter') { |
| | | up = true |
| | | } |
| | |
| | | if (power[i].menuMethod == 'addItemParameter') { |
| | | add = true |
| | | } |
| | | |
| | | if (power[i].menuMethod == 'importData') { |
| | | inPower = true |
| | | } |
| | | } else { |
| | | if (power[i].menuMethod == 'upTestObject') { |
| | | up = true |
| | |
| | | if (power[i].menuMethod == 'selectProductListByObjectId') { |
| | | product = true |
| | | } |
| | | if (power[i].menuMethod == 'importData') { |
| | | inPower = true |
| | | } |
| | | } |
| | | } |
| | | if (this.radio === '0') { |
| | | if (radio === '0') { |
| | | if (!del) { |
| | | this.itemParameterData.do.splice(1, 1) |
| | | } |