From dfa2603ef9d3c4447d1beb87844bd0de8b3726d4 Mon Sep 17 00:00:00 2001 From: Jo <479214531@qq.com> Date: Thu, 18 Nov 2021 02:33:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E7=AD=89bug=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/header/index.vue | 8 +-- src/layouts/navbar/index.vue | 2 + src/pages/account/login/index.vue | 2 +- src/pages/data/list/index.vue | 18 ++++-- src/pages/stat/list/index.vue | 100 ++++++++++++++++++++++++------ src/pages/user/list/index.vue | 20 +++++- 6 files changed, 120 insertions(+), 30 deletions(-) diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue index 8ce62be..b4f8c10 100644 --- a/src/layouts/header/index.vue +++ b/src/layouts/header/index.vue @@ -5,7 +5,7 @@
- +
@@ -119,9 +119,6 @@ export default { userName && this.setInfo({ userName }) - } else { - // 如果权限里没有后台的3个菜单,则隐藏进入后台的图标。/data/list是前台数据列表,仅在前台展示 - if (this.routes.length && !this.routes.find(e => e.name !== '/data/list')) this.showSetting = false } // 如果登录了,并且非客户,才调用用户信息的接口。客户是没有用户信息的,但是能进入后台(如果有权限菜单) setTimeout(() => { @@ -145,6 +142,9 @@ export default { }) }).catch(err => { }) }, + hideSetting() { + this.showSetting = false + }, toIndex() { this.$route.path === '/index/list' ? location.reload() diff --git a/src/layouts/navbar/index.vue b/src/layouts/navbar/index.vue index 3999366..c435e1e 100644 --- a/src/layouts/navbar/index.vue +++ b/src/layouts/navbar/index.vue @@ -106,6 +106,8 @@ export default { getPer() { this.$get(`${this.api.getPermissions}?platformId=${Setting.platformId}`).then(res => { let routes = res.permissionMenu[0].children + // 如果权限里没有后台的3个菜单,则隐藏进入后台的图标。/data/list是前台数据列表,仅在前台展示 + routes.length && !routes.find(e => e.path !== '/data/list') && this.$emit('hideSetting') Setting.dynamicRoute && addRoutes(routes) this.initMenu() }).catch(err => { diff --git a/src/pages/account/login/index.vue b/src/pages/account/login/index.vue index 4917d9d..3c1371b 100644 --- a/src/pages/account/login/index.vue +++ b/src/pages/account/login/index.vue @@ -34,7 +34,7 @@
-

依据国家政策法规,需绑定手机号进行实网络实名才可登录使用本平台

+

依据国家政策法规,需绑定手机号进行网络实名才可登录使用本平台

diff --git a/src/pages/data/list/index.vue b/src/pages/data/list/index.vue index 8d1d440..2471a88 100644 --- a/src/pages/data/list/index.vue +++ b/src/pages/data/list/index.vue @@ -111,7 +111,7 @@ - +