From 46588b9183c0067fd5fc570c36cfd5ff02dad223 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期三, 26 一月 2022 13:47:10 +0800 Subject: [PATCH] Merge branch 'bhomebus' of http://192.168.5.5:10010/r/web/vue-smart-ai into bhomebus --- src/pages/systemSettings/index/App.vue | 35 ++++++++++++++++++----------------- 1 files changed, 18 insertions(+), 17 deletions(-) diff --git a/src/pages/systemSettings/index/App.vue b/src/pages/systemSettings/index/App.vue index 8a8d3e9..d2ecf07 100644 --- a/src/pages/systemSettings/index/App.vue +++ b/src/pages/systemSettings/index/App.vue @@ -8,16 +8,17 @@ import BasicSetting from "../components/BasicSetting"; export default { - name: 'settings', + name: "settings", components: { - BasicSetting + BasicSetting, }, data() { return { activeName: "basic", buttonAuthority: sessionStorage.getItem("buttonAuthoritys") || [], - loginName: JSON.parse(sessionStorage.getItem("userInfo")).username || "鐢ㄦ埛鍚�" - } + loginName: + JSON.parse(sessionStorage.getItem("userInfo")).username || "鐢ㄦ埛鍚�", + }; }, computed: { isAdmin() { @@ -29,7 +30,7 @@ return loginName === "superadmin" || loginName === "basic"; } return false; - } + }, }, methods: { isShow(authority) { @@ -43,18 +44,18 @@ }, }, created() { - if (this.isShow('videoSystem:base')) { - this.activeName = "basic" - } else if (this.isShow('videoSystem:permission')) { - this.activeName = "user" - } else if (this.isShow('videoSystem:broadcast')) { - this.activeName = "radio" - } else if (this.isShow('videoSystem:eventPush')) { - this.activeName = "event" - } else if (this.isShow('videoSystem:logManage')) { - this.activeName = "log" - } else if (this.isShow('videoSystem:sysManage')) { - this.activeName = "system" + if (this.isShow("videoSystem:base")) { + this.activeName = "basic"; + } else if (this.isShow("videoSystem:permission")) { + this.activeName = "user"; + } else if (this.isShow("videoSystem:broadcast")) { + this.activeName = "radio"; + } else if (this.isShow("videoSystem:eventPush")) { + this.activeName = "event"; + } else if (this.isShow("videoSystem:logManage")) { + this.activeName = "log"; + } else if (this.isShow("videoSystem:sysManage")) { + this.activeName = "system"; } }, }; -- Gitblit v1.8.0