From c23ac06446a9a1edc41cc13723e5d0b8eabdfd63 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期三, 16 七月 2025 17:30:50 +0800 Subject: [PATCH] 2025.7.16 动态溯源新增合并异常 --- src/views/sourcetrace/component/PollutedExceptionItem.vue | 61 +++++++++++++++--------------- 1 files changed, 30 insertions(+), 31 deletions(-) diff --git a/src/views/sourcetrace/component/PollutedExceptionItem.vue b/src/views/sourcetrace/component/PollutedExceptionItem.vue index a6c80f9..d269ccd 100644 --- a/src/views/sourcetrace/component/PollutedExceptionItem.vue +++ b/src/views/sourcetrace/component/PollutedExceptionItem.vue @@ -52,37 +52,36 @@ 寮傚父绫诲瀷锛歿{ item.pollutedData.exception }} </el-text> </div> - <el-row style="border-top: 1px solid white"> - <el-col :span="6"> - <el-statistic - title="绐佸彉鍥犲瓙" - :value="item.pollutedData.factorName" - /> - </el-col> - <el-col :span="6"> - <el-statistic - v-if="item.pollutedData.exceptionType == 4" - title="鍙樺寲骞呭害" - :value="formatPercentage(item.pollutedData.avgPer)" - /> - <el-statistic - v-else-if="item.pollutedData.exceptionType == 9" - title="鍙樺寲閫熺巼" - :value="formatChangeRate(item.pollutedData.avgRate)" - suffix="" - /> - </el-col> - <el-col :span="6"> - <el-statistic title="鍙戠敓娆℃暟" :value="item.pollutedData.times" /> - </el-col> - <el-col :span="6"> - <el-statistic - title="骞冲潎椋庨��" - :value="item.pollutedData.windSpeed" - suffix="m/s" - /> - </el-col> - </el-row> + <div v-for="s in item.pollutedData.statisticMap" :key="s"> + <el-row style="border-top: 1px solid white"> + <el-col :span="6"> + <el-statistic title="绐佸彉鍥犲瓙" :value="s.factorName" /> + </el-col> + <el-col :span="6"> + <el-statistic + v-if="item.pollutedData.exceptionType == 4" + title="鍙樺寲骞呭害" + :value="formatPercentage(s.avgPer)" + /> + <el-statistic + v-else-if="item.pollutedData.exceptionType == 9" + title="鍙樺寲閫熺巼" + :value="formatChangeRate(s.avgRate)" + suffix="" + /> + </el-col> + <el-col :span="6"> + <el-statistic title="鍙戠敓娆℃暟" :value="item.pollutedData.times" /> + </el-col> + <el-col :span="6"> + <el-statistic + title="骞冲潎椋庨��" + :value="item.pollutedData.windSpeed" + suffix="m/s" + /> + </el-col> + </el-row> + </div> <el-row justify="space-between"> <!-- <el-link type="info" -- Gitblit v1.9.3