bugfix - 车站及站台状态面板
This commit is contained in:
parent
5a41661008
commit
0fd5aa1382
@ -27,9 +27,8 @@
|
||||
bordered
|
||||
padding
|
||||
class="rounded-borders q-my-sm"
|
||||
v-if="isEmpjInfoShow || isSpksInfoShow || isMkxInfoShow"
|
||||
v-if="isSpksInfoShow || isMkxInfoShow"
|
||||
>
|
||||
<template v-if="isEmpjInfoShow">
|
||||
<QItem>
|
||||
<QCheckbox
|
||||
dense
|
||||
@ -39,7 +38,6 @@
|
||||
disable
|
||||
/>
|
||||
</QItem>
|
||||
</template>
|
||||
<template v-if="isSpksInfoShow">
|
||||
<QSeparator class="q-mt-sm" />
|
||||
<QItemLabel header>Spks继电器状态</QItemLabel>
|
||||
@ -145,13 +143,6 @@ const isMkxInfoShow = computed(() => {
|
||||
return platform.states.mkxJState?.replyState?.length !== 0;
|
||||
});
|
||||
|
||||
const isEmpjInfoShow = computed(() => {
|
||||
const selected = lineStore.selectedGraphics;
|
||||
if (!selected) return;
|
||||
const platform = selected[0] as Platform;
|
||||
return platform.states.empj;
|
||||
});
|
||||
|
||||
function setPlatformState(platform: Platform) {
|
||||
platformState.value = {
|
||||
id: platform.datas.id,
|
||||
|
@ -46,8 +46,9 @@ export const useIbpStore = defineStore('ibp', {
|
||||
const stations = lineScene.queryStore
|
||||
.queryByType<Station>(Station.Type)
|
||||
.filter(
|
||||
(station) =>
|
||||
station.datas.kilometerSystem.coordinateSystem === 'MAIN_LINE'
|
||||
(s) =>
|
||||
s.datas.kilometerSystem.coordinateSystem ===
|
||||
station.datas.kilometerSystem.coordinateSystem
|
||||
)
|
||||
.sort(
|
||||
(a, b) =>
|
||||
|
Loading…
Reference in New Issue
Block a user