|
|
@@ -188,7 +188,7 @@ |
|
|
|
{{ rank.title || '--' }} |
|
|
|
</view> |
|
|
|
<view class="rside"> |
|
|
|
({{ rank.value/60 || 0 }}m) |
|
|
|
({{ tofixed2(rank.value/60) || 0 }}m) |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</block> |
|
|
@@ -279,24 +279,46 @@ |
|
|
|
<text v-if="!weekObj.orgCode">平均执行率最低的顾问:</text> |
|
|
|
<text v-else>执行率最低的项目:</text> |
|
|
|
</view> |
|
|
|
<view class="ranking"> |
|
|
|
<block v-for="(rank, rankIndex) in lowest" :key="rankIndex"> |
|
|
|
<view class="ranking-item"> |
|
|
|
<view class="lside"> |
|
|
|
{{ rank.title || '--' }} |
|
|
|
<template v-if="!weekObj.orgCode"> |
|
|
|
<view class="ranking"> |
|
|
|
<block v-for="(rank, rankIndex) in lowest" :key="rankIndex"> |
|
|
|
<view class="ranking-item"> |
|
|
|
<view class="lside"> |
|
|
|
{{ rank.title || '--' }} |
|
|
|
</view> |
|
|
|
<view class="rside value"> |
|
|
|
{{ rank.value || 0 }}% |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="rside value"> |
|
|
|
{{ rank.value || 0 }}% |
|
|
|
</block> |
|
|
|
|
|
|
|
<template v-if="lowest.length == 0"> |
|
|
|
<view class="empty"> |
|
|
|
暂无数据 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</block> |
|
|
|
</template> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
<template v-else> |
|
|
|
<view class="ranking"> |
|
|
|
<block v-for="(rank, rankIndex) in weekObj.minFraction" :key="rankIndex"> |
|
|
|
<view class="ranking-item"> |
|
|
|
<view class="lside"> |
|
|
|
{{ rankIndex || '--' }} |
|
|
|
</view> |
|
|
|
<view class="rside value"> |
|
|
|
{{ rank || 0 }}% |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</block> |
|
|
|
|
|
|
|
<template v-if="lowest.length == 0"> |
|
|
|
<view class="empty"> |
|
|
|
暂无数据 |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
</view> |
|
|
|
<template v-if="!weekObj.minFraction"> |
|
|
|
<view class="empty"> |
|
|
|
暂无数据 |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
@@ -472,6 +494,15 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
|
|
|
|
tofixed2(time) { |
|
|
|
if (time) { |
|
|
|
return time.toFixed(2) |
|
|
|
} else { |
|
|
|
return 0 |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// 项目拷贝 |
|
|
|
copys() { |
|
|
|
|
|
|
@@ -492,7 +523,7 @@ |
|
|
|
|
|
|
|
3、平均接待时长:${ this.weekObj.avgDuration || 0 }min |
|
|
|
对比昨天:${this.weekObj.avgDurationPK > 0 ? '+' : '' }${ this.weekObj.avgDurationPK || 0 }min` |
|
|
|
|
|
|
|
|
|
|
|
if (this.consultant.length > 0) { |
|
|
|
str += ` |
|
|
|
|
|
|
@@ -509,7 +540,7 @@ |
|
|
|
5、项目平均接访时长排名:` |
|
|
|
this.recording.map((item, index) => { |
|
|
|
str += ` |
|
|
|
top${index+1}.${item.title || '--'}${item.value/60||'0'}m` |
|
|
|
top${index+1}.${item.title || '--'}${this.tofixed2(item.value/60)||'0'}m` |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
@@ -517,10 +548,10 @@ |
|
|
|
str += ` |
|
|
|
|
|
|
|
6、执行率最低的项目:` |
|
|
|
this.lowest.map((item, index) => { |
|
|
|
for (let i in this.weekObj.minFraction) { |
|
|
|
str += ` |
|
|
|
${item.title || '--'}${item.value||'0'}%` |
|
|
|
}) |
|
|
|
${i || '--'}${this.weekObj.minFraction[i]||'0'}%` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|