修正统计平均值

This commit is contained in:
weicw
2021-08-23 18:20:11 +08:00
parent fb2239a0b7
commit a460e0c3e4
6 changed files with 105 additions and 272 deletions

View File

@@ -6,12 +6,6 @@
<!-- 搜索表单 -->
<a-form :model="where" layout="inline" :labelCol="{ offset: 1}">
<a-row>
<a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-form-item label="统计模块:">
<a-select :options="modelOptions" v-model:value="where.model" placeholder="统计模块">
</a-select>
</a-form-item>
</a-col>
<a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-form-item label="昼夜:">
<a-select :options="timeSlotOptions" v-model:value="where.timeSlot" placeholder="昼夜">
@@ -50,269 +44,46 @@
import {
pageRoadNoiseStatisticUrl
} from "@/api/ecology/road-sound"
const columns = [{
title: '测点',
dataIndex: 'place',
},
{
title: '路段',
dataIndex: 'road',
},
const columns = [
{
title: '城区',
dataIndex: 'area',
},
{
{
title: '市',
dataIndex: 'city',
},
{
title: '路长',
dataIndex: 'roadLength',
customRender: ({
text
}) => Math.round(text)
},
{
title: '路宽',
dataIndex: 'roadWidth',
customRender: ({
text
}) => Math.round(text)
},
{
title: '20分钟中小型车流量',
children: [{
title: '平均',
dataIndex: 'avgSmallTrafficFlow',
customRender: ({
text
}) => Math.round(text)
},
{
title: '最大',
dataIndex: 'maxSmallTrafficFlow',
customRender: ({
text
}) => Math.round(text)
},
{
title: '最小',
dataIndex: 'minSmallTrafficFlow',
customRender: ({
text
}) => Math.round(text)
},
],
},
{
title: '20分钟大型车流量',
children: [{
title: '平均',
dataIndex: 'avgLargeTrafficFlow',
customRender: ({
text
}) => Math.round(text)
},
{
title: '最大',
dataIndex: 'maxLargeTrafficFlow',
customRender: ({
text
}) => Math.round(text)
},
{
title: '最小',
dataIndex: 'minLargeTrafficFlow',
customRender: ({
text
}) => Math.round(text)
},
]
},
{
{
title: 'LeqdB(A)',
children: [{
title: '平均',
dataIndex: 'avgLeq',
customRender: ({
text
}) => Number(text).toFixed(2)
},
{
title: '最大',
dataIndex: 'maxLeq',
customRender: ({
text
}) => Number(text).toFixed(2)
},
{
title: '最小',
dataIndex: 'minLeq',
customRender: ({
text
}) => Number(text).toFixed(2)
},
]
dataIndex: 'avgLeq',
},
{
title: "SDdB(A)",
children: [{
title: '平均',
dataIndex: 'avgSD',
customRender: ({
text
}) => Number(text).toFixed(2)
},
{
title: '最大',
dataIndex: 'maxSD',
customRender: ({
text
}) => Number(text).toFixed(2)
},
{
title: '最小',
dataIndex: 'minSD',
customRender: ({
text
}) => Number(text).toFixed(2)
},
]
{
title: 'SDdB(A)',
dataIndex: 'avgSD',
},
{
title: "L10dB(A)",
children: [
{
title: '平均',
dataIndex: 'avgL10',
customRender: ({
text
}) => Number(text).toFixed(2)
},
{
title: '最大',
dataIndex: 'maxL10',
customRender: ({
text
}) => Number(text).toFixed(2)
},
{
title: '最小',
dataIndex: 'minL10',
customRender: ({
text
}) => Number(text).toFixed(2)
},
]
}, {
{
title: 'L10dB(A)',
dataIndex: 'avgL10',
},
{
title: 'L50dB(A)',
children: [{
title: '平均',
dataIndex: 'avgL50',
customRender: ({
text
}) => Number(text).toFixed(2)
},
{
title: '最大',
dataIndex: 'maxL50',
customRender: ({
text
}) => Number(text).toFixed(2)
},
{
title: '最小',
dataIndex: 'minL50',
customRender: ({
text
}) => Number(text).toFixed(2)
},
]
dataIndex: 'avgL50',
},
{
title: "L90dB(A)",
children: [
{
title: '平均',
dataIndex: 'avgL90',
customRender: ({
text
}) => Number(text).toFixed(2)
},
{
title: '最大',
dataIndex: 'maxL90',
customRender: ({
text
}) => Number(text).toFixed(2)
},
{
title: '最小',
dataIndex: 'minL90',
customRender: ({
text
}) => Number(text).toFixed(2)
},
]
{
title: 'L90dB(A)',
dataIndex: 'avgL90',
},
{
title: "LmindB(A)",
children: [{
title: '平均',
dataIndex: 'avgLmin',
customRender: ({
text
}) => Number(text).toFixed(2)
},
{
title: '最大',
dataIndex: 'maxLmin',
customRender: ({
text
}) => Number(text).toFixed(2)
},
{
title: '最小',
dataIndex: 'minLmin',
customRender: ({
text
}) => Number(text).toFixed(2)
},
]
}, {
title: 'LmaxdB(A)',
children: [{
title: '平均',
dataIndex: 'avgLmax',
customRender: ({
text
}) => Number(text).toFixed(2)
},
{
title: '最大',
dataIndex: 'maxLmax',
customRender: ({
text
}) => Number(text).toFixed(2)
},
{
title: '最小',
dataIndex: 'minLmax',
customRender: ({
text
}) => Number(text).toFixed(2)
},
]
},
]
export default {
name: 'StatisticSoundRoadAverage',
@@ -324,7 +95,7 @@
url: pageRoadNoiseStatisticUrl,
data: [],
where: {
model: "place"
model: "area"
},
timeScope: [],
columns,
@@ -380,7 +151,7 @@
/* 重置搜索 */
reset() {
this.where = {
model: "place",
model: "area",
timeSlot: "昼"
};
this.this.timeScope = []