From f5ff2420bc733516620b8c6381ec97f8ba47103f Mon Sep 17 00:00:00 2001 From: "zyx.net" Date: Fri, 21 Apr 2023 11:28:55 +0800 Subject: [PATCH] =?UTF-8?q?ota=E7=AE=A1=E7=90=86=20tab=E5=88=87=E6=8D=A2?= =?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/historicalrecord.vue | 6 +-- .../upgradeactivityrecord/index.vue | 50 +++++++++++++------ .../components/historicalrecord.vue | 6 +-- .../vehicleinformation/index.vue | 48 ++++++++++++------ 4 files changed, 75 insertions(+), 35 deletions(-) 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 },