From ca8f9cde04735187f88c8a3e67faa8da2db47047 Mon Sep 17 00:00:00 2001 From: yuekuo Date: Thu, 30 Mar 2023 14:27:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E5=8A=9B=E7=B1=BB=E5=9E=8B=E5=8F=AF?= =?UTF-8?q?=E5=88=A0=EF=BC=8C=E5=9B=9E=E6=98=BE=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/basicInformation.vue | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue index e2dbcf92d..27d90dfd9 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue @@ -156,7 +156,7 @@ {{$t('Vehicledynamictype')}} - + @@ -165,7 +165,7 @@ - + @@ -326,6 +326,7 @@ import { message } from 'ant-design-vue' this.form.cpxh=res.result.cpxh this.form.txzd=res.result.txzd this.form.txzd=res.result.txzd + this.form.cdotasj=res.result.cdotasj this.form.id=res.result.id if(this.$route.query.type == 1 && res.result.cxmb == null){ this.form.cxmb = this.form.ggpc+'-'+ this.form.cpmc+'-'+this.form.cpxh @@ -338,8 +339,14 @@ import { message } from 'ant-design-vue' if(res.result.dllx2 == null){ res.result.dllx2 = undefined } + + if(res.result.cplb == null){ + res.result.cplb = undefined + } this.form.dllx1=res.result.dllx1 this.form.dllx2=res.result.dllx2 + this.form.cplb=res.result.cplb + this.getDllx2() // this.changeSelect() this.$forceUpdate() } @@ -366,6 +373,7 @@ import { message } from 'ant-design-vue' if(otaId==null || otaId == undefined){ otaId='' } + postAction('/ota/otaBaCxJbxx/add',{ otaId:otaId,...this.form}).then( res => { if(res.code == 200){ localStorage.setItem('otaId', res.result.otaId) @@ -387,6 +395,24 @@ import { message } from 'ant-design-vue' }else{ this. projectNameList2=['其他'] } + }, + getDllx2(){ + if(this.form.dllx1==undefined){ + this.projectNameList=[] + } + if(this.form.dllx1=='传统动力汽车'){ + this. projectNameList2=['汽油','柴油'] + } + if(this.form.dllx1=='节能汽车'){ + this. projectNameList2=['混合动力','天然气','甲醇','其他'] + } + if(this.form.dllx1=='新能源汽车'){ + this. projectNameList2=['纯电动','插电式混合动力','燃料电池'] + } + if(this.form.dllx1=='其他'){ + this. projectNameList2=['其他'] + } + }, update(){