From 24ed93db078552ffcd9a3eae95bee42b75164879 Mon Sep 17 00:00:00 2001 From: value <z1292839451@163.com> Date: 星期二, 04 六月 2024 01:26:07 +0800 Subject: [PATCH] 部分功能小调整 --- src/components/do/b1-ins-order/fiberoptic-config.vue | 34 +++++++++++++++++++++------------- 1 files changed, 21 insertions(+), 13 deletions(-) diff --git a/src/components/do/b1-ins-order/fiberoptic-config.vue b/src/components/do/b1-ins-order/fiberoptic-config.vue index 98a4a92..8d55493 100644 --- a/src/components/do/b1-ins-order/fiberoptic-config.vue +++ b/src/components/do/b1-ins-order/fiberoptic-config.vue @@ -289,7 +289,7 @@ } }) this.models = this.models.replace(',', '') - this.packageInfo.ismiers = this.models.split(',').every(e=>e.indexOf('d')>-1) + this.packageInfo.ismiers = this.models.split(',').every(e=>(e.indexOf('d')>-1||e.indexOf('D'))) if(this.sample[0].bushing === undefined || this.sample[0].bushing === null){ this.bushing = [] }else{ @@ -546,19 +546,27 @@ }) }, rowClickFiber(row, column, event,type){ - if(type==0){ - let standard = this.miresStandards.find(a => a.id == this.miresStandard) - if(standard&&standard.code=='濮旀墭瑕佹眰'){ - this.isAskOnlyRead = false; + if(this.active===1){ + if(type==0){ + let standard = null; + try{ + standard = this.miresStandards.find(a => a.id == this.miresStandards) + }catch(e){} + if(standard&&standard.code=='濮旀墭瑕佹眰'){ + this.isAskOnlyRead = false; + }else{ + this.isAskOnlyRead = true; + } }else{ - this.isAskOnlyRead = true; - } - }else{ - let standard = this.mireStandards.find(a => a.id == this.mireStandard) - if(standard&&standard.code=='濮旀墭瑕佹眰'){ - this.isAskOnlyRead = false; - }else{ - this.isAskOnlyRead = true; + let standard = null; + try{ + standard = this.mireStandards.find(a => a.id == this.mireStandard) + }catch(e){} + if(standard&&standard.code=='濮旀墭瑕佹眰'){ + this.isAskOnlyRead = false; + }else{ + this.isAskOnlyRead = true; + } } } this.currentDetectionItems = row -- Gitblit v1.9.3