diff --git a/src/jmap/theme/fuzhou_01/menus/dialog/trainControl.vue b/src/jmap/theme/fuzhou_01/menus/dialog/trainControl.vue index 963ff63a8..9d28dc08d 100644 --- a/src/jmap/theme/fuzhou_01/menus/dialog/trainControl.vue +++ b/src/jmap/theme/fuzhou_01/menus/dialog/trainControl.vue @@ -86,7 +86,7 @@ import { mapGetters } from 'vuex'; import { MapDeviceType, OperationEvent } from '@/scripts/ConstDic'; import ConfirmTrain from './childDialog/confirmTrain'; import NoticeInfo from './childDialog/childDialog/noticeInfo'; -import OperateHandler from '@/scripts/plugin/trainingOperateHandler'; +import OperateHandler from '@/scripts/plugin/OperateHandler'; export default { name: 'TrainControl', diff --git a/src/scripts/plugin/CommandEnum.js b/src/scripts/plugin/CommandEnum.js new file mode 100644 index 000000000..1705aa522 --- /dev/null +++ b/src/scripts/plugin/CommandEnum.js @@ -0,0 +1,174 @@ +export default { + Switch: { + /** 设置故障 */ + CMD_SWITCH_ADD_FAULT: {value:'Switch_Add_Fault', label: '设置道岔故障'}, + /** 清除故障 */ + CMD_SWITCH_REMOVE_FAULT: {value:'Switch_Remove_Fault', label: '清除道岔故障'}, + /** 单锁 */ + CMD_SWITCH_SINGLE_LOCK: {value:'Switch_Single_Lock', label: '单锁'}, + /** 单解 */ + CMD_SWITCH_SINGLE_UNLOCK: {value:'Switch_Single_Unlock', label: '单解'}, + /** 封锁 */ + CMD_SWITCH_BLOCK: {value:'Switch_Block', label: '封锁'}, + /** 解封 */ + CMD_SWITCH_UNBLOCK: {value:'Switch_Unblock', label: '解封'}, + /** 切除 */ + CMD_SWITCH_CUT_OFF: {value:'Switch_Cut_Off', label: '切除'}, + /** 激活 */ + CMD_SWITCH_ACTIVE: {value:'Switch_Active', label: '激活'}, + /** 设置临时限速 */ + CMD_SWITCH_SET_LIMIT_SPEED: {value:'Switch_Set_Limit_Speed', label: '设置临时限速'}, + /** 取消临时限速 */ + CMD_SWITCH_CANCEL_LIMIT_SPEED: {value:'Switch_Cancel_Limit_Speed', label: '取消临时限速'}, + /** 计轴预复位 */ + CMD_SWITCH_AXIS_PRE_RESET: {value:'Switch_Axis_Pre_Reset', label: '计轴预复位'}, + /** 故障解锁 */ + CMD_SWITCH_FAULT_UNLOCK: {value:'Switch_Fault_Unlock', label: '故障解锁'}, + /** 转动 */ + CMD_SWITCH_TURN: {value:'Switch_Turn', label: '转动'}, + /** 强扳 */ + CMD_SWITCH_FORCE_TURN: {value:'Switch_Force_Turn', label: '强扳'} + }, + + // 控制模式操作 + StationControl: { + /** 请求站控 */ + CMD_CM_APPLY_FOR_STATION_CONTROL: {value:'CM_Apply_For_Station_Control', label: '请求站控'}, + /** 请求中控 */ + CMD_CM_APPLY_FOR_CENTER_CONTROL: {value:'CM_Apply_For_Center_Control', label: '请求中控'}, + /** 强制站控 */ + CMD_CM_FORCE_STATION_CONTROL: {value:'CM_Force_Station_Control', label: '强制站控'}, + /** 紧急站控 */ + CMD_CM_EMERGENCY_STATION_CONTROL: {value:'CM_Emergency_Station_Control', label: '紧急站控'}, + /** 回复站控请求(同意/拒绝) */ + CMD_CM_REPLY_STATION_CONTROL: {value:'CM_Reply_Station_Control', label: '回复站控请求'}, + /** 回复中控请求(同意/拒绝) */ + CMD_CM_REPLY_CENTER_CONTROL: {value:'CM_Reply_Center_Control', label: '回复中控请求'} + + }, + + // 信号机操作 + Signal: { + /** 设置故障 */ + CMD_SIGNAL_ADD_FAULT: {value:'Signal_Add_Fault', label: '设置信号机故障'}, + /** 清除故障 */ + CMD_SIGNAL_REMOVE_FAULT: {value:'Signal_Remove_Fault', label: '清除信号机故障'}, + /** 封锁 */ + CMD_SIGNAL_BLOCK: {value:'Signal_Block', label: '封锁'}, + /** 解封 */ + CMD_SIGNAL_UNBLOCK: {value:'Signal_Unblock', label: '解封'}, + /** 排列进路 */ + CMD_SIGNAL_SET_ROUTE: {value:'Signal_Set_Route', label: '排列进路'}, + /** 取消进路 */ + CMD_SIGNAL_CANCEL_ROUTE: {value:'Signal_Cancel_Route', label: '取消进路'}, + /** 人解进路 */ + CMD_SIGNAL_HUMAN_RELEASE_ROUTE: {value:'Signal_Human_Release_Route', label: '人解进路'}, + /** 信号关灯 */ + CMD_SIGNAL_CLOSE_SIGNAL: {value:'Signal_Close_Signal', label: '信号关灯'}, + /** 信号重开 */ + CMD_SIGNAL_REOPEN_SIGNAL: {value:'Signal_Reopen_Signal', label: '信号重开'}, + /** 引导进路 */ + CMD_SIGNAL_ROUTE_GUIDE: {value:'Signal_Route_Guide', label: '引导进路'}, + /** 进路自排开 */ + CMD_SIGNAL_OPEN_AUTO_SETTING: {value:'Signal_Open_Auto_Setting', label: '进路自排开'}, + /** 进路自排关 */ + CMD_SIGNAL_CLOSE_AUTO_SETTING: {value:'Signal_Close_Auto_Setting', label: '进路自排关'}, + /** 设置联锁自动进路*/ + CMD_SIGNAL_SET_CI_AUTO: {value:'Signal_Set_CI_Auto', label: '设置联锁自动进路'}, + /** 取消联锁自动进路*/ + CMD_SIGNAL_CANCEL_CI_AUTO: {value:'Signal_Cancel_CI_Auto', label: '取消联锁自动进路'}, + /** 设置联锁自动触发 */ + CMD_SIGNAL_SET_CI_AUTO_TRIGGER: {value:'Signal_Set_CI_Auto_Trigger', label: '设置联锁自动触发'}, + /** 取消联锁自动触发 */ + CMD_SIGNAL_CANCEL_CI_AUTO_TRIGGER: {value:'Signal_Cancel_CI_Auto_Trigger', label: '取消联锁自动触发'} + }, + + // 物理区段操作 + Section: { + /** 设置故障 */ + CMD_SECTION_ADD_FAULT: {value:'Section_Add_Fault', label: '设置区段故障'}, + /** 清除故障 */ + CMD_SECTION_REMOVE_FAULT: {value:'Section_Remove_Fault', label: '清除区段故障'}, + /** 封锁 */ + CMD_SECTION_BLOCK: {value:'Section_Block', label: '封锁'}, + /** 解封 */ + CMD_SECTION_UNBLOCK: {value:'Section_Unblock', label: '解封'}, + /** 切除 */ + CMD_SECTION_CUT_OFF: {value:'Section_Cut_Off', label: '切除'}, + /** 激活 */ + CMD_SECTION_ACTIVE: {value:'Section_Active', label: '激活'}, + /** 设置临时限速 */ + CMD_SECTION_SET_LIMIT_SPEED: {value:'Section_Set_Limit_Speed', label: '设置临时限速'}, + /** 计轴预复位 */ + CMD_SECTION_AXIS_PRE_RESET: {value:'Section_Axis_Pre_Reset', label: '计轴预复位'}, + /** 故障解锁 */ + CMD_SECTION_FAULT_UNLOCK: {value:'Section_Fault_Unlock', label: '故障解锁'}, + /** 取消临时限速 */ + CMD_SECTION_CANCEL_LIMIT_SPEED:{value:'Section_Cancel_Limit_Speed', label: '取消临时限速'} + }, + + // 站台 + StationStand: { + /** 设置故障 */ + CMD_STAND_ADD_FAULT: {value:'Stand_Add_Fault', label: '设置站台故障'}, + /** 清除故障 */ + CMD_STAND_REMOVE_FAULT: {value:'Stand_Remove_Fault', label: '清除站台故障'}, + /** 设置跳停 */ + CMD_STAND_SET_JUMP_STOP: {value:'Stand_Set_Jump_Stop', label: '设置跳停'}, + /** 取消跳停 */ + CMD_STAND_CANCEL_JUMP_STOP: {value:'Stand_Cancel_Jump_Stop', label: '取消跳停'}, + /** 设置扣车 */ + CMD_STAND_SET_HOLD_TRAIN: {value:'Stand_Set_Hold_Train', label: '设置扣车'}, + /** 取消扣车 */ + CMD_STAND_CANCEL_HOLD_TRAIN: {value:'Stand_Cancel_Hold_Train', label: '取消扣车'}, + /** 强制取消扣车 */ + CMD_STAND_FORCE_CANCEL_HOLD_TRAIN: {value:'Stand_Force_Cancel_Hold_Train', label: '强制取消扣车'}, + /** 全线取消扣车 */ + CMD_STAND_WHOLE_LINE_CANCEL_HOLD_TRAIN: {value:'Stand_Whole_Line_Cancel_Hold_Train', label: '全线取消扣车'}, + /** 提前发车 */ + CMD_STAND_EARLY_DEPART: {value:'Stand_Early_Depart', label: '提前发车'}, + /** 设置停站时间 */ + CMD_STAND_SET_PARK_TIME: {value:'Stand_Set_Park_Time', label: '设置停站时间'}, + /** 设置站间运行时间(设置运行等级) */ + CMD_STAND_SET_RUN_TIME: {value:'Stand_Set_Run_Time', label: '设置站间运行时间'}, + /** 设置折返策略 */ + CMD_STAND_SET_REENTRY_STRATEGY: {value:'Stand_Set_Reentry_Strategy', label: '设置折返策略'}, + /** 查看站台状态 */ + CMD_STAND_VIEW_STATUS:{value:'Stand_View_Status', label: '查看站台状态'} + }, + + Station: { + /** 设置故障 */ + CMD_STATION_ADD_FAULT: {value:'Station_Add_Fault', label: '设置车站故障'}, + /** 清除故障 */ + CMD_STATION_REMOVE_FAULT: {value:'Station_Remove_Fault', label: '清除车站故障'}, + /** 全站设置联锁自动触发 */ + CMD_STATION_SET_CI_AUTO_TRIGGER: {value:'Station_Set_CI_Auto_Trigger', label: '全站设置联锁自动触发'}, + /** 全站取消联锁自动触发 */ + CMD_STATION_CANCEL_CI_AUTO_TRIGGER: {value:'Station_Cancel_CI_Auto_Trigger', label: '全站取消联锁自动触发'}, + /** 所有进路自排开 */ + CMD_STATION_OPEN_AUTO_SETTING: {value:'Station_Open_Auto_Setting', label: '所有进路自排开'}, + /** 所有进路自排关 */ + CMD_STATION_CLOSE_AUTO_SETTING: {value:'Station_Close_Auto_Setting', label: '所有进路自排关'} + }, + + // 列车 + Train: { + /** 设置故障 */ + CMD_TRAIN_ADD_FAULT: {value:'Train_Add_Fault', label: '设置列车故障'}, + /** 清除故障 */ + CMD_TRAIN_REMOVE_FAULT: {value:'Train_Remove_Fault', label: '清除列车故障'}, + /** 人工限速行驶 */ + CMD_TRAIN_MANUAL_LIMIT_DRIVE: {value:'Train_Manual_Limit_Drive', label: '人工限速行驶'}, + /** 按进路闭塞法行车 */ + CMD_TRAIN_MANUAL_ROUTE_BLOCKING_DRIVE: {value:'Train_Manual_Route_Blocking_Drive', label: '按进路闭塞法行车'}, + /** 越信号机红灯 */ + CMD_TRAIN_PASS_RED_SIGNAL: {value:'Train_Pass_Red_Signal', label: '越信号机红灯'}, + /** 引导信号行车 */ + CMD_TRAIN_DRIVE_BY_GUIDE_SIGNAL: {value:'Train_Drive_By_Guide_Signal', label: '引导信号行车'} + }, + + LimitControl: { + + } +};