Browse Source

周报数据展示问题

branch0222
corala 1 year ago
parent
commit
745f15410a
2 changed files with 12 additions and 3 deletions
  1. +1
    -1
      pages.json
  2. +11
    -2
      pages/reportExcel/weekReport.vue

+ 1
- 1
pages.json View File

@@ -45,7 +45,7 @@
}
],
"subPackages": [{
"root": "pages/login", //登录相关
"root": "pages/login",
"name": "login",
"pages": [{
"path": "index"


+ 11
- 2
pages/reportExcel/weekReport.vue View File

@@ -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


Loading…
Cancel
Save