右侧控制显示面板,同时规整显示隐藏点的逻辑

This commit is contained in:
wzy-warehouse
2026-04-15 22:41:06 +08:00
parent df1fb2aea3
commit 459940d425
20 changed files with 520 additions and 144 deletions
@@ -6,13 +6,15 @@
type="primary"
@click="changeStatus"
circle
:title="`${useStatusStore().getDisasterChainPointShow() ? '关闭' : '打开'}灾害链影响点列表`"
>{{ useStatusStore().getDisasterChainPointShow() ? '-' : '+' }}</el-button
:title="`${useStatusStore().uiComponents.disasterChainPointShow ? '关闭' : '打开'}灾害链影响点列表`"
>{{
useStatusStore().uiComponents.disasterChainPointShow ? '-' : '+'
}}</el-button
>
</div>
<div
class="disaster-list-box"
v-show="useStatusStore().getDisasterChainPointShow()"
v-show="useStatusStore().uiComponents.disasterChainPointShow"
>
<header class="table-title">
<span>灾害链影响点列表</span>
@@ -122,9 +124,8 @@
// 切换面板显示状态
const changeStatus = () => {
useStatusStore().setDisasterChainPointShow(
!useStatusStore().getDisasterChainPointShow()
);
useStatusStore().uiComponents.disasterChainPointShow =
!useStatusStore().uiComponents.disasterChainPointShow;
};
// 上一页