From 9251f202b2b2ba1ee9b8da0bf9618530e4ae047e Mon Sep 17 00:00:00 2001
From: 18650502300 <18650502300@163.com>
Date: Thu, 14 Nov 2024 21:13:51 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E8=88=AA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/layout/components/Navbar.vue | 31 +++++++++++++++++++++++--------
src/main.js | 6 +++++-
src/store/getters.js | 1 +
src/store/modules/user.js | 5 +++++
src/views/login.vue | 6 +++---
src/views/register.vue | 6 +++---
src/views/system/device/index.vue | 10 ++++++----
src/views/system/order/index.vue | 15 ++-------------
src/views/system/role/index.vue | 10 +---------
src/views/system/rule/index.vue | 8 ++++----
10 files changed, 53 insertions(+), 45 deletions(-)
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 @@
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 @@
-
-
-
-
-
-
-
+
{{ parseTime(scope.row.pickupTime, '{y}-{m}-{d}') }}
-
-
-
-
-
diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue
index fb3b5ef..e6531e4 100644
--- a/src/views/system/role/index.vue
+++ b/src/views/system/role/index.vue
@@ -292,18 +292,10 @@ export default {
value: "1",
label: "全部数据权限"
},
- {
- value: "2",
- label: "自定数据权限"
- },
{
value: "3",
label: "本部门数据权限"
},
- {
- value: "4",
- label: "本部门及以下数据权限"
- },
{
value: "5",
label: "仅本人数据权限"
@@ -602,4 +594,4 @@ export default {
}
}
};
-
\ No newline at end of file
+
diff --git a/src/views/system/rule/index.vue b/src/views/system/rule/index.vue
index 2df5bd7..2491f1c 100644
--- a/src/views/system/rule/index.vue
+++ b/src/views/system/rule/index.vue
@@ -81,7 +81,7 @@
-
+
@@ -132,9 +132,9 @@
-
-
-
+
+
+