|
@@ -166,7 +166,7 @@
|
|
|
|
|
|
<template v-for="elem in item.list">
|
|
|
<div
|
|
|
- v-show="elem.visible !== false"
|
|
|
+ v-if="elem.visible !== false"
|
|
|
class="graphic"
|
|
|
:draggable="true"
|
|
|
@dragstart="dragStart($event, elem)"
|
|
@@ -2171,6 +2171,8 @@ const searchGraphics = async () => {
|
|
|
0,
|
|
|
activedPanels[activedGroup.value].length
|
|
|
);
|
|
|
+ }else{
|
|
|
+ activedPanels[activedGroup.value] = ['2.5D-光伏系统'];
|
|
|
}
|
|
|
|
|
|
for (const group of subGroups.value) {
|
|
@@ -2198,6 +2200,15 @@ const searchGraphics = async () => {
|
|
|
}else{
|
|
|
group.visible = true;
|
|
|
}
|
|
|
+ if(search.value&&flag){
|
|
|
+ //如果该组没有搜索到任何内容,则判断是否显示该组
|
|
|
+ if(group.name.includes(search.value)){
|
|
|
+ group.visible = true;
|
|
|
+ group.list.forEach((item: any) => {
|
|
|
+ item.visible = true;
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
if (search.value) {
|
|
|
activedPanels[activedGroup.value].push(group.name);
|
|
|
}
|