From af0c631800368799b84ddaef8ccee04cd633d995 Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Wed, 11 Jan 2023 16:32:26 +0800 Subject: [PATCH] =?UTF-8?q?tab=E8=B7=AF=E7=94=B1=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=88=B7=E6=96=B0active=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Navbar.vue | 2 +- src/views/deviceManagement/alarmInformation.vue | 5 ++++- src/views/deviceManagement/maintenanceManagement.vue | 5 ++++- src/views/deviceManagement/performanceAnalysis.vue | 5 ++++- src/views/deviceManagement/spareParts.vue | 5 ++++- src/views/productionScheduling/generateReports.vue | 4 ++-- src/views/qualityManagement/processFullInspection.vue | 6 ++++-- 7 files changed, 23 insertions(+), 9 deletions(-) diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 7719a33..384ee4e 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -4,7 +4,7 @@ 中建材 G8.5 TFT-LCD 玻璃基板后工程段制造执行系统 - +
diff --git a/src/views/deviceManagement/alarmInformation.vue b/src/views/deviceManagement/alarmInformation.vue index 3e8f350..ace35f0 100644 --- a/src/views/deviceManagement/alarmInformation.vue +++ b/src/views/deviceManagement/alarmInformation.vue @@ -18,9 +18,12 @@ export default { name: 'AlarmInformation', data() { return { - activeName: 'realTimeAlarm' + activeName: '' } }, + mounted() { + this.activeName = this.$router.history.current.name + }, methods: { handleSelect(name) { this.$router.push({ name: name }) diff --git a/src/views/deviceManagement/maintenanceManagement.vue b/src/views/deviceManagement/maintenanceManagement.vue index d13a732..bf3a604 100644 --- a/src/views/deviceManagement/maintenanceManagement.vue +++ b/src/views/deviceManagement/maintenanceManagement.vue @@ -18,9 +18,12 @@ export default { name: 'MaintenanceManagement', data() { return { - activeName: 'plannedMaintenance' + activeName: '' } }, + mounted() { + this.activeName = this.$router.history.current.name + }, methods: { handleSelect(name) { this.$router.push({ name: name }) diff --git a/src/views/deviceManagement/performanceAnalysis.vue b/src/views/deviceManagement/performanceAnalysis.vue index 6fbeab0..646f9f0 100644 --- a/src/views/deviceManagement/performanceAnalysis.vue +++ b/src/views/deviceManagement/performanceAnalysis.vue @@ -20,9 +20,12 @@ export default { name: 'performanceAnalysis', data() { return { - activeName: 'devicePage' + activeName: '' } }, + mounted() { + this.activeName = this.$router.history.current.name + }, methods: { handleSelect(name) { this.$router.push({ name: name }) diff --git a/src/views/deviceManagement/spareParts.vue b/src/views/deviceManagement/spareParts.vue index 49332e4..f9a8504 100644 --- a/src/views/deviceManagement/spareParts.vue +++ b/src/views/deviceManagement/spareParts.vue @@ -18,9 +18,12 @@ export default { name: 'SpareParts', data() { return { - activeName: 'sparePartsStock' + activeName: '' } }, + mounted() { + this.activeName = this.$router.history.current.name + }, methods: { handleSelect(name) { this.$router.push({ name: name }) diff --git a/src/views/productionScheduling/generateReports.vue b/src/views/productionScheduling/generateReports.vue index 91e10ac..4b76790 100644 --- a/src/views/productionScheduling/generateReports.vue +++ b/src/views/productionScheduling/generateReports.vue @@ -19,11 +19,11 @@ export default { name: 'GenerateReports', data() { return { - activeName: 'productionReport' + activeName: '' } }, mounted() { - console.log(this.$router) + this.activeName = this.$router.history.current.name }, methods: { handleSelect(name) { diff --git a/src/views/qualityManagement/processFullInspection.vue b/src/views/qualityManagement/processFullInspection.vue index 2cec395..6dd6304 100644 --- a/src/views/qualityManagement/processFullInspection.vue +++ b/src/views/qualityManagement/processFullInspection.vue @@ -20,10 +20,12 @@ export default { name: 'ProcessFullInspection', data() { return { - activeName: 'fullInspection' + activeName: '' } }, - mounted() {}, + mounted() { + this.activeName = this.$router.history.current.name + }, methods: { handleSelect(name) { this.$router.push({ name: name })