Merge branch 'test_dispaly' of https://git.code.tencent.com/lian-cbtc/jl-client into test_dispaly

This commit is contained in:
joylink_cuiweidong 2022-10-17 18:09:13 +08:00
commit e1d935cb5f
9 changed files with 370 additions and 336 deletions

View File

@ -1,277 +1,298 @@
export default {
ConstSelect: {
Status: [{ label: '无效', value: '0' }, { label: '有效', value: '1' }],
ConstSelect: {
Status: [{ label: '无效', value: '0' }, { label: '有效', value: '1' }],
Whether: [{ label: '否', value: false }, { label: '是', value: true }],
Whether: [{ label: '否', value: false }, { label: '是', value: true }],
DirectionCodeList: [{ value: '2', label: '上行' }, { value: '1', label: '下行' }],
DirectionCodeList: [{ value: '2', label: '上行' }, { value: '1', label: '下行' }],
SignalLeftOrRightList: [{ label: '左侧', value: 'L' }, { label: '右侧', value: 'R' }],
SignalLeftOrRightList: [{ label: '左侧', value: 'L' }, { label: '右侧', value: 'R' }],
roleList: [
{ label: '实训用户', value: '01' },
{ label: '地图生产者', value: '02' },
{ label: '课程生成者', value: '03' },
{ label: '系统管理员', value: '04' },
{ label: '超级管理员', value: '05' },
{ label: '销售用户', value: '06' },
],
roleList: [
{ label: '实训用户', value: '01' },
{ label: '地图生产者', value: '02' },
{ label: '课程生成者', value: '03' },
{ label: '系统管理员', value: '04' },
{ label: '超级管理员', value: '05' },
{ label: '销售用户', value: '06' }
],
examResultList: [
{ label: '未计算', value: '01' },
{ label: '通过', value: '02' },
{ label: '未通过', value: '03' },
{ label: '已放弃', value: '04' },
],
examResultList: [
{ label: '未计算', value: '01' },
{ label: '通过', value: '02' },
{ label: '未通过', value: '03' },
{ label: '已放弃', value: '04' }
],
PermissionUseList: [{ label: '公用', value: true }, { label: '专用', value: false }],
PermissionUseList: [{ label: '公用', value: true }, { label: '专用', value: false }],
RegionTypeList: [
{ label: '零点西上行', value: '01' },
{ label: '零点西下行', value: '02' },
{ label: '零西渡线/', value: '03' },
{ label: '零西渡线\\', value: '04' },
{ label: 'PGY一联段线', value: '05' },
{ label: '零点东上行', value: '06' },
{ label: '零点东下行', value: '07' },
{ label: '零东渡线/', value: '08' },
{ label: '零东渡线\\', value: '09' },
{ label: '库线1', value: '10' },
{ label: '库线2', value: '11' },
{ label: '库线渡线/', value: '12' },
{ label: '库线渡线\\', value: '13' },
{ label: '联络线1', value: '14' },
{ label: '联络线2', value: '15' },
{ label: 'SHZ一联段线', value: '16' },
{ label: 'SHZ二联段线', value: '17' },
{ label: 'SHD三联段线', value: '18' },
{ label: 'SHD四联段线', value: '19' },
],
roleTypeNew: [
{ label: '管理员', value: 'ADMIN', enLabel: 'Admin ' },
{ label: '教员', value: 'Instructor', enLabel: 'Instructor ' },
{ label: '行值', value: 'STATION_SUPERVISOR', enLabel: 'Attendant ' },
{ label: '观众', value: 'AUDIENCE', enLabel: 'Audience ' },
{ label: '司机', value: 'DRIVER', enLabel: 'Driver ' },
{ label: '通号', value: 'MAINTAINER', enLabel: 'Repairman ' },
{ label: '车辆段/停车场调度', value: 'DEPOT_DISPATCHER', enLabel: 'Depot dispatcher ' },
{ label: '电力调度', value: 'ELECTRIC_DISPATCHER', enLabel: 'Electric dispatcher' },
{ label: '行调', value: 'DISPATCHER', enLabel: 'Dispatcher ' },
{ label: '上级部门', value: 'PARENT_DEPARTMENT', enLabel: 'Parent department' },
{ label: '车辆段/停车场信号楼', value: 'SIGNAL_BUILDING', enLabel: 'Signal Building' },
{ label: '车站助理', value: 'STATION_ASSISTANT', enLabel: 'StationAssistant' },
{ label: '车站站长', value: 'STATION_MASTER', enLabel: 'StationMaster' },
{ label: '车站信号员', value: 'STATION_SIGNALER', enLabel: 'StationSignaler' },
{ label: '车站客运员', value: 'STATION_PASSENGER', enLabel: 'StationPassenger' },
{ label: '车站扳道员', value: 'STATION_SWITCH_MAN', enLabel: 'StationSwitchMan' },
{ label: '车站引导员', value: 'STATION_FACILITATOR', enLabel: 'StationFacilitator' },
{ label: '车站工务工', value: 'STATION_WORKER', enLabel: 'StationWorker' },
{ label: '设备管理员', value: 'DEVICE_MANAGER', enLabel: 'DeviceManager' },
{ label: '车务段段长', value: 'TRAIN_MASTER', enLabel: 'Train_Master' },
],
RegionTypeList: [
{ label: '零点西上行', value: '01' },
{ label: '零点西下行', value: '02' },
{ label: '零西渡线/', value: '03' },
{ label: '零西渡线\\', value: '04' },
{ label: 'PGY一联段线', value: '05' },
{ label: '零点东上行', value: '06' },
{ label: '零点东下行', value: '07' },
{ label: '零东渡线/', value: '08' },
{ label: '零东渡线\\', value: '09' },
{ label: '库线1', value: '10' },
{ label: '库线2', value: '11' },
{ label: '库线渡线/', value: '12' },
{ label: '库线渡线\\', value: '13' },
{ label: '联络线1', value: '14' },
{ label: '联络线2', value: '15' },
{ label: 'SHZ一联段线', value: '16' },
{ label: 'SHZ二联段线', value: '17' },
{ label: 'SHD三联段线', value: '18' },
{ label: 'SHD四联段线', value: '19' }
],
roleTypeNew: [
{ label: '管理员', value: 'ADMIN', enLabel: 'Admin ' },
{ label: '教员', value: 'Instructor', enLabel: 'Instructor ' },
{ label: '行值', value: 'STATION_SUPERVISOR', enLabel: 'Attendant ' },
{ label: '观众', value: 'AUDIENCE', enLabel: 'Audience ' },
{ label: '司机', value: 'DRIVER', enLabel: 'Driver ' },
{ label: '通号', value: 'MAINTAINER', enLabel: 'Repairman ' },
{ label: '车辆段/停车场调度', value: 'DEPOT_DISPATCHER', enLabel: 'Depot dispatcher ' },
{ label: '电力调度', value: 'ELECTRIC_DISPATCHER', enLabel: 'Electric dispatcher' },
{ label: '行调', value: 'DISPATCHER', enLabel: 'Dispatcher ' },
{ label: '上级部门', value: 'PARENT_DEPARTMENT', enLabel: 'Parent department' },
{ label: '车辆段/停车场信号楼', value: 'SIGNAL_BUILDING', enLabel: 'Signal Building' },
{ label: '车站助理', value: 'STATION_ASSISTANT', enLabel: 'StationAssistant' },
{ label: '车站站长', value: 'STATION_MASTER', enLabel: 'StationMaster' },
{ label: '车站信号员', value: 'STATION_SIGNALER', enLabel: 'StationSignaler' },
{ label: '车站客运员', value: 'STATION_PASSENGER', enLabel: 'StationPassenger' },
{ label: '车站扳道员', value: 'STATION_SWITCH_MAN', enLabel: 'StationSwitchMan' },
{ label: '车站引导员', value: 'STATION_FACILITATOR', enLabel: 'StationFacilitator' },
{ label: '车站工务工', value: 'STATION_WORKER', enLabel: 'StationWorker' },
{ label: '设备管理员', value: 'DEVICE_MANAGER', enLabel: 'DeviceManager' },
{ label: '车务段段长', value: 'TRAIN_MASTER', enLabel: 'Train_Master' }
],
roleTypeList: [
{label: '行调', value: 'DISPATCHER'},
{label: '行值', value: 'STATION_SUPERVISOR'},
{label: '司机', value: 'DRIVER'},
{label: '通号', value: 'MAINTAINER'},
{label: '车辆段/停车场调度', value: 'DEPOT_DISPATCHER'},
{label: '车辆段/停车场信号楼', value: 'SIGNAL_BUILDING'},
{label: '车站助理', value: 'STATION_ASSISTANT'},
{label: '车站站长', value: 'STATION_MASTER'},
{label: '车站信号员', value: 'STATION_SIGNALER'},
{label: '车站客运员', value: 'STATION_PASSENGER'},
{label: '车站扳道员', value: 'STATION_SWITCH_MAN'},
{label: '车站引导员', value: 'STATION_FACILITATOR'},
{label: '车站工务工', value: 'STATION_WORKER'},
{label: '车务段段长', value: 'TRAIN_MASTER'},
{label: '工电调度', value: 'ELECTRIC_DISPATCHER'},
{label: '上级部分', value: 'PARENT_DEPARTMENT'},
{label: '派班员', value: 'SCHEDULING'},
{label: '设备管理员', value: 'DEVICE_MANAGER'},
{label: '值班主任', value: 'SHIFT_MANAGER'},
{label: '环控调度', value: 'ENVIRONMENT_DISPATCHER'}
],
releaseReview: [
{ enlabel: 'Unpublished', label: '未发布', value: '0' },
{ enlabel: 'Pending review', label: '待审核', value: '1' },
{ enlabel: 'Successfully released', label: '发布成功', value: '2' },
{ enlabel: 'Overrule', label: '被驳回', value: '3' }
],
productType: [
{ enlabel: 'Lesson System', label: '教学系统', value: 'Lesson' },
{ enlabel: 'Exam System', label: '考试系统', value: 'Exam' },
{ enlabel: 'Simulation System', label: '仿真系统', value: 'Simulation' },
{ enlabel: 'Plan Draw', label: '运行图编制', value: 'Plan' }
],
customeredProductType: [{ enlabel: 'Plan Draw', label: '运行图编制', value: 'Plan' }],
releaseReview: [
{ enlabel: 'Unpublished', label: '未发布', value: '0' },
{ enlabel: 'Pending review', label: '待审核', value: '1' },
{ enlabel: 'Successfully released', label: '发布成功', value: '2' },
{ enlabel: 'Overrule', label: '被驳回', value: '3' },
],
productType: [
{ enlabel: 'Lesson System', label: '教学系统', value: 'Lesson' },
{ enlabel: 'Exam System', label: '考试系统', value: 'Exam' },
{ enlabel: 'Simulation System', label: '仿真系统', value: 'Simulation' },
{ enlabel: 'Plan Draw', label: '运行图编制', value: 'Plan' },
],
customeredProductType: [{ enlabel: 'Plan Draw', label: '运行图编制', value: 'Plan' }],
controlMode: [
{ label: '中控', value: 'OperateCenterControl' },
{ label: '站控', value: 'LocalStationControl' },
{ label: '紧急站控', value: 'EmergencyStationControl' },
{ label: '联锁控', value: 'InterlockStationControl' }
],
controlMode: [
{ label: '中控', value: 'OperateCenterControl' },
{ label: '站控', value: 'LocalStationControl' },
{ label: '紧急站控', value: 'EmergencyStationControl' },
{ label: '联锁控', value: 'InterlockStationControl' },
],
simulationRole: [
{ label: '行调操作', value: 'Center' },
{ label: '现地操作', value: 'Local' },
{ label: '车辆段操作', value: 'Depot_IL' }
],
simulationRole: [
{ label: '行调操作', value: 'Center' },
{ label: '现地操作', value: 'Local' },
{ label: '车辆段操作', value: 'Depot_IL' },
],
deviceTypeList: [
{ label: '区段', value: 'Section' },
{ label: '道岔', value: 'Switch' },
{ label: '信号机', value: 'Signal' },
{ label: '站台', value: 'Stand' },
{ label: '车站', value: 'Station' },
{ label: '控制模式', value: 'ControlConvertMenu' },
{ label: '车次窗', value: 'TrainWindow' },
{ label: '全线限速', value: 'LimitControl' },
{ label: '司机', value: 'Driver' },
{ label: '列车', value: 'Train' },
{ label: '方向杆', value: 'DirectionRod' },
{ label: 'CTC', value: 'CTC' },
{ label: '路票', value: 'RAIL' },
{ label: '会话', value: 'Conversation' }
],
deviceTypeList: [
{ label: '区段', value: 'Section' },
{ label: '道岔', value: 'Switch' },
{ label: '信号机', value: 'Signal' },
{ label: '站台', value: 'Stand' },
{ label: '车站', value: 'Station' },
{ label: '控制模式', value: 'ControlConvertMenu' },
{ label: '车次窗', value: 'TrainWindow' },
{ label: '全线限速', value: 'LimitControl' },
{ label: '司机', value: 'Driver' },
{ label: '列车', value: 'Train' },
{ label: '方向杆', value: 'DirectionRod' },
{ label: 'CTC', value: 'CTC' },
{ label: '路票', value: 'RAIL' },
{ label: '会话', value: 'Conversation' },
],
simulationDeviceList: [
{ label: '区段', value: 'SECTION' },
{ label: '计轴器', value: 'AXLE_COUNTER' },
{ label: '道岔', value: 'SWITCH' },
{ label: '信号机', value: 'SIGNAL' },
{ label: '车站', value: 'STATION' },
{ label: '站台', value: 'STAND' },
{ label: '屏蔽门', value: 'PSD' },
{ label: '紧急停车按钮', value: 'ESP' },
{ label: '区域控制器', value: 'ZC' },
{ label: '线路控制器', value: 'LC' },
{ label: '进路', value: 'ROUTE' },
{ label: '进路延续保护', value: 'OVERLAP' },
{ label: '自动信号', value: 'AUTO_SIGNAL' },
{ label: '自动折返', value: 'CYCLE' },
{ label: '列车', value: 'TRAIN' },
{ label: '列车门', value: 'TRAIN_DOOR' },
{ label: '交路', value: 'ROUTING' },
{ label: '站间运行等级', value: 'RUN_LEVEL' },
],
QuestionTypeList: [
{ label: '选择题', value: 'select' },
{ label: '判断题', value: 'judge' },
{ label: '多选题', value: 'multi' },
{ label: '填空题', value: 'fill' },
{ label: '问答题', value: 'answer' },
],
// 新版的产品类型枚举
prdType: [
{ enlabel: 'ATS local workstation', label: 'ATS现地工作站', value: '01' },
{ enlabel: 'ATS Traffic dispatching workstation', label: 'ATS行调工作站', value: '02' },
{ enlabel: 'Comprehensive exercise cloud platform', label: '综合演练云平台', value: '03' },
{ enlabel: 'Driver simulation driving system', label: '司机模拟驾驶系统', value: '04' },
{ enlabel: 'Dispatch workstation', label: '派班工作站', value: '05' },
{ enlabel: 'ISCS workstation', label: 'ISCS工作站', value: '06' },
{ enlabel: 'Interlocking station at depot', label: '车辆段联锁工作站', value: '09' },
{ enlabel: 'Large screen vehicle real workstation', label: '应急调度指挥系统', value: '10' },
],
trainingDeviceType: {
Switch: { enlabel: 'Switch training', label: '道岔实训' },
Section: { enlabel: 'Section training', label: '区段实训' },
Signal: { enlabel: 'Signal training', label: '信号机实训' },
Stand: { enlabel: 'Stand training', label: '站台实训' },
Station: { enlabel: 'Station training', label: '车站实训' },
Train: { enlabel: 'Train training', label: '列车实训' },
ControlConvertMenu: { enlabel: 'Control mode training', label: '控制模式实训' },
LimitControl: { enlabel: 'Control mode limit', label: '全线限速实训' },
TrainWindow: { enlabel: 'TrainWindow training', label: '车次窗实训' },
Driver: { enlabel: 'Driver training', label: '司机实训' },
DirectionRod: { enlabel: 'Direction rod training', label: '方向杆实训' },
},
interfaceErrorConfig: {
'500000': { type: '权限错误:', message: '您尚未有该操作权限!' },
'500004': { type: '权限错误:', message: '您剩余的权限数量不足!' },
'500005': { type: '权限错误:', message: '您的权限时间已过!' },
'500006': { type: '权限错误:', message: '您已经领取,不能重复领取!' },
'500007': { type: '权限错误:', message: '剩余分发权限数量不足!' },
'500010': { type: '支付错误:', message: '微信统一支付调用失败!' },
},
projectDeviceTypeList: [
{ label: '道岔', value: 'SWITCH' },
{ label: '信号机', value: 'SIGNAL' },
{ label: '屏蔽门', value: 'PSD' },
{ label: 'IBP盘', value: 'IBP' },
{ label: '虚拟IBP盘', value: 'VR_IBP' },
{ label: '教员机', value: 'IM' },
{ label: '行调工作站', value: 'CW' },
{ label: '现地工作站', value: 'LW' },
{ label: '大屏工作站', value: 'LSW' },
{ label: '列车驾驶终端', value: 'DRIVE' },
{ label: '虚拟站台屏蔽门终端', value: 'VR_PSD' },
{ label: '现地综合监控', value: 'ISCS_LW' },
{ label: '中心综合监控', value: 'ISCS_CW' },
{ label: '车辆段终端', value: 'DEPOT' },
{ label: '派班工作站', value: 'SCHEDULING' },
{ label: '虚拟CCTV', value: 'CCTV' },
{ label: 'PLC网关', value: 'PLC_GATEWAY' },
{ label: '端头控制盒', value: 'PSL' },
{ label: 'PSC控制柜', value: 'PSC' },
{ label: '虚拟电子沙盘', value: 'SANDBOX' },
{ label: '联锁工作站', value: 'ILW' },
{ label: 'UDP下位机', value: 'UDP_LOW' },
{ label: '区段', value: 'SECTION' },
{ label: '列车', value: 'TRAIN' },
{ label: 'UDP客户端', value: 'UDP_CLIENT' },
{ label: '站台PIS', value: 'PIS_STAND' },
{ label: '列车PIS', value: 'PIS_TRAIN' },
],
ossList: [
{ name: '场景1', url: '场景1—桂花园道岔故障配分版60分.pdf' },
{ name: '场景2', url: '场景2—体育馆道岔故障配分版60分.pdf' },
{ name: '场景3', url: '场景3—火车站道岔故障配分版60分.pdf' },
{ name: '场景4', url: '场景4—列车救援配分版60分.pdf' },
{ name: '场景5', url: '场景5—接触网无电配分版60分.pdf' },
{ name: '场景6', url: '场景6—计轴故障试题配分版60分.pdf' },
{ name: '场景7', url: '场景7—大学城道岔故障配分版40分.pdf' },
{ name: '场景8', url: '场景8—车站照明故障配分版40分.pdf' },
{ name: '场景9', url: '场景9—车站站台门故障配分版40分.pdf' },
{ name: '场景10', url: '场景10—列车限速配分版40分.pdf' },
{ name: '场景11', url: '场景11—区间疏导乘客配分版40分.pdf' },
{ name: '场景12', url: '场景12—区域控制器故障配分版40分.pdf' },
],
responderTypeList: [{ name: '固定应答器', value: 'FB' }, { name: '可变应答器', value: 'VB' }, { name: '填充应答器', value: 'IB' }],
loadRuleList: [
{ label: '每日加载', value: 'EVERY_DAY' },
{ label: '周内加载', value: 'WITHIN_A_WEEK' },
{ label: '周末加载', value: 'WEEKEND' },
],
turnBackTypeList: [
{ label: '无折返', value: 'NONE' },
{ label: '默认', value: 'DEFAULT' },
{ label: '自动换端', value: 'AUTO' },
{ label: '无人折返', value: 'UNMANNED' },
],
directionLabelList: [
{ label: 'X', value: 'X' },
{ label: 'XF', value: 'XF' },
{ label: 'XD', value: 'XD' },
{ label: 'S', value: 'S' },
{ label: 'SF', value: 'SF' },
{ label: 'SD', value: 'SD' },
],
trainingType: [
// 实训类型
{ enlabel: 'single operation', label: '单操', value: 'SINGLE' },
{ enlabel: 'scene operation', label: '场景', value: 'SCENE' },
],
ioDirectionList: [
// 出入口类型
{ value: 'DOWN_IN_STATION', label: '下行进站' },
{ value: 'UP_IN_STATION', label: '上行进站' },
{ value: 'DOWN_OUT_STATION', label: '下行出站' },
{ value: 'UP_OUT_STATION', label: '上行出站' },
{ value: 'BOTH_WAY_STATION', label: '双向' },
],
conditionList: [{ label: '标识状态', value: 'S' }, { label: '表达式', value: 'E' }, { label: '代表值', value: 'V' }],
operationList: [
{ label: '且', value: 'AND' },
{ label: '或', value: 'OR' },
{ label: '非', value: 'NOT' },
{ label: '是', value: 'IS' },
{ label: '等于', value: 'EQ' },
{ label: '不等于', value: 'NEQ' },
{ label: '大于', value: 'GT' },
{ label: '大于等于', value: 'GTOE' },
{ label: '小于', value: 'LT' },
{ label: '小于等于', value: 'LTOE' },
],
operationDeviceList: [
{ label: '区段', value: 'Section' },
{ label: '道岔', value: 'Switch' },
{ label: '信号机', value: 'Signal' },
{ label: '站台', value: 'StationStand' }, // Stand
{ label: '车站', value: 'Station' },
{ label: '进路', value: 'Route' },
{ label: '列车', value: 'Train' },
{ label: '自动闭塞', value: 'StationDirectionAuto' },
{ label: '半自动闭塞', value: 'StationDirectionSemi' },
],
},
}
simulationDeviceList: [
{ label: '区段', value: 'SECTION' },
{ label: '计轴器', value: 'AXLE_COUNTER' },
{ label: '道岔', value: 'SWITCH' },
{ label: '信号机', value: 'SIGNAL' },
{ label: '车站', value: 'STATION' },
{ label: '站台', value: 'STAND' },
{ label: '屏蔽门', value: 'PSD' },
{ label: '紧急停车按钮', value: 'ESP' },
{ label: '区域控制器', value: 'ZC' },
{ label: '线路控制器', value: 'LC' },
{ label: '进路', value: 'ROUTE' },
{ label: '进路延续保护', value: 'OVERLAP' },
{ label: '自动信号', value: 'AUTO_SIGNAL' },
{ label: '自动折返', value: 'CYCLE' },
{ label: '列车', value: 'TRAIN' },
{ label: '列车门', value: 'TRAIN_DOOR' },
{ label: '交路', value: 'ROUTING' },
{ label: '站间运行等级', value: 'RUN_LEVEL' }
],
QuestionTypeList: [
{ label: '选择题', value: 'select' },
{ label: '判断题', value: 'judge' },
{ label: '多选题', value: 'multi' },
{ label: '填空题', value: 'fill' },
{ label: '问答题', value: 'answer' }
],
// 新版的产品类型枚举
prdType: [
{ enlabel: 'ATS local workstation', label: 'ATS现地工作站', value: '01' },
{ enlabel: 'ATS Traffic dispatching workstation', label: 'ATS行调工作站', value: '02' },
{ enlabel: 'Comprehensive exercise cloud platform', label: '综合演练云平台', value: '03' },
{ enlabel: 'Driver simulation driving system', label: '司机模拟驾驶系统', value: '04' },
{ enlabel: 'Dispatch workstation', label: '派班工作站', value: '05' },
{ enlabel: 'ISCS workstation', label: 'ISCS工作站', value: '06' },
{ enlabel: 'Interlocking station at depot', label: '车辆段联锁工作站', value: '09' },
{ enlabel: 'Large screen vehicle real workstation', label: '应急调度指挥系统', value: '10' }
],
trainingDeviceType: {
Switch: { enlabel: 'Switch training', label: '道岔实训' },
Section: { enlabel: 'Section training', label: '区段实训' },
Signal: { enlabel: 'Signal training', label: '信号机实训' },
Stand: { enlabel: 'Stand training', label: '站台实训' },
Station: { enlabel: 'Station training', label: '车站实训' },
Train: { enlabel: 'Train training', label: '列车实训' },
ControlConvertMenu: { enlabel: 'Control mode training', label: '控制模式实训' },
LimitControl: { enlabel: 'Control mode limit', label: '全线限速实训' },
TrainWindow: { enlabel: 'TrainWindow training', label: '车次窗实训' },
Driver: { enlabel: 'Driver training', label: '司机实训' },
DirectionRod: { enlabel: 'Direction rod training', label: '方向杆实训' }
},
interfaceErrorConfig: {
'500000': { type: '权限错误:', message: '您尚未有该操作权限!' },
'500004': { type: '权限错误:', message: '您剩余的权限数量不足!' },
'500005': { type: '权限错误:', message: '您的权限时间已过!' },
'500006': { type: '权限错误:', message: '您已经领取,不能重复领取!' },
'500007': { type: '权限错误:', message: '剩余分发权限数量不足!' },
'500010': { type: '支付错误:', message: '微信统一支付调用失败!' }
},
projectDeviceTypeList: [
{ label: '道岔', value: 'SWITCH' },
{ label: '信号机', value: 'SIGNAL' },
{ label: '屏蔽门', value: 'PSD' },
{ label: 'IBP盘', value: 'IBP' },
{ label: '虚拟IBP盘', value: 'VR_IBP' },
{ label: '教员机', value: 'IM' },
{ label: '行调工作站', value: 'CW' },
{ label: '现地工作站', value: 'LW' },
{ label: '大屏工作站', value: 'LSW' },
{ label: '列车驾驶终端', value: 'DRIVE' },
{ label: '虚拟站台屏蔽门终端', value: 'VR_PSD' },
{ label: '现地综合监控', value: 'ISCS_LW' },
{ label: '中心综合监控', value: 'ISCS_CW' },
{ label: '车辆段终端', value: 'DEPOT' },
{ label: '派班工作站', value: 'SCHEDULING' },
{ label: '虚拟CCTV', value: 'CCTV' },
{ label: 'PLC网关', value: 'PLC_GATEWAY' },
{ label: '端头控制盒', value: 'PSL' },
{ label: 'PSC控制柜', value: 'PSC' },
{ label: '虚拟电子沙盘', value: 'SANDBOX' },
{ label: '联锁工作站', value: 'ILW' },
{ label: 'UDP下位机', value: 'UDP_LOW' },
{ label: '区段', value: 'SECTION' },
{ label: '列车', value: 'TRAIN' },
{ label: 'UDP客户端', value: 'UDP_CLIENT' },
{ label: '站台PIS', value: 'PIS_STAND' },
{ label: '列车PIS', value: 'PIS_TRAIN' }
],
ossList: [
{ name: '场景1', url: '场景1—桂花园道岔故障配分版60分.pdf' },
{ name: '场景2', url: '场景2—体育馆道岔故障配分版60分.pdf' },
{ name: '场景3', url: '场景3—火车站道岔故障配分版60分.pdf' },
{ name: '场景4', url: '场景4—列车救援配分版60分.pdf' },
{ name: '场景5', url: '场景5—接触网无电配分版60分.pdf' },
{ name: '场景6', url: '场景6—计轴故障试题配分版60分.pdf' },
{ name: '场景7', url: '场景7—大学城道岔故障配分版40分.pdf' },
{ name: '场景8', url: '场景8—车站照明故障配分版40分.pdf' },
{ name: '场景9', url: '场景9—车站站台门故障配分版40分.pdf' },
{ name: '场景10', url: '场景10—列车限速配分版40分.pdf' },
{ name: '场景11', url: '场景11—区间疏导乘客配分版40分.pdf' },
{ name: '场景12', url: '场景12—区域控制器故障配分版40分.pdf' }
],
responderTypeList: [{ name: '固定应答器', value: 'FB' }, { name: '可变应答器', value: 'VB' }, { name: '填充应答器', value: 'IB' }],
loadRuleList: [
{ label: '每日加载', value: 'EVERY_DAY' },
{ label: '周内加载', value: 'WITHIN_A_WEEK' },
{ label: '周末加载', value: 'WEEKEND' }
],
turnBackTypeList: [
{ label: '无折返', value: 'NONE' },
{ label: '默认', value: 'DEFAULT' },
{ label: '自动换端', value: 'AUTO' },
{ label: '无人折返', value: 'UNMANNED' }
],
directionLabelList: [
{ label: 'X', value: 'X' },
{ label: 'XF', value: 'XF' },
{ label: 'XD', value: 'XD' },
{ label: 'S', value: 'S' },
{ label: 'SF', value: 'SF' },
{ label: 'SD', value: 'SD' }
],
trainingType: [
// 实训类型
{ enlabel: 'single operation', label: '单操', value: 'SINGLE' },
{ enlabel: 'scene operation', label: '场景', value: 'SCENE' }
],
ioDirectionList: [
// 出入口类型
{ value: 'DOWN_IN_STATION', label: '下行进站' },
{ value: 'UP_IN_STATION', label: '上行进站' },
{ value: 'DOWN_OUT_STATION', label: '下行出站' },
{ value: 'UP_OUT_STATION', label: '上行出站' },
{ value: 'BOTH_WAY_STATION', label: '双向' }
],
conditionList: [{ label: '标识状态', value: 'S' }, { label: '表达式', value: 'E' }, { label: '代表值', value: 'V' }],
operationList: [
{ label: '且', value: 'AND' },
{ label: '或', value: 'OR' },
{ label: '非', value: 'NOT' },
{ label: '是', value: 'IS' },
{ label: '等于', value: 'EQ' },
{ label: '不等于', value: 'NEQ' },
{ label: '大于', value: 'GT' },
{ label: '大于等于', value: 'GTOE' },
{ label: '小于', value: 'LT' },
{ label: '小于等于', value: 'LTOE' }
],
operationDeviceList: [
{ label: '区段', value: 'Section' },
{ label: '道岔', value: 'Switch' },
{ label: '信号机', value: 'Signal' },
{ label: '站台', value: 'StationStand' }, // Stand
{ label: '车站', value: 'Station' },
{ label: '进路', value: 'Route' },
{ label: '列车', value: 'Train' },
{ label: '自动闭塞', value: 'StationDirectionAuto' },
{ label: '半自动闭塞', value: 'StationDirectionSemi' }
]
}
};

View File

@ -256,7 +256,9 @@ const map = {
foldLineMap: {}, // 现地折行线map数据
clearButtonCount: 0, // 清除操作按钮计数器
stationControlMap: {}, // 站控显示的map { 当前车站:显示车站列表 }
pictureDeviceMap: {} // 画面设备修正map
pictureDeviceMap: {}, // 画面设备修正map
domConfig: null, // 仿真配置
initClient: '' // 仿真初始客户端
},
getters: {

View File

@ -208,7 +208,6 @@ const training = {
if (userId == item.userId) {
state.roles = item.type;
state.roleDeviceCode = item.deviceCode;
console.log(item.deviceCode, '----------', state.roleDeviceCode);
}
});
}

View File

@ -29,8 +29,8 @@ export function handlerUrl() {
// BASE_API = 'http://114.116.51.125/jlcloud';
// BASE_API = 'http://192.168.3.90:9100'; // 周寅
// BASE_API = 'http://192.168.3.94:9000'; // 旭强
// BASE_API = 'http://192.168.3.15:9000'; // 张赛
BASE_API = 'http://192.168.3.5:9000'; // 夏增彬
BASE_API = 'http://192.168.3.15:9000'; // 张赛
// BASE_API = 'http://192.168.3.5:9000'; // 夏增彬
// BASE_API = 'http://192.168.3.37:9000'; // 卫志宏
// BASE_API = 'http://b29z135112.zicp.vip';
// BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康

View File

@ -21,7 +21,7 @@ import IbpPan from '@/ibp/ibpPan';
import { parser } from '@/ibp/utils/parser';
import { mapGetters } from 'vuex';
import { exitFullscreen } from '@/utils/screen';
import { handlerIbpEvent, handleIbpPress, handleIbpRelease } from '@/api/simulation';
import { handleIbpPress, handleIbpRelease } from '@/api/simulation';
import { IbpOperation } from '@/scripts/ConstDic';
import { creatSubscribe, clearSubscribe, displayTopic} from '@/utils/stomp';
import { getToken } from '@/utils/auth';

View File

@ -240,7 +240,19 @@
</el-col>
<el-col :span="12">
<el-form-item label="车务段段长:" prop="TRAIN_MASTER">
<el-input-number v-model="batchForm.TRAIN_MASTER" size="small" :min="0" :max="1" :step="1" :precision="0" />
<el-input-number v-model="batchForm.TRAIN_MASTER" size="small" :min="0" :step="1" :precision="0" />
</el-form-item>
</el-col>
</el-row>
<el-row v-if="batchForm.systemType === 'METRO'">
<el-col :span="12">
<el-form-item label="值班主任:" prop="SHIFT_MANAGER">
<el-input-number v-model="batchForm.SHIFT_MANAGER" size="small" :min="0" :step="1" :precision="0" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="环控调度" prop="ENVIRONMENT_DISPATCHER">
<el-input-number v-model="batchForm.ENVIRONMENT_DISPATCHER" size="small" :min="0" :step="1" :precision="0" />
</el-form-item>
</el-col>
</el-row>
@ -291,6 +303,7 @@
<script>
import {mapGetters} from 'vuex';
import { getDisStationList } from '@/api/disStation';
import ConstConfig from '@/scripts/ConstConfig';
export default {
name: 'SimulationMember',
data() {
@ -298,24 +311,7 @@ export default {
lazy: true,
activeName: 'first',
memberActive: 'METRO',
roleList: [
{label: '行调', value: 'DISPATCHER'},
{label: '行值', value: 'STATION_SUPERVISOR'},
{label: '司机', value: 'DRIVER'},
{label: '通号', value: 'MAINTAINER'},
{label: '车辆段/停车场调度', value: 'DEPOT_DISPATCHER'},
{label: '车辆段/停车场信号楼', value: 'SIGNAL_BUILDING'},
{label: '车站助理', value: 'STATION_ASSISTANT'},
{label: '车站站长', value: 'STATION_MASTER'},
{label: '车站信号员', value: 'STATION_SIGNALER'},
{label: '车站客运员', value: 'STATION_PASSENGER'},
{label: '车站扳道员', value: 'STATION_SWITCH_MAN'},
{label: '车站引导员', value: 'STATION_FACILITATOR'},
{label: '车站工务工', value: 'STATION_WORKER'},
{label: '车务段段长', value: 'TRAIN_MASTER'},
{label: '工电调度', value: 'ELECTRIC_DISPATCHER'},
{label: '设备管理员', value: 'DEVICE_MANAGER'}
],
roleList: ConstConfig.ConstSelect.roleTypeList,
systemList: [
{ label: '地铁CBTC', value: 'METRO' },
{ label: '大铁CTC', value: 'RAILWAY' },
@ -345,6 +341,8 @@ export default {
TRAIN_MASTER: 0,
ELECTRIC_DISPATCHER: 0,
DEVICE_MANAGER: 0,
SHIFT_MANAGER: 0,
ENVIRONMENT_DISPATCHER: 0,
systemType: 'METRO'
},
generationForm: {
@ -576,6 +574,28 @@ export default {
memberMap[this.batchForm.systemType].push(member);
}
}
if (this.batchForm.SHIFT_MANAGER && this.batchForm.systemType === 'METRO') {
for (let i = 0; i < this.batchForm.SHIFT_MANAGER; i++) {
const member = {
id: this.getMemberId(this.batchForm.systemType),
name: '',
type: 'SHIFT_MANAGER',
deviceCode: ''
};
memberMap[this.batchForm.systemType].push(member);
}
}
if (this.batchForm.ENVIRONMENT_DISPATCHER && this.batchForm.systemType === 'METRO') {
for (let i = 0; i < this.batchForm.ENVIRONMENT_DISPATCHER; i++) {
const member = {
id: this.getMemberId(this.batchForm.systemType),
name: '',
type: 'ENVIRONMENT_DISPATCHER',
deviceCode: ''
};
memberMap[this.batchForm.systemType].push(member);
}
}
this.$message.success('批量添加成功!');
this.resetForm();
},
@ -609,6 +629,8 @@ export default {
TRAIN_MASTER: 0,
ELECTRIC_DISPATCHER: 0,
DEVICE_MANAGER: 0,
SHIFT_MANAGER: 0,
ENVIRONMENT_DISPATCHER: 0,
systemType: 'METRO'
};
this.createForm = {
@ -773,6 +795,21 @@ export default {
deviceCode: ''
};
memberMap[this.generationForm.systemType].push(memberParentDepartment);
const memberShiftManager = {
id: this.getMemberId(this.generationForm.systemType),
name: '',
type: 'SHIFT_MANAGER',
deviceCode: ''
};
memberMap[this.generationForm.systemType].push(memberShiftManager);
const memberEnvironmentDispatcher = {
id: this.getMemberId(this.generationForm.systemType),
name: '',
type: 'ENVIRONMENT_DISPATCHER',
deviceCode: ''
};
memberMap[this.generationForm.systemType].push(memberEnvironmentDispatcher);
}
this.$message.success('一键生成成功!');
this.resetForm();

View File

@ -116,26 +116,6 @@ export default {
singleClient: false,
hasTraining: false
},
roleList: [
{label: '行调', value: 'DISPATCHER'},
{label: '行值', value: 'STATION_SUPERVISOR'},
{label: '司机', value: 'DRIVER'},
{label: '通号', value: 'MAINTAINER'},
{label: '车辆段/停车场调度', value: 'DEPOT_DISPATCHER'},
{label: '车辆段/停车场信号楼', value: 'SIGNAL_BUILDING'},
{label: '车站助理', value: 'STATION_ASSISTANT'},
{label: '车站站长', value: 'STATION_MASTER'},
{label: '车站信号员', value: 'STATION_SIGNALER'},
{label: '车站客运员', value: 'STATION_PASSENGER'},
{label: '车站扳道员', value: 'STATION_SWITCH_MAN'},
{label: '车站引导员', value: 'STATION_FACILITATOR'},
{label: '车站工务工', value: 'STATION_WORKER'},
{label: '车务段段长', value: 'TRAIN_MASTER'},
{label: '工电调度', value: 'ELECTRIC_DISPATCHER'},
{label: '上级部分', value: 'PARENT_DEPARTMENT'},
{label: '派班员', value: 'SCHEDULING'},
{label: '设备管理员', value: 'DEVICE_MANAGER'}
],
clientList: [
{ label: '中心ATS工作站', value: 'C_ATS' },
{ label: '中心ATS大屏', value: 'C_ATS_BS' },
@ -148,7 +128,10 @@ export default {
{ label: '调度台终端', value: 'GPC' },
{ label: '联锁工作站', value: 'IPC' },
{ label: '车务终端', value: 'STPC' },
{ label: '车务管理终端', value: 'DMP' }
{ label: '车务管理终端', value: 'DMP' },
{ label: 'ISCS', value: 'ISCS' },
{ label: 'IBP', value: 'IBP' },
{ label: 'PSL', value: 'PSL' }
],
memberMetroList: [],
memberRailwayList: [],
@ -189,6 +172,7 @@ export default {
this.ruleForm.type = row.paramVO.type;
this.ruleForm.client = row.paramVO.initParam.client || '';
this.ruleForm.memberId = row.paramVO.initParam.memberId || '';
this.clientChange(this.ruleForm.client);
const functionList = Object.keys(row.paramVO.functionMap);
if (functionList && functionList.length) {
this.ruleForm.function = functionList[0];

View File

@ -12,7 +12,7 @@
<div class="mapListName">
<span>{{ $t('global.mapList') }}</span>
</div>
<template v-for="(cityCode, index) in Object.keys(menuData)">
<template v-for="(cityCode, index) in cityList">
<el-submenu :key="index" :index="index+''">
<template slot="title">
<i class="el-icon-location" />
@ -43,7 +43,8 @@ export default {
menuData: {},
mapId: '',
filterSelect: '',
cityMap: null
cityMap: null,
cityList: []
};
},
computed: {
@ -67,6 +68,7 @@ export default {
let res = {};
this.menuData = {};
this.cityMap = new Map();
this.cityList = ['000000'];
const resp = await publisMapCityList('city_type');
(resp.data || []).forEach(item => {
this.cityMap.set(item.code, item.name);
@ -78,6 +80,9 @@ export default {
}
if (res && res.data) {
res.data.forEach(item => {
if (!this.cityList.includes(item.cityCode)) {
this.cityList.push(item.cityCode);
}
if (this.menuData[item.cityCode]) {
this.menuData[item.cityCode].push(item);
} else {
@ -94,6 +99,7 @@ export default {
},
clickEvent(obj, data, ele) {
this.mapId = obj.id;
console.log(obj, data, '-----------');
const router = { path: `/trainingPlatform/simulation/${this.mapId}`, query: { lineCode: obj.lineCode }};
console.log(router, 'router');
this.$router.push(router);

View File

@ -1,30 +1,15 @@
<template>
<el-tabs v-model="activeName" style="height: 100%;margin: 10px;" type="border-card">
<el-tab-pane label="仿真系统" name="first" style="height: 100%;">
<el-collapse v-model="activeNames">
<el-collapse-item title="单客户端" name="1">
<div style="display: flex;flex-wrap:wrap; justify-content:center;height: 100%;overflow-y: auto;">
<template v-for="system in systemList">
<el-card v-if="system.simUsage === 'SINGLE_CLIENT'" :key="system.id" class="box-card">
<div style="text-align: center;font-size: 26px;font-weight: bolder;color: #0C161A;">{{ system.name }}</div>
<div style="font-size: 14px;color: #0C161A;text-indent: 28px;margin-top: 20px;">{{ system.desc }}</div>
<el-button style="position: absolute;bottom: 15px;left: 0;right: 0;margin: 0 auto;width: 60px;" size="small" type="primary" @click="enterSimulation(system)">进入</el-button>
</el-card>
</template>
</div>
</el-collapse-item>
<el-collapse-item title="多客户端" name="2">
<div style="display: flex;flex-wrap:wrap; justify-content:center;height: 100%;overflow-y: auto;">
<template v-for="system in systemList">
<el-card v-if="system.simUsage !== 'SINGLE_CLIENT'" :key="system.id" class="box-card">
<div style="text-align: center;font-size: 26px;font-weight: bolder;color: #0C161A;">{{ system.name }}</div>
<div style="font-size: 14px;color: #0C161A;text-indent: 28px;margin-top: 20px;">{{ system.desc }}</div>
<el-button style="position: absolute;bottom: 15px;left: 0;right: 0;margin: 0 auto;width: 60px;" size="small" type="primary" @click="enterSimulation(system)">进入</el-button>
</el-card>
</template>
</div>
</el-collapse-item>
</el-collapse>
<div style="display: flex;flex-wrap:wrap; justify-content:center;height: 100%;overflow-y: auto;">
<template v-for="system in systemList">
<el-card :key="system.id" class="box-card">
<div style="text-align: center;font-size: 26px;font-weight: bolder;color: #0C161A;">{{ system.name }}</div>
<div style="font-size: 14px;color: #0C161A;text-indent: 28px;margin-top: 20px;">{{ system.desc }}</div>
<el-button style="position: absolute;bottom: 15px;left: 0;right: 0;margin: 0 auto;width: 60px;" size="small" type="primary" @click="enterSimulation(system)">进入</el-button>
</el-card>
</template>
</div>
</el-tab-pane>
<el-tab-pane label="地图权限" name="second">
<div style="height: 100%; overflow: auto;">