This commit is contained in:
fan 2023-07-26 09:57:19 +08:00
commit 047b06643b
2 changed files with 17 additions and 2 deletions

View File

@ -118,6 +118,9 @@ const SelectAllOptions: MenuItemOptions = {
const AllOptions: MenuItemOptions = {
name: '全部图层',
};
const physicalSection: MenuItemOptions = {
name: '图层-物理区段',
};
const linkOptions: MenuItemOptions = {
name: '图层-Link',
};
@ -147,6 +150,7 @@ const layerOptions: MenuItemOptions = {
name: '图层菜单',
items: [
AllOptions,
physicalSection,
linkOptions,
axleCountingSectionOptions,
LogicSectionOptions,
@ -293,6 +297,17 @@ export function initDrawApp(dom: HTMLElement): JlDrawApp {
g.visible = true;
});
};
physicalSection.handler = () => {
disvisibleGraphics.forEach((g) => {
g.visible = false;
});
sections.forEach((axleCountingSection) => {
axleCountingSection.visible = true;
});
turnouts.forEach((axleCountingSection) => {
axleCountingSection.visible = true;
});
};
linkOptions.handler = () => {
disvisibleGraphics.forEach((g) => {
g.visible = false;

View File

@ -14,7 +14,7 @@
<q-toolbar-title> 北京RTSS测试系统 </q-toolbar-title>
<div class="q-gutter-sm row items-center no-wrap">
<div class="q-gutter-sm no-wrap">
<q-btn
round
dense
@ -25,7 +25,7 @@
v-if="$q.screen.gt.sm"
>
</q-btn>
<q-btn-dropdown icon="person">
<q-btn-dropdown flat stretch icon="person">
<q-list>
<q-item clickable v-close-popup @click="showUserInfo">
<q-item-section>