From c7298c0ad9c728f55618ad4f924f723f7d2d0a38 Mon Sep 17 00:00:00 2001
From: ZZJ <zzjdsg2300@163.com>
Date: 星期三, 26 一月 2022 11:06:15 +0800
Subject: [PATCH] bug修复

---
 src/pages/settings/index/index.vue |   35 +++++++++++++++++++++++++++--------
 1 files changed, 27 insertions(+), 8 deletions(-)

diff --git a/src/pages/settings/index/index.vue b/src/pages/settings/index/index.vue
index 60b4f80..61e1bc0 100644
--- a/src/pages/settings/index/index.vue
+++ b/src/pages/settings/index/index.vue
@@ -605,6 +605,8 @@
       style="width: 100%"
       ref="view_6"
     ></deviceInfo>
+    <Authorization v-if="activeIndex == 7" style="width: 100%" ref="view_7">
+    </Authorization>
   </div>
   <div class="welcome-page" v-else ref="curPage" @mouseup="mouseDownIndex = ''">
     <div
@@ -677,6 +679,7 @@
 import deviceInfo from "../views/deviceInfo";
 import keyboardLanguage from "../views/keyboardLanguage";
 import generalSettings from "../views/generalSettings";
+import Authorization from "../views/Authorization";
 import { pad0, getUrlKey } from "@/api/utils";
 
 export default {
@@ -689,6 +692,7 @@
     keyboardLanguage,
     generalSettings,
     deviceInfo,
+    Authorization,
   },
   data() {
     var v2 = (rule, value, callback) => {
@@ -829,6 +833,13 @@
           blackIcon: "/images/settings/榛戣壊涓�绾con/璁惧淇℃伅.png",
           whiteIcon: "/images/settings/鐧借壊涓�绾con/璁惧淇℃伅.png",
         },
+        {
+          name: "鎺堟潈绠$悊",
+          icon: "\ue7e9;",
+          imgUrl: "/images/settings/璁惧淇℃伅.png",
+          blackIcon: "/images/settings/榛戣壊涓�绾con/鎺堟潈绠$悊.png",
+          whiteIcon: "/images/settings/鐧借壊涓�绾con/鎺堟潈绠$悊.png",
+        },
       ],
       accountArr: [],
       jpgArr: [],
@@ -888,6 +899,13 @@
     };
   },
   created() {
+    window.parent.postMessage(
+      {
+        msg: "showBack",
+      },
+      "*"
+    );
+
     let color = localStorage.getItem("--colorCard");
     if (color) {
       document.documentElement.style.setProperty("--colorCard", `${color}`);
@@ -1479,20 +1497,21 @@
       }
     },
     parseTime() {
-      [this.syncYrs, this.syncMonth, this.syncDay] = this.equipmentDate.split(
-        "-"
-      );
-      [this.syncHour, this.syncMin, this.syncSec] = this.equipmentTime.split(
-        ":"
-      );
+      [this.syncYrs, this.syncMonth, this.syncDay] =
+        this.equipmentDate.split("-");
+      [this.syncHour, this.syncMin, this.syncSec] =
+        this.equipmentTime.split(":");
     },
   },
   computed: {
     activeUserRole() {
-      if (this.activeAccountItem.sysRoles&&this.activeAccountItem.sysRoles.length) {
+      if (
+        this.activeAccountItem.sysRoles &&
+        this.activeAccountItem.sysRoles.length
+      ) {
         return this.activeAccountItem.sysRoles[0].name;
       }
-      return "鏅�氱敤鎴�"
+      return "鏅�氱敤鎴�";
     },
     curUserRole() {
       const info = JSON.parse(sessionStorage.getItem("userInfo"));

--
Gitblit v1.8.0