|
@@ -3,7 +3,7 @@
|
|
|
<!--头部搜索区-->
|
|
|
<el-row>
|
|
|
<el-form :model="searchData" :rules="rules" ref="ruleForm">
|
|
|
- <el-col :span="4">
|
|
|
+ <el-col :span="5">
|
|
|
<el-form-item prop="productId">
|
|
|
<el-input clearable v-model="searchData.productId" placeholder="请输入需要查询的商品ID"></el-input>
|
|
|
</el-form-item>
|
|
@@ -301,6 +301,9 @@ export default {
|
|
|
},
|
|
|
funSelectDate (day) {
|
|
|
this.numSelectDate = day
|
|
|
+ if (!this.zhishuData.length) {
|
|
|
+ return
|
|
|
+ }
|
|
|
this.$nextTick(() => {
|
|
|
this.initChartLine()
|
|
|
})
|
|
@@ -393,12 +396,20 @@ export default {
|
|
|
return prev
|
|
|
}
|
|
|
}, 0)
|
|
|
+ } else if (index === 4 || index === 6) {
|
|
|
+ sums[index] = values.reduce((prev, curr, index) => {
|
|
|
+ if (index !== values.length - 1) {
|
|
|
+ return prev + curr * 100
|
|
|
+ } else {
|
|
|
+ return (((prev + curr * 100) / values.length) / 100).toFixed(2)
|
|
|
+ }
|
|
|
+ })
|
|
|
} else {
|
|
|
sums[index] = values.reduce((prev, curr, index) => {
|
|
|
if (index !== values.length - 1) {
|
|
|
return prev + curr
|
|
|
} else {
|
|
|
- return (prev + curr) / values.length
|
|
|
+ return ((prev + curr) / values.length).toFixed(2)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -442,7 +453,6 @@ export default {
|
|
|
width: 60px;
|
|
|
height: 66px;
|
|
|
overflow: hidden;
|
|
|
- background: #eee;
|
|
|
|
|
|
img {
|
|
|
display: block;
|