From 2ec92e32cf4085a5378f763d2962936dac0c16bd Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 29 Sep 2022 14:34:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=A7=86=E5=9B=BE):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=A7=86=E5=9B=BE=E8=AE=A1=E7=AE=97=E5=AD=97=E6=AE=B5=E8=B7=9F?= =?UTF-8?q?=E9=9A=8F=E8=A7=86=E5=9B=BE=E5=A4=8D=E5=88=B6=E5=90=8E=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E5=91=8A=E8=AD=A6=E6=8F=90=E7=A4=BA=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/components/drag-item/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/chart/components/drag-item/utils.js b/frontend/src/views/chart/components/drag-item/utils.js index 675abee608..b2ab4bb007 100644 --- a/frontend/src/views/chart/components/drag-item/utils.js +++ b/frontend/src/views/chart/components/drag-item/utils.js @@ -10,7 +10,7 @@ export function getItemType(dimensionData, quotaData, item) { if (status === 'd') { for (let i = 0; i < dimensionData.length; i++) { const ele = dimensionData[i] - if (ele.id === item.id && ele.deType === item.deType && ele.groupType === item.groupType) { + if (((item.chartId && item.extField === 2 && item.tableId === ele.tableId) || ele.id === item.id) && ele.deType === item.deType && ele.groupType === item.groupType) { checked = true break } @@ -19,7 +19,7 @@ export function getItemType(dimensionData, quotaData, item) { if (status === 'q') { for (let i = 0; i < quotaData.length; i++) { const ele = quotaData[i] - if (ele.id === item.id && ele.deType === item.deType && ele.groupType === item.groupType) { + if (((item.chartId && item.extField === 2 && item.tableId === ele.tableId) || ele.id === item.id) && ele.deType === item.deType && ele.groupType === item.groupType) { checked = true break }