From e41c8ce514dffeb999d737ea8dbda30ab8b60aa0 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期五, 28 六月 2024 10:56:17 +0800 Subject: [PATCH] 优化 --- src/components/view/a5-capacity-scope.vue | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/components/view/a5-capacity-scope.vue b/src/components/view/a5-capacity-scope.vue index 48f9b5e..03e20ff 100644 --- a/src/components/view/a5-capacity-scope.vue +++ b/src/components/view/a5-capacity-scope.vue @@ -441,14 +441,19 @@ 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 @@ -516,7 +521,7 @@ if (power[i].menuMethod == 'selectTestObjectList') { select += 2 } - if (this.radio === '0') { + if (radio === '0') { if (power[i].menuMethod == 'upItemParameter') { up = true } @@ -526,7 +531,9 @@ if (power[i].menuMethod == 'addItemParameter') { add = true } - + if (power[i].menuMethod == 'importData') { + inPower = true + } } else { if (power[i].menuMethod == 'upTestObject') { up = true @@ -540,12 +547,9 @@ 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) } -- Gitblit v1.9.3