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];