Browse Source

bug

undefined
时佳豪 3 years ago
parent
commit
87ac125e89
3 changed files with 12 additions and 9 deletions
  1. +4
    -4
      pages/center/Piabodata/TrendAnalysis.vue
  2. +4
    -4
      pages/center/Piabodata/index.vue
  3. +4
    -1
      pages/index/index.vue

+ 4
- 4
pages/center/Piabodata/TrendAnalysis.vue View File

@@ -46,7 +46,7 @@
<view class="zonglantit">简报</view> <view class="zonglantit">简报</view>
<view class="zonglanbox" > <view class="zonglanbox" >
<view class="grid" v-for="(item,index) in numlist" :key="index" style="height: auto;padding-bottom: 20rpx;"> <view class="grid" v-for="(item,index) in numlist" :key="index" style="height: auto;padding-bottom: 20rpx;">
<view class="audonum" v-if="item.name=='接待时长'">{{item.name}}/分</view>
<view class="audonum" v-if="item.name=='平均接待时长'">{{item.name}}/分</view>
<view class="audonum" v-else>{{item.name}}</view> <view class="audonum" v-else>{{item.name}}</view>
<view class="num" > <view class="num" >
<view class="" style="width: 35%;"> <view class="" style="width: 35%;">
@@ -230,7 +230,7 @@
num2: '0' num2: '0'
}, },
{ {
name: '接待时长',
name: '平均接待时长',
num: '10', num: '10',
num1: '0', num1: '0',
num2: '0' num2: '0'
@@ -375,13 +375,13 @@
this.numlist[0].num = data.startSumCustomer this.numlist[0].num = data.startSumCustomer
this.numlist[1].num = data.startFraction; this.numlist[1].num = data.startFraction;


this.numlist[2].num = Math.floor(data.startSumDuration/60) || 0;
this.numlist[2].num = data.startSumDuration || 0;
if (data.endSumDuration != null) { if (data.endSumDuration != null) {
this.compareFlag = true this.compareFlag = true
// return // return
this.numlist[0].num1 = data.endSumCustomer this.numlist[0].num1 = data.endSumCustomer
this.numlist[1].num1 = data.endFraction; this.numlist[1].num1 = data.endFraction;
this.numlist[2].num1 = Math.floor(data.endSumDuration/60) || 0;
this.numlist[2].num1 = data.endSumDuration || 0;
this.numlist[0].num2 = data.contrastSumCustomer this.numlist[0].num2 = data.contrastSumCustomer
this.numlist[1].num2 = data.contrastFraction; this.numlist[1].num2 = data.contrastFraction;
this.numlist[2].num2 = data.contrastSumDuration|| 0; this.numlist[2].num2 = data.contrastSumDuration|| 0;


+ 4
- 4
pages/center/Piabodata/index.vue View File

@@ -261,7 +261,7 @@
num: '' num: ''
}, },
{ {
name: '录音时长',
name: '平均接待时长',
num: '' num: ''
}, },
], ],
@@ -297,7 +297,7 @@
id: 3 id: 3
}, },
{ {
name: "录音时长",
name: "平均接待时长",
id: 5 id: 5
}, },
], ],
@@ -436,7 +436,7 @@
this.numlist[1].num = res.sumCustomer || 0 this.numlist[1].num = res.sumCustomer || 0
// 执行率 // 执行率
this.numlist[2].num = (res.fraction || 0) + '%' this.numlist[2].num = (res.fraction || 0) + '%'
// 录音时长
// 平均接待时长
this.numlist[3].num = Math.floor(res.sumDuration / 60) || 0 this.numlist[3].num = Math.floor(res.sumDuration / 60) || 0
// util.formatSecond()||0 // util.formatSecond()||0


@@ -606,7 +606,7 @@
allobj.series[0].data.push(item.sumCustomer) allobj.series[0].data.push(item.sumCustomer)
}) })
} else { } else {
// 录音时长
// 平均接待时长
this.danwei = '单位(min)' this.danwei = '单位(min)'
allobj.series[0].name = '录音时长' allobj.series[0].name = '录音时长'
this.allechar.map(item => { this.allechar.map(item => {


+ 4
- 1
pages/index/index.vue View File

@@ -481,7 +481,10 @@
'content-type': 'application/json', 'content-type': 'application/json',
'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token
}, },
data: {},
data: {
propertyId: this.buildingID,
accPhone:this.userInfo.username
},
success: (data) => { success: (data) => {
if (data.data.data == null) { if (data.data.data == null) {
return return


Loading…
Cancel
Save