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": [{ "subPackages": [{
"root": "pages/login", //登录相关
"root": "pages/login",
"name": "login", "name": "login",
"pages": [{ "pages": [{
"path": "index" "path": "index"


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

@@ -145,15 +145,16 @@


<view class="tbody-items nums">{{ data.activeCustomer }}</view> <view class="tbody-items nums">{{ data.activeCustomer }}</view>
<template v-if="!weekObj.orgCode"> <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>
<template v-else> <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> </template>
<view class="tbody-items percent">{{ data.fraction }}%</view> <view class="tbody-items percent">{{ data.fraction }}%</view>
<template v-if="!weekObj.orgCode"> <template v-if="!weekObj.orgCode">
<view class="tbody-items week" :class="{up: data.pk > 0, down: data.pk < 0}"> <view class="tbody-items week" :class="{up: data.pk > 0, down: data.pk < 0}">
<template v-if="data.pk"> <template v-if="data.pk">
111
{{ data.pk > 0 ? `+${data.pk}` : data.pk }}% {{ data.pk > 0 ? `+${data.pk}` : data.pk }}%
</template> </template>
</view> </view>
@@ -164,6 +165,7 @@
<template v-if="data.fractionContrast"> <template v-if="data.fractionContrast">
{{ data.fractionContrast > 0 ? `+${data.fractionContrast}` : data.fractionContrast }}% {{ data.fractionContrast > 0 ? `+${data.fractionContrast}` : data.fractionContrast }}%
</template> </template>
<template v-else>--</template>
</view> </view>
</template> </template>
</view> </view>
@@ -581,6 +583,13 @@
}, },


methods: { methods: {
tofixed2(time){
if(time){
return time.toFixed(2)
}else{
return 0
}
},
forShare() { forShare() {
this.$u.get("/zkMessage/shareMessage", { this.$u.get("/zkMessage/shareMessage", {
id: this.id id: this.id


Loading…
Cancel
Save