Merge branch 'develop' of https://gitea.joylink.club/joylink/xian-ncc-da-client into develop
This commit is contained in:
commit
2e19a66a6b
|
@ -30,6 +30,7 @@ export enum showAlertTypeData {
|
|||
'列车完整性',
|
||||
'列车故障救援',
|
||||
'ats卡滞',
|
||||
'列车报点',
|
||||
I = 'I类信息',
|
||||
II = 'II类信息',
|
||||
III = 'III类信息',
|
||||
|
@ -67,6 +68,7 @@ export enum showAlertTypeData {
|
|||
TRAIN_INTEGRITY_ALARM = '列车完整性',
|
||||
TRAIN_FAULT_HELP = '列车故障救援',
|
||||
INTERLOCKED_ATS_STUCK = 'ats卡滞',
|
||||
TRAIN_RECORD = '列车报点',
|
||||
}
|
||||
|
||||
export enum saveAlertTypeData {
|
||||
|
@ -103,6 +105,7 @@ export enum saveAlertTypeData {
|
|||
列车完整性 = 'TRAIN_INTEGRITY_ALARM',
|
||||
列车故障救援 = 'TRAIN_FAULT_HELP',
|
||||
ats卡滞 = 'INTERLOCKED_ATS_STUCK',
|
||||
列车报点 = 'TRAIN_RECORD',
|
||||
}
|
||||
|
||||
export const GuardConfigTypeData = {
|
||||
|
|
|
@ -40,7 +40,9 @@
|
|||
<q-card>
|
||||
<q-item no-wrap class="column">
|
||||
<q-input
|
||||
v-if="setAlartTextData.alertType == '列车信号故障'"
|
||||
v-if="
|
||||
needShowTrainGroup.includes(setAlartTextData.alertType)
|
||||
"
|
||||
outlined
|
||||
label="车组号"
|
||||
v-model="configItem.groupId"
|
||||
|
@ -81,7 +83,11 @@
|
|||
@click="clearAllSelect(index)"
|
||||
/>
|
||||
<q-btn
|
||||
v-if="setAlartTextData.alertType == '列车信号故障'"
|
||||
v-if="
|
||||
needShowTrainGroup.includes(
|
||||
setAlartTextData.alertType
|
||||
)
|
||||
"
|
||||
label="删除测试组"
|
||||
color="secondary"
|
||||
@click="deleteSelectConfig(index)"
|
||||
|
@ -92,7 +98,7 @@
|
|||
</q-expansion-item>
|
||||
</q-list>
|
||||
<q-btn
|
||||
v-if="setAlartTextData.alertType == '列车信号故障'"
|
||||
v-if="needShowTrainGroup.includes(setAlartTextData.alertType)"
|
||||
class="q-mt-md"
|
||||
label="增加测试组"
|
||||
color="secondary"
|
||||
|
@ -116,7 +122,7 @@
|
|||
|
||||
<script setup lang="ts">
|
||||
import DraggableDialog from '../common/DraggableDialog.vue';
|
||||
import { onMounted, onUnmounted, ref, watch } from 'vue';
|
||||
import { computed, onMounted, onUnmounted, ref, watch } from 'vue';
|
||||
import { JlGraphic } from 'jl-graphic';
|
||||
import { Station } from 'src/graphics/station/Station';
|
||||
import { useLineStore } from 'src/stores/line-store';
|
||||
|
@ -124,6 +130,8 @@ import { QForm, useQuasar } from 'quasar';
|
|||
import { ApiError } from 'src/boot/axios';
|
||||
import { mockLocalDemoTestSet } from 'src/api/AlertMock';
|
||||
import { isArraysEqual, saveAlertTypeData } from './alarmInfoEnum';
|
||||
import { Section } from 'src/graphics/section/Section';
|
||||
import { Platform } from 'src/graphics/platform/Platform';
|
||||
|
||||
const lineStore = useLineStore();
|
||||
const setAlartTextData = ref<{
|
||||
|
@ -152,6 +160,7 @@ const setAlartTextData = ref<{
|
|||
},
|
||||
],
|
||||
});
|
||||
const needShowTrainGroup = ['列车信号故障', '列车报点'];
|
||||
const optionsAlertType = [
|
||||
'蓝显',
|
||||
'道岔失表',
|
||||
|
@ -160,7 +169,8 @@ const optionsAlertType = [
|
|||
'列车信号故障',
|
||||
'应急触发',
|
||||
'道岔挤岔',
|
||||
'列车完整性'
|
||||
'列车完整性',
|
||||
'列车报点',
|
||||
];
|
||||
const mapAlertType = new Map([
|
||||
['蓝显', ['station']],
|
||||
|
@ -171,18 +181,30 @@ const mapAlertType = new Map([
|
|||
['应急触发', ['Platform']],
|
||||
['道岔挤岔', ['Turnout']],
|
||||
['列车完整性', ['LogicSection']],
|
||||
['列车报点', ['Section']],
|
||||
]);
|
||||
enum DeviceType {
|
||||
station = 'DEVICE_TYPE_RTU',
|
||||
Turnout = 'DEVICE_TYPE_SWITCH',
|
||||
LogicSection = 'DEVICE_TYPE_TRACK',
|
||||
Platform = 'DEVICE_TYPE_PLATFORM',
|
||||
Section = 'DEVICE_TYPE_SECTION',
|
||||
}
|
||||
const optionsStatus = [
|
||||
const optionsStatus = computed(() => {
|
||||
if (setAlartTextData.value.alertType !== '列车报点') {
|
||||
return [
|
||||
{ label: '正常', value: 'NORMAL' },
|
||||
{ label: '设置', value: 'BEGIN' },
|
||||
{ label: '报警', value: 'ALERT' },
|
||||
];
|
||||
} else {
|
||||
return [
|
||||
{ label: '到站', value: 'NORMAL' },
|
||||
{ label: '离站', value: 'BEGIN' },
|
||||
];
|
||||
}
|
||||
});
|
||||
let allplatformRefSection: number[] = [];
|
||||
let selectGraphic: JlGraphic[] = [];
|
||||
|
||||
watch(
|
||||
|
@ -212,16 +234,22 @@ watch(
|
|||
setAlartTextData.value.alertType == '蓝显'
|
||||
) {
|
||||
select = true;
|
||||
}
|
||||
if (
|
||||
} else if (
|
||||
g.type == Section.Type &&
|
||||
setAlartTextData.value.alertType == '列车报点' &&
|
||||
allplatformRefSection.includes(g.id)
|
||||
) {
|
||||
select = true;
|
||||
} else if (
|
||||
g.type !== Station.Type &&
|
||||
g.type !== Section.Type &&
|
||||
mapAlertType.get(setAlartTextData.value.alertType)?.includes(g.type)
|
||||
) {
|
||||
select = true;
|
||||
}
|
||||
return select;
|
||||
}) as JlGraphic[];
|
||||
if (setAlartTextData.value.alertType !== '列车信号故障') {
|
||||
if (!needShowTrainGroup.includes(setAlartTextData.value.alertType)) {
|
||||
selectGraphic.push(...deviceFilter);
|
||||
} else if (deviceFilter.length) {
|
||||
selectGraphic = [deviceFilter[0]];
|
||||
|
@ -242,6 +270,12 @@ watch(
|
|||
);
|
||||
|
||||
onMounted(() => {
|
||||
const platforms = lineStore
|
||||
.getLineApp()
|
||||
.queryStore.queryByType<Platform>(Platform.Type);
|
||||
platforms.forEach((platform) =>
|
||||
allplatformRefSection.push(platform.datas.refSectionId)
|
||||
);
|
||||
lineStore.getLineApp().emit('options-update', {
|
||||
mouseToolOptions: {
|
||||
boxSelect: true,
|
||||
|
|
|
@ -42,7 +42,8 @@ export namespace alert {
|
|||
TRAIN_LOST_LOCATION = 27,
|
||||
TRAIN_INTEGRITY_ALARM = 28,
|
||||
TRAIN_FAULT_HELP = 29,
|
||||
INTERLOCKED_ATS_STUCK = 30
|
||||
INTERLOCKED_ATS_STUCK = 30,
|
||||
TRAIN_RECORD = 31
|
||||
}
|
||||
export enum TipTimeConfig {
|
||||
HOLIDAYS_MORN_PEAK = 0,
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 6ae749dad5f5aa90b78cea76e2d1d24451a25b46
|
||||
Subproject commit 7aef4b876fae6622d93a21c99fe293df7bf7d572
|
Loading…
Reference in New Issue