修改菜单状态控制
This commit is contained in:
parent
7a71fc42ae
commit
b00bb22a8c
@ -127,7 +127,7 @@ deviceState[deviceType.Signal] = {
|
|||||||
State05: '05' /** 折返进路终端待选 */
|
State05: '05' /** 折返进路终端待选 */
|
||||||
},
|
},
|
||||||
/** 引导信号按钮状态类型 */
|
/** 引导信号按钮状态类型 */
|
||||||
guideState: {
|
guideStatus: {
|
||||||
Default: '01', /** 空闲(缺省值)*/
|
Default: '01', /** 空闲(缺省值)*/
|
||||||
State01: '01', /** 空闲 */
|
State01: '01', /** 空闲 */
|
||||||
State02: '02' /** 引导 */
|
State02: '02' /** 引导 */
|
||||||
@ -193,20 +193,20 @@ deviceState[deviceType.StationStand] = {
|
|||||||
State05: '03' /** 站台紧急关闭 */
|
State05: '03' /** 站台紧急关闭 */
|
||||||
},
|
},
|
||||||
/** 屏蔽门状态*/
|
/** 屏蔽门状态*/
|
||||||
screenDoorState: {
|
screenDoorStatus: {
|
||||||
Default: '01', /** 关门(缺省值)*/
|
Default: '01', /** 关门(缺省值)*/
|
||||||
State01: '01', /** 正常 */
|
State01: '01', /** 正常 */
|
||||||
State02: '02', /** 故障 */
|
State02: '02', /** 故障 */
|
||||||
State03: '03' /** 切除 */
|
State03: '03' /** 切除 */
|
||||||
},
|
},
|
||||||
/** 屏蔽门开门状态*/
|
/** 屏蔽门开门状态*/
|
||||||
screenDoorOpenState: {
|
screenDoorOpenStatus: {
|
||||||
Default: '01', /** 关门(缺省值)*/
|
Default: '01', /** 关门(缺省值)*/
|
||||||
State01: '01', /** 关门 */
|
State01: '01', /** 关门 */
|
||||||
State02: '02' /** 开门 */
|
State02: '02' /** 开门 */
|
||||||
},
|
},
|
||||||
/** 扣车状态*/
|
/** 扣车状态*/
|
||||||
holdState: {
|
holdStatus: {
|
||||||
Default: '01', /** 未设置扣车(缺省值)*/
|
Default: '01', /** 未设置扣车(缺省值)*/
|
||||||
State01: '01', /** 未设置扣车*/
|
State01: '01', /** 未设置扣车*/
|
||||||
State02: '02', /** 车站扣车*/
|
State02: '02', /** 车站扣车*/
|
||||||
@ -214,7 +214,7 @@ deviceState[deviceType.StationStand] = {
|
|||||||
State04: '04' /** 中心+车站扣车*/
|
State04: '04' /** 中心+车站扣车*/
|
||||||
},
|
},
|
||||||
/** 跳停*/
|
/** 跳停*/
|
||||||
jumpStopState: {
|
jumpStopStatus: {
|
||||||
Default: '01', /** 未设置跳停(缺省值)*/
|
Default: '01', /** 未设置跳停(缺省值)*/
|
||||||
State01: '01', /** 未设置跳停 */
|
State01: '01', /** 未设置跳停 */
|
||||||
State02: '02', /** 指定列车跳停 */
|
State02: '02', /** 指定列车跳停 */
|
||||||
@ -258,7 +258,7 @@ deviceState[deviceType.Train] = {
|
|||||||
State03: '03' /** 显示车组号(人工车),粉色 */
|
State03: '03' /** 显示车组号(人工车),粉色 */
|
||||||
},
|
},
|
||||||
/** 目的地状态类型*/
|
/** 目的地状态类型*/
|
||||||
destinationState: {
|
destinationStatus: {
|
||||||
Default: '01', /** 准点(缺省值)*/
|
Default: '01', /** 准点(缺省值)*/
|
||||||
State01: '01', /** 准点*/
|
State01: '01', /** 准点*/
|
||||||
State02: '02', /** 早点*/
|
State02: '02', /** 早点*/
|
||||||
@ -276,7 +276,7 @@ deviceState[deviceType.Train] = {
|
|||||||
State03: '03' /** 从右向左 */
|
State03: '03' /** 从右向左 */
|
||||||
},
|
},
|
||||||
/** 运行状态*/
|
/** 运行状态*/
|
||||||
runState: {
|
runStatus: {
|
||||||
Default: '01', /** 停止(缺省值)*/
|
Default: '01', /** 停止(缺省值)*/
|
||||||
State01: '01', /** 停止 */
|
State01: '01', /** 停止 */
|
||||||
State02: '02' /** 运行 */
|
State02: '02' /** 运行 */
|
||||||
@ -291,33 +291,33 @@ deviceState[deviceType.Train] = {
|
|||||||
State05: '05' /** 非限制人工驾驶模式 RM */
|
State05: '05' /** 非限制人工驾驶模式 RM */
|
||||||
},
|
},
|
||||||
/** 运行控制状态类型*/
|
/** 运行控制状态类型*/
|
||||||
runControlState: {
|
runControlStatus: {
|
||||||
Default: '01', /** 正常(缺省值)*/
|
Default: '01', /** 正常(缺省值)*/
|
||||||
State01: '01', /** 正常 */
|
State01: '01', /** 正常 */
|
||||||
State02: '02', /** 扣车 */
|
State02: '02', /** 扣车 */
|
||||||
State03: '03' /** 跳停 */
|
State03: '03' /** 跳停 */
|
||||||
},
|
},
|
||||||
/** 车门状态 */
|
/** 车门状态 */
|
||||||
doorState: {
|
doorStatus: {
|
||||||
Default: '01', /** 关门(缺省值)*/
|
Default: '01', /** 关门(缺省值)*/
|
||||||
State01: '01', /** 关门 */
|
State01: '01', /** 关门 */
|
||||||
State02: '02', /** 开门 */
|
State02: '02', /** 开门 */
|
||||||
State03: '03' /** 故障 */
|
State03: '03' /** 故障 */
|
||||||
},
|
},
|
||||||
/** 通信状态类型*/
|
/** 通信状态类型*/
|
||||||
communicationState: {
|
communicationStatus: {
|
||||||
Default: '01', /** 正常(缺省值)*/
|
Default: '01', /** 正常(缺省值)*/
|
||||||
State01: '01', /** 正常 */
|
State01: '01', /** 正常 */
|
||||||
State02: '02' /** 故障 */
|
State02: '02' /** 故障 */
|
||||||
},
|
},
|
||||||
/** 计划冲突状态*/
|
/** 计划冲突状态*/
|
||||||
planConflictState: {
|
planConflictStatus: {
|
||||||
Default: '01', /** 无冲突(缺省值)*/
|
Default: '01', /** 无冲突(缺省值)*/
|
||||||
State01: '01', /** 无冲突 */
|
State01: '01', /** 无冲突 */
|
||||||
State02: '02' /** 有冲突 */
|
State02: '02' /** 有冲突 */
|
||||||
},
|
},
|
||||||
/** 报警状态*/
|
/** 报警状态*/
|
||||||
alarmState: {
|
alarmStatus: {
|
||||||
Default: '01', /** 无报警(缺省值)*/
|
Default: '01', /** 无报警(缺省值)*/
|
||||||
State01: '01', /** 无报警 */
|
State01: '01', /** 无报警 */
|
||||||
State02: '02' /** 有报警 */
|
State02: '02' /** 有报警 */
|
||||||
|
@ -240,21 +240,21 @@ export const MenuDisabledState = {
|
|||||||
// 设置扣车
|
// 设置扣车
|
||||||
setDetainTrain() {
|
setDetainTrain() {
|
||||||
const device = getCurrentStateObject();
|
const device = getCurrentStateObject();
|
||||||
if (device && device.holdState != deviceState.StationStand.holdState.State01) {
|
if (device && device.holdStatus != deviceState.StationStand.holdStatus.State01) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 取消扣车
|
// 取消扣车
|
||||||
cancelDetainTrain() {
|
cancelDetainTrain() {
|
||||||
const device = getCurrentStateObject();
|
const device = getCurrentStateObject();
|
||||||
if (device && device.holdState == deviceState.StationStand.holdState.State01) {
|
if (device && device.holdStatus == deviceState.StationStand.holdStatus.State01) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 强制取消扣车
|
// 强制取消扣车
|
||||||
cancelDetainTrainForce() {
|
cancelDetainTrainForce() {
|
||||||
const device = getCurrentStateObject();
|
const device = getCurrentStateObject();
|
||||||
if (device && device.holdState == deviceState.StationStand.holdState.State01) {
|
if (device && device.holdStatus == deviceState.StationStand.holdStatus.State01) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -270,14 +270,14 @@ export const MenuDisabledState = {
|
|||||||
// 设置跳停
|
// 设置跳停
|
||||||
setJumpStop() {
|
setJumpStop() {
|
||||||
const device = getCurrentStateObject();
|
const device = getCurrentStateObject();
|
||||||
if (device && device.jumpStopState != deviceState.StationStand.jumpStopState.State01) {
|
if (device && device.jumpStopStatus != deviceState.StationStand.jumpStopStatus.State01) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 取消跳停
|
// 取消跳停
|
||||||
cancelJumpStop() {
|
cancelJumpStop() {
|
||||||
const device = getCurrentStateObject();
|
const device = getCurrentStateObject();
|
||||||
if (device && device.jumpStopState == deviceState.StationStand.jumpStopState.State01) {
|
if (device && device.jumpStopStatus == deviceState.StationStand.jumpStopStatus.State01) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -231,21 +231,21 @@ export const MenuDisabledState = {
|
|||||||
// 设置扣车
|
// 设置扣车
|
||||||
setDetainTrain() {
|
setDetainTrain() {
|
||||||
const device = getCurrentStateObject();
|
const device = getCurrentStateObject();
|
||||||
if (device && device.holdState != deviceState.StationStand.holdState.State01) {
|
if (device && device.holdStatus != deviceState.StationStand.holdStatus.State01) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 取消扣车
|
// 取消扣车
|
||||||
cancelDetainTrain() {
|
cancelDetainTrain() {
|
||||||
const device = getCurrentStateObject();
|
const device = getCurrentStateObject();
|
||||||
if (device && device.holdState == deviceState.StationStand.holdState.State01) {
|
if (device && device.holdStatus == deviceState.StationStand.holdStatus.State01) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 强制取消扣车
|
// 强制取消扣车
|
||||||
cancelDetainTrainForce() {
|
cancelDetainTrainForce() {
|
||||||
const device = getCurrentStateObject();
|
const device = getCurrentStateObject();
|
||||||
if (device && device.holdState == deviceState.StationStand.holdState.State01) {
|
if (device && device.holdStatus == deviceState.StationStand.holdStatus.State01) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -261,14 +261,14 @@ export const MenuDisabledState = {
|
|||||||
// 设置跳停
|
// 设置跳停
|
||||||
setJumpStop() {
|
setJumpStop() {
|
||||||
const device = getCurrentStateObject();
|
const device = getCurrentStateObject();
|
||||||
if (device && device.jumpStopState != deviceState.StationStand.jumpStopState.State01) {
|
if (device && device.jumpStopStatus != deviceState.StationStand.jumpStopStatus.State01) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 取消跳停
|
// 取消跳停
|
||||||
cancelJumpStop() {
|
cancelJumpStop() {
|
||||||
const device = getCurrentStateObject();
|
const device = getCurrentStateObject();
|
||||||
if (device && device.jumpStopState == deviceState.StationStand.jumpStopState.State01) {
|
if (device && device.jumpStopStatus == deviceState.StationStand.jumpStopStatus.State01) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -235,21 +235,21 @@ export const MenuDisabledState = {
|
|||||||
// 设置扣车
|
// 设置扣车
|
||||||
setDetainTrain() {
|
setDetainTrain() {
|
||||||
const device = getCurrentStateObject();
|
const device = getCurrentStateObject();
|
||||||
if (device && device.holdState != deviceState.StationStand.holdState.State01) {
|
if (device && device.holdStatus != deviceState.StationStand.holdStatus.State01) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 取消扣车
|
// 取消扣车
|
||||||
cancelDetainTrain() {
|
cancelDetainTrain() {
|
||||||
const device = getCurrentStateObject();
|
const device = getCurrentStateObject();
|
||||||
if (device && device.holdState == deviceState.StationStand.holdState.State01) {
|
if (device && device.holdStatus == deviceState.StationStand.holdStatus.State01) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 强制取消扣车
|
// 强制取消扣车
|
||||||
cancelDetainTrainForce() {
|
cancelDetainTrainForce() {
|
||||||
const device = getCurrentStateObject();
|
const device = getCurrentStateObject();
|
||||||
if (device && device.holdState == deviceState.StationStand.holdState.State01) {
|
if (device && device.holdStatus == deviceState.StationStand.holdStatus.State01) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -265,14 +265,14 @@ export const MenuDisabledState = {
|
|||||||
// 设置跳停
|
// 设置跳停
|
||||||
setJumpStop() {
|
setJumpStop() {
|
||||||
const device = getCurrentStateObject();
|
const device = getCurrentStateObject();
|
||||||
if (device && device.jumpStopState != deviceState.StationStand.jumpStopState.State01) {
|
if (device && device.jumpStopStatus != deviceState.StationStand.jumpStopStatus.State01) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 取消跳停
|
// 取消跳停
|
||||||
cancelJumpStop() {
|
cancelJumpStop() {
|
||||||
const device = getCurrentStateObject();
|
const device = getCurrentStateObject();
|
||||||
if (device && device.jumpStopState == deviceState.StationStand.jumpStopState.State01) {
|
if (device && device.jumpStopStatus == deviceState.StationStand.jumpStopStatus.State01) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -241,11 +241,11 @@ export const MenuDisabledState = {
|
|||||||
setDetainTrain() {
|
setDetainTrain() {
|
||||||
const device = getCurrentStateObject();
|
const device = getCurrentStateObject();
|
||||||
if (store.state.training.prdType == '02') {
|
if (store.state.training.prdType == '02') {
|
||||||
if (device && device.holdState == deviceState.StationStand.holdState.State03) {
|
if (device && device.holdStatus == deviceState.StationStand.holdStatus.State03) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (device && device.holdState == deviceState.StationStand.holdState.State02) {
|
if (device && device.holdStatus == deviceState.StationStand.holdStatus.State02) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -254,11 +254,11 @@ export const MenuDisabledState = {
|
|||||||
cancelDetainTrain() {
|
cancelDetainTrain() {
|
||||||
const device = getCurrentStateObject();
|
const device = getCurrentStateObject();
|
||||||
if (store.state.training.prdType == '02') {
|
if (store.state.training.prdType == '02') {
|
||||||
if (device && device.holdState == deviceState.StationStand.holdState.State03) {
|
if (device && device.holdStatus == deviceState.StationStand.holdStatus.State03) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (device && device.holdState != deviceState.StationStand.holdState.State02) {
|
if (device && device.holdStatus != deviceState.StationStand.holdStatus.State02) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -266,7 +266,7 @@ export const MenuDisabledState = {
|
|||||||
// 强制取消扣车
|
// 强制取消扣车
|
||||||
cancelDetainTrainForce() {
|
cancelDetainTrainForce() {
|
||||||
const device = getCurrentStateObject();
|
const device = getCurrentStateObject();
|
||||||
if (device && device.holdState == deviceState.StationStand.holdState.State01) {
|
if (device && device.holdStatus == deviceState.StationStand.holdStatus.State01) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -282,14 +282,14 @@ export const MenuDisabledState = {
|
|||||||
// 设置跳停
|
// 设置跳停
|
||||||
setJumpStop() {
|
setJumpStop() {
|
||||||
const device = getCurrentStateObject();
|
const device = getCurrentStateObject();
|
||||||
if (device && device.jumpStopState != deviceState.StationStand.jumpStopState.State01) {
|
if (device && device.jumpStopStatus != deviceState.StationStand.jumpStopStatus.State01) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 取消跳停
|
// 取消跳停
|
||||||
cancelJumpStop() {
|
cancelJumpStop() {
|
||||||
const device = getCurrentStateObject();
|
const device = getCurrentStateObject();
|
||||||
if (device && device.jumpStopState == deviceState.StationStand.jumpStopState.State01) {
|
if (device && device.jumpStopStatus == deviceState.StationStand.jumpStopStatus.State01) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user