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,