bugfix - 车站及站台状态面板

This commit is contained in:
Yuan 2023-12-07 17:58:29 +08:00
parent 5a41661008
commit 0fd5aa1382
2 changed files with 13 additions and 21 deletions

View File

@ -27,19 +27,17 @@
bordered
padding
class="rounded-borders q-my-sm"
v-if="isEmpjInfoShow || isSpksInfoShow || isMkxInfoShow"
v-if="isSpksInfoShow || isMkxInfoShow"
>
<template v-if="isEmpjInfoShow">
<QItem>
<QCheckbox
dense
v-model="platformState.empj"
outlined
label="EMP继电器状态"
disable
/>
</QItem>
</template>
<QItem>
<QCheckbox
dense
v-model="platformState.empj"
outlined
label="EMP继电器状态"
disable
/>
</QItem>
<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,

View File

@ -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) =>