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

View File

@ -14,7 +14,7 @@
<q-toolbar-title> 北京RTSS测试系统 </q-toolbar-title> <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 <q-btn
round round
dense dense
@ -25,7 +25,7 @@
v-if="$q.screen.gt.sm" v-if="$q.screen.gt.sm"
> >
</q-btn> </q-btn>
<q-btn-dropdown icon="person"> <q-btn-dropdown flat stretch icon="person">
<q-list> <q-list>
<q-item clickable v-close-popup @click="showUserInfo"> <q-item clickable v-close-popup @click="showUserInfo">
<q-item-section> <q-item-section>