|
@@ -53,24 +53,20 @@ |
|
|
<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view> |
|
|
<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view> |
|
|
<view class="single"> |
|
|
<view class="single"> |
|
|
<view class="title"> |
|
|
<view class="title"> |
|
|
<view class="title1" style="flex: 1;">录音时长(TOP10)</view> |
|
|
|
|
|
|
|
|
<view class="title1" style="flex: 1;">销讲执行率排行(TOP10)</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="hejisan"> |
|
|
<view class="hejisan"> |
|
|
<view class="sanbox1" style="width: 35%;"> |
|
|
|
|
|
<view class="text1-1">合计</view> |
|
|
|
|
|
<view class="text1-2">{{newlisttabinfo2.total}}</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="sanbox1" style="width: 40%;"> |
|
|
<view class="sanbox1" style="width: 40%;"> |
|
|
<view class="text1-1">顾问</view> |
|
|
<view class="text1-1">顾问</view> |
|
|
<view class="text1-2">{{newlisttabinfo2.count}}</view> |
|
|
|
|
|
|
|
|
<view class="text1-2">{{newlisttabinfo3.count}}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="sanbox1" style="width: 25%;"> |
|
|
<view class="sanbox1" style="width: 25%;"> |
|
|
<view class="text1-1">人均录音时长</view> |
|
|
|
|
|
<view class="text1-2">{{newlisttabinfo2.avg}}</view> |
|
|
|
|
|
|
|
|
<view class="text1-1">人均执行率</view> |
|
|
|
|
|
<view class="text1-2">{{newlisttabinfo3.avg}}</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="jindu" style="height: 360rpx;overflow: auto;"> |
|
|
<view class="jindu" style="height: 360rpx;overflow: auto;"> |
|
|
<view v-if="newlisttabinfo2.result.length!=0" class="jindu-box" v-for="(item,index) in newlisttabinfo2.result" :key="index"> |
|
|
|
|
|
|
|
|
<view v-if="newlisttabinfo3.result.length!=0" class="jindu-box" v-for="(item,index) in newlisttabinfo3.result" :key="index"> |
|
|
<view class="jindu-boxche"> |
|
|
<view class="jindu-boxche"> |
|
|
<view class="jindu-name" v-if="item.name">{{item.name.substring(0,4)}}</view> |
|
|
<view class="jindu-name" v-if="item.name">{{item.name.substring(0,4)}}</view> |
|
|
<view style="width: 440rpx;margin-left: 10rpx;"> |
|
|
<view style="width: 440rpx;margin-left: 10rpx;"> |
|
@@ -79,29 +75,34 @@ |
|
|
<view class="jindu-zxl">{{item.zxl==null?0:item.zxl}}</view> |
|
|
<view class="jindu-zxl">{{item.zxl==null?0:item.zxl}}</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view v-if="newlisttabinfo2.result.length==0" style="width: 100%;text-align: center;margin-top: 60rpx;"> |
|
|
|
|
|
|
|
|
<view v-if="newlisttabinfo3.result.length==0" style="width: 100%;text-align: center;margin-top: 60rpx;"> |
|
|
暂无数据 |
|
|
暂无数据 |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view> |
|
|
<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view> |
|
|
<view class="single"> |
|
|
<view class="single"> |
|
|
<view class="title"> |
|
|
<view class="title"> |
|
|
<view class="title1" style="flex: 1;">销讲执行率排行(TOP10)</view> |
|
|
|
|
|
|
|
|
<view class="title1" style="flex: 1;">录音时长(TOP10)</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="hejisan"> |
|
|
<view class="hejisan"> |
|
|
|
|
|
<view class="sanbox1" style="width: 35%;"> |
|
|
|
|
|
<view class="text1-1">合计</view> |
|
|
|
|
|
<view class="text1-2">{{newlisttabinfo2.total}}</view> |
|
|
|
|
|
</view> |
|
|
<view class="sanbox1" style="width: 40%;"> |
|
|
<view class="sanbox1" style="width: 40%;"> |
|
|
<view class="text1-1">顾问</view> |
|
|
<view class="text1-1">顾问</view> |
|
|
<view class="text1-2">{{newlisttabinfo3.count}}</view> |
|
|
|
|
|
|
|
|
<view class="text1-2">{{newlisttabinfo2.count}}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="sanbox1" style="width: 25%;"> |
|
|
<view class="sanbox1" style="width: 25%;"> |
|
|
<view class="text1-1">人均执行率</view> |
|
|
|
|
|
<view class="text1-2">{{newlisttabinfo3.avg}}</view> |
|
|
|
|
|
|
|
|
<view class="text1-1">人均录音时长</view> |
|
|
|
|
|
<view class="text1-2">{{newlisttabinfo2.avg}}</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="jindu" style="height: 360rpx;overflow: auto;"> |
|
|
<view class="jindu" style="height: 360rpx;overflow: auto;"> |
|
|
<view v-if="newlisttabinfo3.result.length!=0" class="jindu-box" v-for="(item,index) in newlisttabinfo3.result" :key="index"> |
|
|
|
|
|
|
|
|
<view v-if="newlisttabinfo2.result.length!=0" class="jindu-box" v-for="(item,index) in newlisttabinfo2.result" :key="index"> |
|
|
<view class="jindu-boxche"> |
|
|
<view class="jindu-boxche"> |
|
|
<view class="jindu-name" v-if="item.name">{{item.name.substring(0,4)}}</view> |
|
|
<view class="jindu-name" v-if="item.name">{{item.name.substring(0,4)}}</view> |
|
|
<view style="width: 440rpx;margin-left: 10rpx;"> |
|
|
<view style="width: 440rpx;margin-left: 10rpx;"> |
|
@@ -110,7 +111,7 @@ |
|
|
<view class="jindu-zxl">{{item.zxl==null?0:item.zxl}}</view> |
|
|
<view class="jindu-zxl">{{item.zxl==null?0:item.zxl}}</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view v-if="newlisttabinfo3.result.length==0" style="width: 100%;text-align: center;margin-top: 60rpx;"> |
|
|
|
|
|
|
|
|
<view v-if="newlisttabinfo2.result.length==0" style="width: 100%;text-align: center;margin-top: 60rpx;"> |
|
|
暂无数据 |
|
|
暂无数据 |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@@ -272,10 +273,10 @@ |
|
|
staffStatisticsExecutionRateTop10(promse){ |
|
|
staffStatisticsExecutionRateTop10(promse){ |
|
|
this.$u.post('/cusLvStatistics/staffStatisticsExecutionRateTop10',promse).then(res=>{ |
|
|
this.$u.post('/cusLvStatistics/staffStatisticsExecutionRateTop10',promse).then(res=>{ |
|
|
res.result.forEach(item=>{ |
|
|
res.result.forEach(item=>{ |
|
|
item.zxl=item.data |
|
|
|
|
|
|
|
|
item.zxl=item.data; |
|
|
|
|
|
item.zxl1=item.data; |
|
|
item.name=item.accountName |
|
|
item.name=item.accountName |
|
|
}) |
|
|
}) |
|
|
res.result=this.dealData(res.result) |
|
|
|
|
|
this.newlisttabinfo3=res; |
|
|
this.newlisttabinfo3=res; |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
@@ -315,21 +316,26 @@ |
|
|
// 获取最大值 |
|
|
// 获取最大值 |
|
|
let num=Math.max.apply(Math, arr.map(function (o) { return o.zxl })) //结果:3 |
|
|
let num=Math.max.apply(Math, arr.map(function (o) { return o.zxl })) //结果:3 |
|
|
// console.log(num) |
|
|
// console.log(num) |
|
|
if(num>100){ |
|
|
|
|
|
// 获取最大值的下标 |
|
|
|
|
|
// let idx=arr.findIndex(item=>item.zxl==num) |
|
|
|
|
|
// console.log(idx,123) |
|
|
|
|
|
arr.map(item=>{ |
|
|
|
|
|
item.zxl1=Math.floor(item.zxl/num*100) |
|
|
|
|
|
}) |
|
|
|
|
|
// console.log(arr) |
|
|
|
|
|
return arr |
|
|
|
|
|
}else{ |
|
|
|
|
|
arr.map(item=>{ |
|
|
|
|
|
item.zxl1=item.zxl |
|
|
|
|
|
}) |
|
|
|
|
|
return arr |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// if(num>100){ |
|
|
|
|
|
// // 获取最大值的下标 |
|
|
|
|
|
// // let idx=arr.findIndex(item=>item.zxl==num) |
|
|
|
|
|
// // console.log(idx,123) |
|
|
|
|
|
// arr.map(item=>{ |
|
|
|
|
|
// item.zxl1=Math.floor(item.zxl/num*100) |
|
|
|
|
|
// }) |
|
|
|
|
|
// // console.log(arr) |
|
|
|
|
|
// return arr |
|
|
|
|
|
// }else{ |
|
|
|
|
|
// arr.map(item=>{ |
|
|
|
|
|
// item.zxl1=item.zxl |
|
|
|
|
|
// }) |
|
|
|
|
|
// return arr |
|
|
|
|
|
// } |
|
|
|
|
|
arr.map(item=>{ |
|
|
|
|
|
item.zxl1=Math.floor(item.zxl/num*100) |
|
|
|
|
|
}) |
|
|
|
|
|
return arr |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|