From f19e5267cc23b1c714dc746239864f33ed715dd9 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 05 十二月 2025 17:55:02 +0800
Subject: [PATCH] 完成地图制作任务功能初版
---
src/views/fysp/data-product/final-data-product/ProdMonInspecReport.vue | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/views/fysp/data-product/final-data-product/ProdMonInspecReport.vue b/src/views/fysp/data-product/final-data-product/ProdMonInspecReport.vue
index 664fcbe..f7c3afa 100644
--- a/src/views/fysp/data-product/final-data-product/ProdMonInspecReport.vue
+++ b/src/views/fysp/data-product/final-data-product/ProdMonInspecReport.vue
@@ -194,18 +194,18 @@
.fetchProblemCountByArea(opt)
.then(async (res) => {
if (res.success) {
- const data = res.data.sort((a, b) => b.ratio - a.ratio);
+ const data = res.data.sort((a, b) => b.proAvg - a.proAvg);
templateParam.townCount = data.length;
templateParam.topThree =
data
.slice(0, 3)
- .map((item) => `${item.townName}锛�${item.ratio.toFixed(1)}涓級`)
+ .map((item) => `${item.townName}锛�${item.proAvg.toFixed(1)}涓級`)
.join('銆�') + '銆�';
const res2 =
await dataprodmiddleApi.fetchProblemCountByArea(compareOpt);
if (res2.success) {
- const data2 = res2.data.sort((a, b) => b.ratio - a.ratio);
+ const data2 = res2.data.sort((a, b) => b.proAvg - a.proAvg);
const combineData = ProdProblemCountSummaryProxy.combineData(
data,
data2
--
Gitblit v1.9.3