From 9162637598545acf50a07530ab31342d6c5cccce Mon Sep 17 00:00:00 2001
From: lancer <1905818361@qq.com>
Date: Fri, 27 Aug 2021 13:55:35 +0800
Subject: [PATCH] init
---
pages/center/Piabodata/TrendAnalysis.vue | 34 +++++++++++++-----------
pages/center/Piabodata/index.vue | 24 ++++++++++++-----
pages/center/consumer/consumerDetail.vue | 4 +--
pages/center/consumer/edit.vue | 10 +++++++
pages/center/consumer/index.vue | 11 ++++----
pages/center/records/index.vue | 34 +++++++++++++++++-------
pages/index/customer.vue | 8 +++---
7 files changed, 82 insertions(+), 43 deletions(-)
diff --git a/pages/center/Piabodata/TrendAnalysis.vue b/pages/center/Piabodata/TrendAnalysis.vue
index 5afd231..f4ad234 100644
--- a/pages/center/Piabodata/TrendAnalysis.vue
+++ b/pages/center/Piabodata/TrendAnalysis.vue
@@ -54,7 +54,7 @@
对比:{{item.num1}}
- {{index==1?item.num2+'%':item.num2}}
+ {{index==1?item.num2+'%':item.num2}} {{item.num2*1>0?'↑':'↓'}}
@@ -166,7 +166,7 @@
style="border-right:1px solid #E0E0E0;">{{item1}}
- {{item1==0?'--':item1+'%'}}
+ {{item1==0?'--':item1+'%'}}{{item1*1>0?'↑':item1*1<0?'↓':''}}
@@ -177,7 +177,7 @@
{{item1==0?'--':item1+'%'}}
+ style="border-right:1px solid #E0E0E0;">{{item1==0?'--':item1+'%'}}{{item1*1>0?'↑':item1*1<0?'↓':''}}
{{item1+'%'}}
{{item1}}
@@ -603,8 +603,9 @@
data.firstValue.forEach((item, sdf) => {
data.lastValue.forEach((child, zxc) => {
if (sdf == zxc) {
- that.lineOptsect.categories.push(item.statDate.substring(5,
- 10) + 'vs' + child.statDate.substring(5, 10))
+ that.lineOptsect.categories.push(
+ child.statDate.substring(5,10) + 'vs' + item.statDate.substring(5, 10)
+ )
}
})
})
@@ -622,8 +623,7 @@
// },
]
that.lineOptsect.categories.map((item, index) => {
- let newarr = [item, data.firstValue[index].fraction, data.lastValue[index]
- .fraction, data.contrast[index].data
+ let newarr = [item, data.lastValue[index].fraction, data.firstValue[index].fraction,data.contrast[index].data
]
// obj.time=item
// obj.time1=data.firstValue[index].fraction
@@ -808,8 +808,9 @@
data.firstList.forEach((item, sdf) => {
data.lastList.forEach((child, zxc) => {
if (sdf == zxc) {
- this.lineOptsect.categories.push(item.statDate.substring(5,
- 10) + 'vs' + child.statDate.substring(5, 10))
+ this.lineOptsect.categories.push(
+ child.statDate.substring(5,10) + 'vs' + item.statDate.substring(5, 10)
+ )
}
})
})
@@ -822,8 +823,8 @@
['时间', '时段一', '时段二', '变化']
]
that.lineOptsect.categories.map((item, index) => {
- let newarr = [item, data.firstList[index].avgExecutionRate, data.lastList[
- index].avgExecutionRate, data.contrast[index].data]
+ let newarr = [item, data.lastList[
+ index].avgExecutionRate, data.firstList[index].avgExecutionRate, data.contrast[index].data]
arr.push(newarr)
})
// console.log(arr)
@@ -1035,8 +1036,9 @@
data.firstValue.receptionStatList.forEach((item, sdf) => {
data.lastValue.receptionStatList.forEach((child, zxc) => {
if (sdf == zxc) {
- that.lineOptsect.categories.push(item.statDate.substring(5,
- 10) + 'vs' + child.statDate.substring(5, 10))
+ that.lineOptsect.categories.push(
+ child.statDate.substring(5,10) + 'vs' + item.statDate.substring(5, 10)
+ )
}
})
})
@@ -1048,7 +1050,7 @@
// 团队处理数据
// // 处理表格数据
let arr = [
- ['时间', data.firstValue.deptName, data.lastValue.deptName, '变化']
+ ['时间', '时段一', '时段二', '变化']
// {
// time:'时间',
// time1:'时段一',
@@ -1057,8 +1059,8 @@
// },
]
that.lineOptsect.categories.map((item, index) => {
- let newarr = [item, data.firstValue.receptionStatList[index].fraction, data
- .lastValue.receptionStatList[index].fraction, data.contrast
+ let newarr = [item, data
+ .lastValue.receptionStatList[index].fraction, data.firstValue.receptionStatList[index].fraction,data.contrast
.receptionStatList[index].data
]
// obj.time=item
diff --git a/pages/center/Piabodata/index.vue b/pages/center/Piabodata/index.vue
index 15be61d..1d99cff 100644
--- a/pages/center/Piabodata/index.vue
+++ b/pages/center/Piabodata/index.vue
@@ -75,7 +75,7 @@
合计:50
均值:25
-->
-
+ {{danwei}}
合计:{{allnum||0}}
均值:{{allavg||0}}
-->
-
+ 单位(%)
合计:{{allnum1||0}}
均值:{{allavg1||0}}
-->
-
+ 单位(%)
均值:25
-->
-
+
@@ -221,7 +221,7 @@