|
@@ -12,28 +12,28 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<!--录入报告 -->
|
|
|
- <view class="modular">
|
|
|
+ <view class="modular" v-if="permissionList.indexOf('N001')!=-1||permissionList.indexOf('N002')!=-1">
|
|
|
<view class="modularTitle">录入报告</view>
|
|
|
- <view class="modularCont">
|
|
|
- <view class="modularLine" @click="goRouter('../entryReport/entryReport')">
|
|
|
+ <view class="modularCont" >
|
|
|
+ <view class="modularLine" @click="goRouter('../entryReport/entryReport')" v-if="permissionList.indexOf('N001')!=-1">
|
|
|
<image src="../../static/img/home_icon_2.png" mode="" class="modularImg"></image>
|
|
|
<view class="modularName">录入报告</view>
|
|
|
</view>
|
|
|
- <view class="modularLine" @click="goRouter('../reportManage/reportManage')">
|
|
|
+ <view class="modularLine" @click="goRouter('../reportManage/reportManage')" v-if="permissionList.indexOf('N002')!=-1">
|
|
|
<image src="../../static/img/home_icon_3.png" mode="" class="modularImg"></image>
|
|
|
<view class="modularName">报告管理</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!--团队管理 -->
|
|
|
- <view class="modular">
|
|
|
+ <view class="modular" v-if="permissionList.indexOf('N004')!=-1||permissionList.indexOf('N003')!=-1">
|
|
|
<view class="modularTitle">团队管理</view>
|
|
|
<view class="modularCont">
|
|
|
- <view class="modularLine" @click="goRouter('../team/myTeam')">
|
|
|
+ <view class="modularLine" @click="goRouter('../team/myTeam')" v-if="permissionList.indexOf('N003')!=-1">
|
|
|
<image src="../../static/img/home_icon_4.png" mode="" class="modularImg"></image>
|
|
|
<view class="modularName">我的团队</view>
|
|
|
</view>
|
|
|
- <view class="modularLine" @click="goRouter('../teamStore/teamStore')">
|
|
|
+ <view class="modularLine" @click="goRouter('../teamStore/teamStore')" v-if="permissionList.indexOf('N004')!=-1">
|
|
|
<image src="../../static/img/home_icon_5.png" mode="" class="modularImg"></image>
|
|
|
<view class="modularName">团队门店</view>
|
|
|
</view>
|
|
@@ -59,6 +59,7 @@
|
|
|
return {
|
|
|
uid: '',
|
|
|
count: '',
|
|
|
+ permissionList:'',
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
@@ -67,6 +68,8 @@
|
|
|
},
|
|
|
onShow() {
|
|
|
this.uid = uni.getStorageSync("logInData").uid;
|
|
|
+ this.permissionList=uni.getStorageSync("logInData").permissionList
|
|
|
+ //this.permissionList=['N001']
|
|
|
console.log(this.uid);
|
|
|
if (this.uid) {
|
|
|
this.getData()
|