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