|
|
@@ -14,33 +14,39 @@ |
|
|
|
<view :class="{ activecllasscet: activeTotal == 3 }" @click="tabtimetap(3)">自定义</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view> |
|
|
|
<view class="Piabodata-box"> |
|
|
|
<view class="Piabodata" @click="toTrendAnalysis()"> |
|
|
|
<view class="Piabodata" @click="toTrendAnalysis()" v-if="permissions.commonly3"> |
|
|
|
<view class="Piabodata-img"> |
|
|
|
<image class="Piabodata-img1" src="../../../static/images/qushi.png" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class="Piabodata-text">趋势分析</view> |
|
|
|
<view class="Piabodata-text">销讲趋势</view> |
|
|
|
</view> |
|
|
|
<view class="Piabodata" @click="toStaffAnalysis()"> |
|
|
|
|
|
|
|
<view class="Piabodata" @click="toStaffAnalysis()" v-if="permissions.commonly5"> |
|
|
|
<view class="Piabodata-img"> |
|
|
|
<image class="Piabodata-img1" src="../../../static/images/yuangong.png" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class="Piabodata-text">员工分析</view> |
|
|
|
</view> |
|
|
|
<view class="Piabodata" @click="toUserinsightinto()"> |
|
|
|
|
|
|
|
<view class="Piabodata" @click="toUserinsightinto()" v-if="permissions.commonly6"> |
|
|
|
<view class="Piabodata-img"> |
|
|
|
<image class="Piabodata-img1" src="../../../static/images/yinghu.png" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class="Piabodata-text">用户洞察</view> |
|
|
|
<view class="Piabodata-text">用户画像</view> |
|
|
|
</view> |
|
|
|
<view class="Piabodata" @click="Theteamcompared()" v-if="Theteamcomparedisshow"> |
|
|
|
|
|
|
|
<view class="Piabodata" @click="Theteamcompared()" v-if="permissions.commonly4"> |
|
|
|
<view class="Piabodata-img"> |
|
|
|
<image class="Piabodata-img1" src="../../../static/images/tuandui.png" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class="Piabodata-text">团队对比</view> |
|
|
|
</view> |
|
|
|
<view class="Piabodata" @click="Groupcontrast()" v-if="Groupcontrastisshow"> |
|
|
|
|
|
|
|
<view class="Piabodata" @click="Groupcontrast()" v-if="permissions.commonly2"> |
|
|
|
<view class="Piabodata-img"> |
|
|
|
<image class="Piabodata-img1" src="../../../static/images/jituan.png" mode=""></image> |
|
|
|
</view> |
|
|
@@ -314,10 +320,25 @@ |
|
|
|
Groupcontrastisshow: false, |
|
|
|
allechar: [], |
|
|
|
allList: [], |
|
|
|
optionsobj:{} |
|
|
|
optionsobj:{}, |
|
|
|
permissions:{ |
|
|
|
commonly2:false, |
|
|
|
commonly3:false, |
|
|
|
commonly4:false, |
|
|
|
commonly5:false, |
|
|
|
commonly6:false, |
|
|
|
}, |
|
|
|
}; |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
let newmenulist= uni.getStorageSync('weapp_session_Menu_data'); |
|
|
|
this.permissions.commonly2=newmenulist.lpdb; |
|
|
|
this.permissions.commonly3=newmenulist.xjqs; |
|
|
|
this.permissions.commonly4=newmenulist.tddb; |
|
|
|
this.permissions.commonly5=newmenulist.gwnl; |
|
|
|
this.permissions.commonly6=newmenulist.yhhx; |
|
|
|
|
|
|
|
|
|
|
|
// 获取楼盘id |
|
|
|
this.houseId = uni.getStorageSync('buildingID').id; |
|
|
|
// 获取数据看板 |
|
|
@@ -328,7 +349,6 @@ |
|
|
|
this.getSectionList() |
|
|
|
// 获取团队是否显示权限 |
|
|
|
|
|
|
|
this.queryHaveDept() |
|
|
|
// 获取简报 |
|
|
|
this.getReport() |
|
|
|
// 获取接待趋势 |
|
|
@@ -337,29 +357,8 @@ |
|
|
|
this.getindexZxl() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
queryHaveDept() { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
this.$u.get("/user/queryHaveDept?houseId=" + this.houseId).then(res => { |
|
|
|
this.permissions(res) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
permissions(res) { |
|
|
|
if (res == 1) { |
|
|
|
this.Theteamcomparedisshow = false; |
|
|
|
this.Groupcontrastisshow = false; |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
let totle = uni.getStorageSync('weapp_session_userInfo_data').total; |
|
|
|
if (totle == 1) { |
|
|
|
this.Theteamcomparedisshow = true; |
|
|
|
this.Groupcontrastisshow = false; |
|
|
|
} else { |
|
|
|
this.Theteamcomparedisshow = true; |
|
|
|
this.Groupcontrastisshow = true; |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 获取员工列表 |
|
|
|
getStaffList() { |
|
|
|
this.$u.post('/cusLvStatistics/selectAllAccountIdByHouseId', { |
|
|
|