From eaeea1771ccbb8858d4d4b79de288f447ad907f2 Mon Sep 17 00:00:00 2001 From: "zyx.net" Date: Fri, 7 Apr 2023 10:40:19 +0800 Subject: [PATCH] =?UTF-8?q?OTA=E8=BD=A6=E8=BE=86=E5=8A=A8=E5=8A=9B?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E8=81=94=E5=8A=A8=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/upgradetargetmodel.vue | 55 +++++---- .../components/basicInformation.vue | 110 ++++++++++++------ 2 files changed, 108 insertions(+), 57 deletions(-) diff --git a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue index 9d41e58d0..f710986ec 100644 --- a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue +++ b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue @@ -124,23 +124,33 @@
- - - {{ item }} - - + + + + + + + + +
- - {{ item }} - + + {{ item.text }} +
@@ -342,15 +352,20 @@ export default { }, changeSelect(target) { this.form.dllx2 = undefined - if (target == '传统动力汽车') { - this.projectNameList2 = ['汽油', '柴油'] - } else if (target == '节能汽车') { - this.projectNameList2 = ['混合动力', '天然气', '甲醇', '其他'] - } else if (target == '新能源汽车') { - this.projectNameList2 = ['纯电动', '插电式混合动力', '燃料电池'] - } else { - this.projectNameList2 = ['其他'] - } + let list = [] + getAction('sys/dict/getDictItems/vehicle_dynamic_type1', { }).then((res) => { + if (res.success) { + res.result.forEach((item,index) => { + let w = item.value + let a = w.indexOf("-") + let l = w.substring(0,a) + if(target == l){ + list.push(item) + } + }) + this.projectNameList2 = list + } + }) }, changeId(value, option) { diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue index c2e3ff857..033d29d32 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue @@ -158,25 +158,38 @@
- - - {{ item }} - - + + + + + + + +
- {{ item }} - + :key="item.value" + :value="item.value"> + {{ item.text }} + + + + + + + +
@@ -242,6 +255,7 @@ import { message } from 'ant-design-vue' projectNameList:[], formRules:[], flag:'', + dictCodedllx:'', url: { exportData: '/ota/otaBaCxJbxx/exportData', importZipUrl: '/ota/otaBaCxJbxx/importData?otaId=' + localStorage.getItem('otaId'),//导入 @@ -405,32 +419,54 @@ import { message } from 'ant-design-vue' }, changeSelect(target){ this.form.dllx2=undefined - if(target =='传统动力汽车'){ - this. projectNameList2=['汽油','柴油'] - }else if (target =='节能汽车'){ - this. projectNameList2=['混合动力','天然气','甲醇','其他'] - }else if (target =='新能源汽车'){ - this. projectNameList2=['纯电动','插电式混合动力','燃料电池'] - }else{ - this. projectNameList2=['其他'] - } + let list = [] + getAction('sys/dict/getDictItems/vehicle_dynamic_type1', { }).then((res) => { + if (res.success) { + res.result.forEach((item,index) => { + let w = item.value + let a = w.indexOf("-") + let l = w.substring(0,a) + if(target == l){ + list.push(item) + } + }) + this.projectNameList2 = list + } + }) }, 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=['其他'] - } + let list = [] + getAction('sys/dict/getDictItems/vehicle_dynamic_type1', { }).then((res) => { + if (res.success) { + res.result.forEach((item,index) => { + let w = item.value + let a = w.indexOf("-") + let l = w.substring(0,a) + if(this.form.dllx1==undefined){ + this.projectNameList=[] + } + if(this.form.dllx1 == l){ + list.push(item) + } + }) + this.projectNameList2 = list + } + }) + // 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=['其他'] + // } },