区域概览表格sarfi9总计
This commit is contained in:
@@ -46,6 +46,7 @@
|
|||||||
import { ref, reactive, defineExpose, computed } from 'vue'
|
import { ref, reactive, defineExpose, computed } from 'vue'
|
||||||
import { defaultAttribute } from '@/components/table/defaultAttribute'
|
import { defaultAttribute } from '@/components/table/defaultAttribute'
|
||||||
import { mainHeight } from '@/utils/layout'
|
import { mainHeight } from '@/utils/layout'
|
||||||
|
import { Console } from 'console'
|
||||||
|
|
||||||
const areaData: any = ref([])
|
const areaData: any = ref([])
|
||||||
const levelData: any = ref([])
|
const levelData: any = ref([])
|
||||||
@@ -74,12 +75,18 @@ const info = (list: any, searchBeginTime: any, searchEndTime: any,selectedAreaNa
|
|||||||
frequency.value = list.areaStatistics.frequencySum
|
frequency.value = list.areaStatistics.frequencySum
|
||||||
areaName.value = selectedAreaName // 更新区域名称
|
areaName.value = selectedAreaName // 更新区域名称
|
||||||
|
|
||||||
|
let allSarfi9 = 0
|
||||||
|
|
||||||
|
list.areaStatistics.areaCalculation.forEach((item: any) => {
|
||||||
|
allSarfi9 += item.sarfi9
|
||||||
|
})
|
||||||
|
|
||||||
areaData.value = [
|
areaData.value = [
|
||||||
{
|
{
|
||||||
areaName: '总计',
|
areaName: '总计',
|
||||||
monitoringPoints: list.areaStatistics.monitoringPointSum,
|
monitoringPoints: list.areaStatistics.monitoringPointSum,
|
||||||
frequency: list.areaStatistics.frequencySum,
|
frequency: list.areaStatistics.frequencySum,
|
||||||
sarfi9: '/'
|
sarfi9: allSarfi9,
|
||||||
},
|
},
|
||||||
...list.areaStatistics.areaCalculation
|
...list.areaStatistics.areaCalculation
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user