From 2c0c47aab61051007e9e80a067cf3fdbd5285971 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 6 Nov 2024 17:34:27 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E4=BB=AA=E8=A1=A8=E6=9D=BF=E3=80=81?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20=E9=83=A8=E5=88=86?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E6=95=B0=E6=8D=AE=E6=A0=B7=E5=BC=8F=E9=80=82?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dashboard-style/ComponentColorSelector.vue | 18 +++++++++--------- .../components/js/panel/common/common_table.ts | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/core/core-frontend/src/components/dashboard/subject-setting/dashboard-style/ComponentColorSelector.vue b/core/core-frontend/src/components/dashboard/subject-setting/dashboard-style/ComponentColorSelector.vue index dfbf7ff0bd..a5a19b3c05 100644 --- a/core/core-frontend/src/components/dashboard/subject-setting/dashboard-style/ComponentColorSelector.vue +++ b/core/core-frontend/src/components/dashboard/subject-setting/dashboard-style/ComponentColorSelector.vue @@ -20,7 +20,7 @@ {{ $t('chart.gradient') }}{{ $t('chart.color') }} @@ -36,7 +36,7 @@ @@ -50,7 +50,7 @@ { + const fieldsMap = fields.reduce((p, n) => { p[n.dataeaseName] = n return p }, {}) || {} - const quotaIndex = dataConfig.meta.findIndex(m => fielsMap[m.field].groupType === 'q') + const quotaIndex = dataConfig.meta.findIndex(m => fieldsMap[m.field].groupType === 'q') const data = chart.data?.tableRow if (quotaIndex === 0 || !data?.length) { return