From 5cee0f7e19269ac48a13fb90e245d9b794285349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E7=8E=89=E7=90=A6?= <7507756+jiang_yuqi@user.noreply.gitee.com> Date: Tue, 26 Mar 2024 02:32:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/projectQuality.vue | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/src/pages/projectQuality.vue b/src/pages/projectQuality.vue index a220e97..8caf381 100644 --- a/src/pages/projectQuality.vue +++ b/src/pages/projectQuality.vue @@ -327,7 +327,10 @@ style="position: absolute; cursor: pointer; right: 12px; top: 12px" @click="doShowMeasuredDlg" /> -
+
{ - this.measuredData = (d.data || []).map((it) => { + let list = []; + if (d.data.length > 0) { + if (n == 6) { + d.data.forEach((item) => { + if (item.measureInfo == "间距" || item.measureInfo == "长度") { + list.push(item); + } + }); + } else if (n == 0) { + list = d || []; + } else { + d.data.forEach((item) => { + if (item.measureInfo != "间距" && item.measureInfo != "长度") { + list.push(item); + } + }); + } + } + this.measuredData = list.map((it) => { return { name: it.measureInfo, value: it.id,