diff --git a/src/components/alarm/setAlarmText.vue b/src/components/alarm/setAlarmText.vue index 7f27582..97cf9d0 100644 --- a/src/components/alarm/setAlarmText.vue +++ b/src/components/alarm/setAlarmText.vue @@ -168,7 +168,11 @@ watch( } return select; }) as JlGraphic[]; - selectGraphic.push(...deviceFilter); + if (setAlartTextData.value.alertType !== '列车信号故障') { + selectGraphic.push(...deviceFilter); + } else { + selectGraphic = [deviceFilter[0]]; + } selectGraphic = Array.from(new Set(selectGraphic)); lineStore.getLineApp().updateSelected(...selectGraphic); setAlartTextData.value.deviceInfos = []; diff --git a/src/configs/UrlManage.ts b/src/configs/UrlManage.ts index 3a4b1e4..131b3e8 100644 --- a/src/configs/UrlManage.ts +++ b/src/configs/UrlManage.ts @@ -13,3 +13,12 @@ export function getHttpBase() { export function getWebsocketUrl() { return `ws://${getHost()}/ws-default`; } + +export function getShowSetAlarmTextButton() { + let show = false; + const host = window.location.hostname; + if (process.env.NODE_ENV == 'development' || host == '192.168.3.233') { + show = true; + } + return show; +} diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index 52a0b7f..0f95523 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -24,7 +24,7 @@ @click="alertSetShow = true" />