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