diff --git a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/historicalrecord.vue b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/historicalrecord.vue index 2eebdeb15..6a7521fb2 100644 --- a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/historicalrecord.vue +++ b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/historicalrecord.vue @@ -15,9 +15,9 @@ -
- {{$t('returntofill')}} -
+ + + diff --git a/jero-web/src/views/otamanagement/upgradeactivityrecord/index.vue b/jero-web/src/views/otamanagement/upgradeactivityrecord/index.vue index 76fc112de..d6a15c946 100644 --- a/jero-web/src/views/otamanagement/upgradeactivityrecord/index.vue +++ b/jero-web/src/views/otamanagement/upgradeactivityrecord/index.vue @@ -7,35 +7,35 @@ {{$t('fillintherecord')}} -
- - {{$t('historicalrecord')}} -
+ + + + + - - + + - + - + - + - + - + - + - + @@ -162,13 +162,33 @@ export default { }, ], toggleSearchStatus: false, - tabActive: this.$t('upgradetargetmodel') + tabActive: this.$t('upgradetargetmodel'), + oldName: this.$t('upgradetargetmodel'), } }, methods: { callback(value) { this.tabActive = value }, + tabClick(tab,event){ + this.tabActive=tab + if(this.oldName == this.$t('upgradetargetmodel')){ + this.$refs.dealtWithRef.save() + } else if(this.oldName == this.$t('thetargetvehicleofthisupgrade')){ + this.$refs.doneListRef.save() + } else if(this.oldName == this.$t('upgradeimpactassessment')){ + this.$refs.SentListRef.save() + } else if(this.oldName == this.$t('upgradehavechanged')){ + this.$refs.upgradedonlineRef.save() + } else if(this.oldName == this.$t('auxiliaryupgradehavechanged')){ + this.$refs.beupgradedonlineRef.save() + } else if(this.oldName == this.$t('usernotification')){ + this.$refs.recordparametersRef.save() + } else if(this.oldName == this.$t('informationaboutotherupgradetasks')){ + this.$refs.otherRef.save() + } + this.oldName = tab + }, handleToggleSearch() { this.toggleSearchStatus = !this.toggleSearchStatus }, diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/historicalrecord.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/historicalrecord.vue index c19eb0d49..0939753fd 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/historicalrecord.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/historicalrecord.vue @@ -15,9 +15,9 @@ -
- {{$t('returntofill')}} -
+ + + diff --git a/jero-web/src/views/otamanagement/vehicleinformation/index.vue b/jero-web/src/views/otamanagement/vehicleinformation/index.vue index 503940a48..7997af34d 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/index.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/index.vue @@ -7,35 +7,35 @@ {{$t('fillintherecord')}} -
- - {{$t('historicalrecord')}} -
+ + + + + - - + + - + - + - + - + - + - + - + @@ -163,6 +163,7 @@ export default { ], toggleSearchStatus: false, tabActive: this.$t('basicinformationofvehicletype'), + oldName: this.$t('basicinformationofvehicletype'), otaId:'' } }, @@ -170,6 +171,25 @@ export default { callback(value) { this.tabActive = value }, + 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')){ + this.$refs.SentListRef.save() + } else if(this.oldName == this.$t('upgradedonline')){ + this.$refs.upgradedonlineRef.save() + } else if(this.oldName == this.$t('beupgradedonline')){ + this.$refs.beupgradedonlineRef.save() + } else if(this.oldName == this.$t('recordparameters')){ + this.$refs.recordparametersRef.save() + } else if(this.oldName == this.$t('other')){ + this.$refs.otherRef.save() + } + this.oldName = tab + }, handleToggleSearch() { this.toggleSearchStatus = !this.toggleSearchStatus },