|
|
@@ -145,15 +145,16 @@ |
|
|
|
|
|
|
|
<view class="tbody-items nums">{{ data.activeCustomer }}</view> |
|
|
|
<template v-if="!weekObj.orgCode"> |
|
|
|
<view class="tbody-items time">{{ data.avgDuration }}m</view> |
|
|
|
<view class="tbody-items time">{{ tofixed2(data.avgDuration)}}m</view> |
|
|
|
</template> |
|
|
|
<template v-else> |
|
|
|
<view class="tbody-items time">{{ data.avgDuration/60 }}m</view> |
|
|
|
<view class="tbody-items time">{{ tofixed2(data.avgDuration/60) }}m</view> |
|
|
|
</template> |
|
|
|
<view class="tbody-items percent">{{ data.fraction }}%</view> |
|
|
|
<template v-if="!weekObj.orgCode"> |
|
|
|
<view class="tbody-items week" :class="{up: data.pk > 0, down: data.pk < 0}"> |
|
|
|
<template v-if="data.pk"> |
|
|
|
111 |
|
|
|
{{ data.pk > 0 ? `+${data.pk}` : data.pk }}% |
|
|
|
</template> |
|
|
|
</view> |
|
|
@@ -164,6 +165,7 @@ |
|
|
|
<template v-if="data.fractionContrast"> |
|
|
|
{{ data.fractionContrast > 0 ? `+${data.fractionContrast}` : data.fractionContrast }}% |
|
|
|
</template> |
|
|
|
<template v-else>--</template> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
</view> |
|
|
@@ -581,6 +583,13 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
tofixed2(time){ |
|
|
|
if(time){ |
|
|
|
return time.toFixed(2) |
|
|
|
}else{ |
|
|
|
return 0 |
|
|
|
} |
|
|
|
}, |
|
|
|
forShare() { |
|
|
|
this.$u.get("/zkMessage/shareMessage", { |
|
|
|
id: this.id |
|
|
|