diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 466cd98..101e48e 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -6,17 +6,10 @@
+ {{name}}--{{userTypeText}} diff --git a/src/views/register.vue b/src/views/register.vue index 96d19f1..83bac3c 100644 --- a/src/views/register.vue +++ b/src/views/register.vue @@ -60,9 +60,9 @@ - + + +
diff --git a/src/views/system/device/index.vue b/src/views/system/device/index.vue index f9318d7..3d1a365 100644 --- a/src/views/system/device/index.vue +++ b/src/views/system/device/index.vue @@ -669,10 +669,12 @@ export default { window.removeEventListener('scroll', this.handleScroll, true) }, created() { - listHardwareVersion(this.queryParams).then(response => { - this.hardwareVersionOptions = response.rows; - this.loading2 = false; - }); + if (this.userName === "admin") { + listHardwareVersion(this.queryParams).then(response => { + this.hardwareVersionOptions = response.rows; + this.loading2 = false; + }); + } console.log("当前用户信息:",this.$store.state.user.name) const sn = this.$route.params && this.$route.params.sn; const vehicleNum = this.$route.params && this.$route.params.vehicleNum; diff --git a/src/views/system/order/index.vue b/src/views/system/order/index.vue index c386876..6a229c3 100644 --- a/src/views/system/order/index.vue +++ b/src/views/system/order/index.vue @@ -304,7 +304,7 @@ - + @@ -360,23 +360,12 @@ - - - - - - - + - - - - -