From 0eea77ebadaa6adc309ccfc32d8c4214e7b38b79 Mon Sep 17 00:00:00 2001 From: "zyx.net" Date: Tue, 16 May 2023 17:25:54 +0800 Subject: [PATCH] =?UTF-8?q?ota=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/basicInformation.vue | 1 + .../otamanagement/vehicleinformation/index.vue | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue index e76322d82..afafccfe9 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue @@ -412,6 +412,7 @@ import { message } from 'ant-design-vue' }else{ this.$message.warning(res.message) this.flag = 1 + localStorage.setItem('otaflag',this.flag) } }) } diff --git a/jero-web/src/views/otamanagement/vehicleinformation/index.vue b/jero-web/src/views/otamanagement/vehicleinformation/index.vue index 7f291a631..ba27e8d45 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/index.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/index.vue @@ -216,7 +216,9 @@ export default { tabClick(tab,event){ this.tabActive=tab if(this.oldName == this.$t('basicinformationofvehicletype')){ + this.$refs.dealtWithRef.save() + } else if(this.oldName == this.$t('onlineupgraderequirements')){ this.$refs.doneListRef.save() } else if(this.oldName == this.$t('safetymeasure')){ @@ -230,7 +232,16 @@ export default { } else if(this.oldName == this.$t('other')){ this.$refs.otherRef.save() } - this.oldName = tab + setTimeout(()=>{ + let otaflag = localStorage.getItem('otaflag') + if(otaflag){ + console.log(otaflag) + this.tabActive = this.$t('basicinformationofvehicletype') + this.oldName = this.$t('basicinformationofvehicletype') + } + this.oldName = tab + },1000) + }, handleToggleSearch() { this.toggleSearchStatus = !this.toggleSearchStatus