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 })