Browse Source

权限控制

lilei 4 years ago
parent
commit
f157ac8c6b
1 changed files with 5 additions and 5 deletions
  1. 5 5
      pages/index/index.vue

+ 5 - 5
pages/index/index.vue

@@ -15,7 +15,7 @@
 		</div>
 		<u-gap height="10" bg-color="#f8f8f8"></u-gap>
 		<!-- 待办单 -->
-		<div class="panel-box">
+		<div class="panel-box" v-if="$hasPermissions('M_homeTodoList_mobile')">
 			<div class="panel-title">
 				<span class="texts">待办单</span>
 				<span class="btns" @click="toDoList">更多
@@ -66,7 +66,7 @@
 						name: '视频巡店',
 						url: '/pages/videoShopTour/videoShopTour',
 						target: 'page',
-						auth: true
+						auth: this.$hasPermissions("M_videoTour_mobile")
 					},
 					{
 						id: 'DJZX',
@@ -75,7 +75,7 @@
 						name: '点检中心',
 						url: '/pages/spotCheckCenter/spotChecking',
 						target: 'page',
-						auth: true
+						auth: this.$hasPermissions("M_spotCheckCenter_mobile")
 					},
 					{
 						id: 'XCXD',
@@ -84,7 +84,7 @@
 						name: '现场巡店',
 						url: '/pages/siteInspection/siteInspection',
 						target: 'page',
-						auth: true
+						auth: this.$hasPermissions("M_siteInspection_mobile")
 					},
 					{
 						id: 'XDJL',
@@ -93,7 +93,7 @@
 						name: '巡店记录',
 						url: '/pages/shopTourRecord/shopTourRecord',
 						target: 'page',
-						auth: true
+						auth: this.$hasPermissions("M_shopTourRecord_mobile")
 					}
 				],
 			};