From feb0782b5c9cb97accb658a95232717cf3fb77a0 Mon Sep 17 00:00:00 2001 From: liuye Date: Thu, 18 Jul 2024 17:38:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E4=B8=8A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/utils/modules.js | 5 +++-- src/project/weiyang/AppPatrolReport/AppPatrolReport.vue | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/utils/modules.js b/src/components/utils/modules.js index 993bfb0..e6f71fe 100644 --- a/src/components/utils/modules.js +++ b/src/components/utils/modules.js @@ -142,10 +142,11 @@ export const user = { } uni.navigateTo({url: modulePath}); } else if (checkType == 5) { - if (!userInfo.girdInfos2G.length) { + if (userInfo.girdInfos2G && userInfo.girdInfos2G.length) { + uni.navigateTo({url: modulePath}); + }else { return uni.showToast({title: "您还不是网格员,暂时无法使用该功能", icon: "none"}); } - uni.navigateTo({url: modulePath}); } } } diff --git a/src/project/weiyang/AppPatrolReport/AppPatrolReport.vue b/src/project/weiyang/AppPatrolReport/AppPatrolReport.vue index a65e47f..c172ca5 100644 --- a/src/project/weiyang/AppPatrolReport/AppPatrolReport.vue +++ b/src/project/weiyang/AppPatrolReport/AppPatrolReport.vue @@ -32,7 +32,7 @@ export default { customNavigation: true, data() { return { - component: 'Statistics', + component: 'List', params: {}, refresh: true, tabIndex: 0,