打包配置以及列车故障只选一个设备
This commit is contained in:
parent
060b909a9f
commit
01f2e9cccf
@ -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 = [];
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -24,7 +24,7 @@
|
||||
@click="alertSetShow = true"
|
||||
/>
|
||||
<q-btn
|
||||
v-show="route.path.includes('monitor')"
|
||||
v-if="showSetAlarmTextButton && route.path.includes('line/monitor')"
|
||||
color="info"
|
||||
label="故障测试"
|
||||
class="q-mr-sm"
|
||||
@ -126,7 +126,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, reactive } from 'vue';
|
||||
import { ref, reactive, onMounted } from 'vue';
|
||||
import SysMenu from 'src/components/SysMenu.vue';
|
||||
import { useRouter, useRoute } from 'vue-router';
|
||||
import { Dialog, useQuasar } from 'quasar';
|
||||
@ -140,6 +140,7 @@ import commonAlarm from 'src/components/alarm/commonAlarm.vue';
|
||||
import setAlarmText from 'src/components/alarm/setAlarmText.vue';
|
||||
import { saveAlertTypeData } from 'src/components/alarm/alarmInfoEnum';
|
||||
import NCC from '/logo/NCC_白.png';
|
||||
import { getShowSetAlarmTextButton } from 'src/configs/UrlManage';
|
||||
|
||||
const leftDrawerOpen = ref(false);
|
||||
const router = useRouter();
|
||||
@ -182,6 +183,12 @@ function logOut() {
|
||||
});
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
if (getShowSetAlarmTextButton()) {
|
||||
showSetAlarmTextButton.value = true;
|
||||
}
|
||||
});
|
||||
|
||||
//模拟报警
|
||||
const $q = useQuasar();
|
||||
const alertSetShow = ref(false);
|
||||
@ -242,6 +249,7 @@ async function alarmMockSet() {
|
||||
}
|
||||
}
|
||||
|
||||
const showSetAlarmTextButton = ref(false);
|
||||
function openSetAlarmTextDialog() {
|
||||
$q.dialog({
|
||||
component: setAlarmText,
|
||||
|
Loading…
Reference in New Issue
Block a user