From 87ac125e89d25105f86ced82d346d8b4f82ba62d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E4=BD=B3=E8=B1=AA?= <2044682269@qq.com> Date: Fri, 10 Dec 2021 18:53:53 +0800 Subject: [PATCH] bug --- pages/center/Piabodata/TrendAnalysis.vue | 8 ++++---- pages/center/Piabodata/index.vue | 8 ++++---- pages/index/index.vue | 5 ++++- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/pages/center/Piabodata/TrendAnalysis.vue b/pages/center/Piabodata/TrendAnalysis.vue index d23f468..3d82ec5 100644 --- a/pages/center/Piabodata/TrendAnalysis.vue +++ b/pages/center/Piabodata/TrendAnalysis.vue @@ -46,7 +46,7 @@ 简报 - {{item.name}}/分 + {{item.name}}/分 {{item.name}} @@ -230,7 +230,7 @@ num2: '0' }, { - name: '接待时长', + name: '平均接待时长', num: '10', num1: '0', num2: '0' @@ -375,13 +375,13 @@ this.numlist[0].num = data.startSumCustomer 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) { this.compareFlag = true // return this.numlist[0].num1 = data.endSumCustomer 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[1].num2 = data.contrastFraction; this.numlist[2].num2 = data.contrastSumDuration|| 0; diff --git a/pages/center/Piabodata/index.vue b/pages/center/Piabodata/index.vue index 0978abc..cb4c899 100644 --- a/pages/center/Piabodata/index.vue +++ b/pages/center/Piabodata/index.vue @@ -261,7 +261,7 @@ num: '' }, { - name: '录音时长', + name: '平均接待时长', num: '' }, ], @@ -297,7 +297,7 @@ id: 3 }, { - name: "录音时长", + name: "平均接待时长", id: 5 }, ], @@ -436,7 +436,7 @@ this.numlist[1].num = res.sumCustomer || 0 // 执行率 this.numlist[2].num = (res.fraction || 0) + '%' - // 录音时长 + // 平均接待时长 this.numlist[3].num = Math.floor(res.sumDuration / 60) || 0 // util.formatSecond()||0 @@ -606,7 +606,7 @@ allobj.series[0].data.push(item.sumCustomer) }) } else { - // 录音时长 + // 平均接待时长 this.danwei = '单位(min)' allobj.series[0].name = '录音时长' this.allechar.map(item => { diff --git a/pages/index/index.vue b/pages/index/index.vue index bf0df80..36a470e 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -481,7 +481,10 @@ 'content-type': 'application/json', 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token }, - data: {}, + data: { + propertyId: this.buildingID, + accPhone:this.userInfo.username + }, success: (data) => { if (data.data.data == null) { return