|
@@ -34,13 +34,13 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="Piabodata-text">用户洞察</view> |
|
|
<view class="Piabodata-text">用户洞察</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="Piabodata" @click="Theteamcompared()"> |
|
|
|
|
|
|
|
|
<view class="Piabodata" @click="Theteamcompared()" v-if="Theteamcomparedisshow"> |
|
|
<view class="Piabodata-img"> |
|
|
<view class="Piabodata-img"> |
|
|
<image class="Piabodata-img1" src="../../../static/images/tuandui.png" mode=""></image> |
|
|
<image class="Piabodata-img1" src="../../../static/images/tuandui.png" mode=""></image> |
|
|
</view> |
|
|
</view> |
|
|
<view class="Piabodata-text">团队对比</view> |
|
|
<view class="Piabodata-text">团队对比</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="Piabodata" @click="Groupcontrast()"> |
|
|
|
|
|
|
|
|
<view class="Piabodata" @click="Groupcontrast()" v-if="Groupcontrastisshow"> |
|
|
<view class="Piabodata-img"> |
|
|
<view class="Piabodata-img"> |
|
|
<image class="Piabodata-img1" src="../../../static/images/jituan.png" mode=""></image> |
|
|
<image class="Piabodata-img1" src="../../../static/images/jituan.png" mode=""></image> |
|
|
</view> |
|
|
</view> |
|
@@ -289,10 +289,12 @@ |
|
|
{name:'平均执行率',zxl:'50'}, |
|
|
{name:'平均执行率',zxl:'50'}, |
|
|
{name:'接待客户',zxl:'80'}, |
|
|
{name:'接待客户',zxl:'80'}, |
|
|
], |
|
|
], |
|
|
|
|
|
Theteamcomparedisshow:false, |
|
|
|
|
|
Groupcontrastisshow:false |
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
async onLoad() { |
|
|
|
|
|
|
|
|
onShow() { |
|
|
// 获取楼盘id |
|
|
// 获取楼盘id |
|
|
this.houseId = uni.getStorageSync('buildingID').id; |
|
|
this.houseId = uni.getStorageSync('buildingID').id; |
|
|
// 获取数据看板 |
|
|
// 获取数据看板 |
|
@@ -302,8 +304,33 @@ |
|
|
// 获取团队 |
|
|
// 获取团队 |
|
|
this.getSectionList() |
|
|
this.getSectionList() |
|
|
// 获取团队是否显示权限 |
|
|
// 获取团队是否显示权限 |
|
|
|
|
|
|
|
|
|
|
|
this.queryHaveDept() |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
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(){ |
|
|
getStaffList(){ |
|
|
this.$u.post('/cusLvStatistics/selectAllAccountIdByHouseId',{houseId:this.houseId}) |
|
|
this.$u.post('/cusLvStatistics/selectAllAccountIdByHouseId',{houseId:this.houseId}) |
|
|