From df1dcef265c03383ee7e65d301a30f18422af05b Mon Sep 17 00:00:00 2001 From: LiuJiaNan Date: Fri, 1 Mar 2024 17:58:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E6=97=B6=E8=BF=BD=E8=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/BI/components/bottom_options.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/BI/components/bottom_options.vue b/src/views/BI/components/bottom_options.vue index 8719d80..ad73358 100644 --- a/src/views/BI/components/bottom_options.vue +++ b/src/views/BI/components/bottom_options.vue @@ -396,6 +396,7 @@ const fnBottomOptionsListChange = (item, index) => { const fnBottomChildOptionsListChange = (index, item1, index1) => { const singleChoiceType = ["historicalTrajectory", "realTimeTracking"]; const currentItem = data.bottomOptionsList[index].list[index1]; + // 点击的是单选的,把其他的取消选中 if (singleChoiceType.includes(item1.type)) { for (let i = 0; i < data.bottomOptionsList.length; i++) { for (let j = 0; j < data.bottomOptionsList[i].list.length; j++) { @@ -416,6 +417,7 @@ const fnBottomChildOptionsListChange = (index, item1, index1) => { isHistoricalTrajectory.value = false; } } else { + // 点击的不是单选的,找出单选的取消选中 for (let i = 0; i < data.bottomOptionsList.length; i++) { for (let j = 0; j < data.bottomOptionsList[i].list.length; j++) { const currentForItem = data.bottomOptionsList[i].list[j];