From d1547e947b74f8eb653d982e7976a75c2e632bd0 Mon Sep 17 00:00:00 2001 From: yuekuo Date: Fri, 31 Mar 2023 15:34:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/upgradetargetmodel.vue | 14 +++++--------- .../components/basicInformation.vue | 1 - 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue index 9a0a26e79..14eeebd40 100644 --- a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue +++ b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue @@ -231,6 +231,7 @@ export default { } else { this.form = res.result + this.form.otaId='' if (this.$route.query.type == 1 && res.result.cxmb == null) { this.form.cxmb = this.form.babh + '-' + this.form.bapc + '-' + this.form.cpxh } else { @@ -261,17 +262,12 @@ export default { }) }, save() { - let otaId = localStorage.getItem('otaId') - if (otaId == null) { - otaId = '' - } - // if(this.form.bapc!=null && this.form.bapc!=undefined && this.form.bapc!=''){ - // this.$nextTick(()=>{ - // this.$refs.ruleForm.clearValidate('bapc') - // }) - // } this.$refs.ruleForm.validate(valid => { if (valid) { + let otaId = localStorage.getItem('otaId') + if (otaId == null|| otaId == undefined) { + otaId = '' + } this.selectListPc.map(item => { if (item.id == this.form.bapc) { this.form.bapc = item.ggpc diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue index d4cebc19b..242b5a614 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue @@ -384,7 +384,6 @@ 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)