Merge remote-tracking branch 'origin/test'

This commit is contained in:
thesai 2021-11-25 12:11:19 +08:00
commit a09ec3dd13
25 changed files with 1216 additions and 420 deletions

View File

@ -172,6 +172,9 @@ class SkinCode extends defaultStyle {
whiteColor: '#FFFFFF', // 信号灯白色
blueColor: '#000080' // 信号灯蓝色
},
virtual: { // 虚拟信号机
lamp: 'triangle' // 灯型 三角形
},
route: {
direction: false, // 自动进路方向
offset: { x: -4, y: 0 }, // 自动进路偏移量

View File

@ -21,7 +21,8 @@ class SkinCode extends defaultStyle {
textPosition: 'inside', // 文字位置
textVerticalAlign: 'middle', // 文字垂直对齐方式
approachColor: '#FFFFFF',
occupyColor: '#FF0000' // 计轴区段占用字体颜色
occupyColor: '#FF0000', // 计轴区段占用字体颜色
invalidColor:'#ff0000' // // 计轴故障
},
logicText: {
z: 10,
@ -93,7 +94,7 @@ class SkinCode extends defaultStyle {
protectiveLockColor: '#9DFF6E', // 区段保护锁闭
delayUnlockColor: '#00FF00', // 延时解锁
faultLockColor: '#9B4A0A', // 区段故障锁定颜色
faultLockColor: '#00FF00', // 区段故障锁定颜色
invalidColor: '#ff0000', // 计轴故障
undefinedColor: '#0071C1', // 区段未定义颜色
@ -225,6 +226,15 @@ class SkinCode extends defaultStyle {
whiteColor: '#FFFFFF', // 信号灯白色
blueColor: '#0010FF' // 信号灯蓝色
},
virtual: { // 虚拟信号机
bg: { // 虚拟信号机背景
fillColor:'#FFFFFF', // 信号背景颜色
strokecolor:'#FFFFFF', // 信号描边颜色
lineWidth: 1, // 信号背景描边宽度
distanceX: 2, // 信号背景x偏移距离
distanceY: 0 // 信号背景Y偏移距离
}
},
route: {
direction: false, // 自动进路方向
offset: { x: -4, y: 0 }, // 自动进路偏移量
@ -261,7 +271,7 @@ class SkinCode extends defaultStyle {
},
transmission: { // 传输信号机
fillColor: '#f00',
fillColorVirtual: '#000080',
fillColorVirtual: '#f00',
sideLength: 20,
textColor: '#fff',
strokeColor: '#00FFFF'

View File

@ -84,7 +84,7 @@ class EHorizontal2Door extends Group {
this.stand2.setStyle('fill', style.Psd.horizontal2Door.defaultColor);
}
}
if (model.noStatus) {
if (model.noStatus || (model.atsNoStatus && store.state.training.prdType == '02')) {
this.stand1.setStyle('fill', '#7F7F7F');
this.stand2.setStyle('fill', '#7F7F7F');
}

View File

@ -51,7 +51,7 @@ class ERect2Door extends Group {
this.psd.setStyle('fill', style.Psd.rectDoor.defaultColor);
}
}
if (model.noStatus) {
if (model.noStatus || (model.atsNoStatus && store.state.training.prdType == '02')) {
this.psd.setStyle('fill', '#7F7F7F');
}
}

View File

@ -153,6 +153,16 @@ class ETextName extends Group {
}
}
setAnimation(invalidColor, backgroundColor) {
if (this.text) {
this.text.animate('style', true)
.when(0, { textFill:invalidColor })
.when(1000, { textFill: backgroundColor })
.when(2000, { textFill: invalidColor })
.start();
}
}
recover() {
// 暂时不做状态初始化
if (this.text) {
@ -162,6 +172,10 @@ class ETextName extends Group {
this.text && this.text.setStyle({textFill: this.model.approach && this.model.type === 'name' ? styleModel.approachColor : styleModel.fontColor });
}
stopAnimation() {
this.text && this.text.stopAnimation(false);
}
setState() {
// 区段名称类暂时不做状态处理
}

View File

@ -249,7 +249,18 @@ export default class Section extends Group {
stroke: this.style.Section.line.invalidColor,
lineWidth: this.style.Section.line.width + this.style.Section.line.beyondWidth
});
// 南京二号线 计轴受扰 区段编号变红
if (this.style.Section.name.invalidColor) {
this.name.setAnimation(this.style.Section.name.invalidColor, this.style.backgroundColor);
}
}
namestopAnimation() {
if (this.name) {
this.name.stopAnimation();
}
}
/** 进路锁闭 04*/
routeLock(lockRight) {
if (this.line) {
@ -477,6 +488,7 @@ export default class Section extends Group {
model.nctOccupied && this.unCommunicationOccupied();
/** 计轴故障 */
model.invalid && this.invalid();
!model.invalid && this.namestopAnimation();
/** 通信车占用状态 */
model.ctOccupied && this.communicationOccupied();
/** 区段关闭 */
@ -493,7 +505,9 @@ export default class Section extends Group {
// 区段故障锁闭 之前是fault 暂时设置为faultLock
model.faultLock && this.faultLock();
// 设置灰显
model.noStatus && this.setAshShow();
if (model.noStatus || (model.atsNoStatus && store.state.training.prdType == '02')) {
this.setAshShow();
}
// 设置脱轨器
model.signalDerailer && exec(DerailerMap[model.signalDerailer], this.derailer, this.style);

View File

@ -3,7 +3,7 @@ import Arc from 'zrender/src/graphic/shape/Arc';
import Sector from 'zrender/src/graphic/shape/Sector';
import Group from 'zrender/src/container/Group';
// import Path from 'zrender/src/graphic/Path';
import {ESigFault} from './ESigFault';
// import {ESigFault} from './ESigFault';
class ESigLamp extends Group {
constructor(model) {

View File

@ -319,7 +319,8 @@ class Signal extends Group {
});
this.add(this.insideTriangle);
}
if (style.Signal.sigBack) {
if (style.Signal.sigBack || (style.Signal.virtual && style.Signal.virtual.bg && model.virtual)) {
const bgObj = style.Signal.sigBack || style.Signal.virtual.bg;
const signalRect = this.sigPost.getBoundingRect().clone();
this.lamps.forEach(elem => {
signalRect.union(elem.getBoundingRect().clone());
@ -332,15 +333,15 @@ class Signal extends Group {
zlevel: this.zlevel,
z: this.z - 1,
shape: {
x: signalRect.x - style.Signal.sigBack.distanceX,
y: signalRect.y + style.Signal.sigBack.distanceY,
width: signalRect.width + 2 * style.Signal.sigBack.distanceX,
height: signalRect.height - 2 * style.Signal.sigBack.distanceY
x: signalRect.x - bgObj.distanceX,
y: signalRect.y + bgObj.distanceY,
width: signalRect.width + 2 * bgObj.distanceX,
height: signalRect.height - 2 * bgObj.distanceY
},
style: {
lineWidth: style.Signal.sigBack.lineWidth,
fill: style.Signal.sigBack.fillColor,
stroke: style.Signal.sigBack.strokecolor
lineWidth: bgObj.lineWidth,
fill: bgObj.fillColor,
stroke: bgObj.strokecolor
}
});
this.add(this.sigBack);
@ -465,7 +466,7 @@ class Signal extends Group {
this.add(this.sigDelay);
this.add(this.remainTimeName);
if (this.model.virtual) {
if (this.model.virtual && this.style.Signal.virtual && this.style.Signal.virtual.lamp === 'triangle') {
// 虚拟信号机显示
this.virtualSignal = new EVirtualSignal({
zlevel: this.zlevel,
@ -770,7 +771,7 @@ class Signal extends Group {
this.sigPost.setColor(this.style.Signal.post.approachLockColor);
}
}
fault() {
noOpenFault() {
if (this.style.Signal.lamp.faultType == 'flash') {
// this.lamps[0].faultShow();
} else if (this.style.Signal.lamp.faultType == 'cross') {
@ -791,6 +792,25 @@ class Signal extends Group {
this.lamps[0].setAnimationStart('red');
}
}
lightingUnitFaultName() {
this.sigName && this.sigName.setAnimationStart(this.sigName.name.style.textFill);
}
lightingUnitFaultHead() {
this.lamps && this.lamps[0] && this.lamps[0].setAnimationStart(this.lamps[0].lamp.style.fill);
}
fault(faultType) {
switch (faultType) {
case 'NO_OPEN':
this.noOpenFault();
break;
case 'LIGHTING_UNIT_FAULT_NAME':
this.lightingUnitFaultName();
break;
case 'LIGHTING_UNIT_FAULT_HEAD':
this.lightingUnitFaultHead();
break;
}
}
// 逻辑点灯
logicalLight() {
@ -1114,13 +1134,14 @@ class Signal extends Group {
}
model.approachLock && this.handleApproachLock();
// 信号机故障
model.fault && this.fault();
model.fault && this.fault(model.fault);
if (model.guideTime) {
this.tText && this.tText.setStyle('text', model.guideTime);
this.tText && this.tText.show();
}
this.model.virtual && this.sigBack && this.sigBack.show();
// 设置灰显
if (model.noStatus) {
if (model.noStatus || (model.atsNoStatus && store.state.training.prdType == '02')) {
this.setAshShow();
}

View File

@ -1,5 +1,6 @@
import Group from 'zrender/src/container/Group';
import Text from 'zrender/src/graphic/Text';
import store from '@/store/index';
class ETrainSetButton extends Group {
constructor(model) {
@ -53,7 +54,9 @@ class ETrainSetButton extends Group {
}
setState(model) {
model.noStatus && this.setColor('#7F7F7F');
if (model.noStatus || (model.atsNoStatus && store.state.training.prdType == '02')) {
this.setColor('#7F7F7F');
}
}
}

View File

@ -153,7 +153,9 @@ class StationStand extends Group {
this.downDetainLamp && this.downDetainLamp.hide();
}
setScreenDoorOpenStatus(model) {
this.gapStand && this.gapStand.setState(model);
if (!this.model.noStatus && !(this.model.atsNoStatus && store.state.training.prdType == '02')) {
this.gapStand && this.gapStand.setState(model);
}
}
setState(model) {
// // 新版地图使用新版状态变更方式
@ -224,6 +226,10 @@ class StationStand extends Group {
rect = this.stationPlatform.getBoundingRect();
break;
}
case 'StandDetain': {
rect = this.detainNormal.getBoundingRect();
break;
}
default: {
rect = this.getBoundingRect();
break;

View File

@ -1,6 +1,7 @@
import Group from 'zrender/src/container/Group';
import Rect from 'zrender/src/graphic/shape/Rect';
import Text from 'zrender/src/graphic/Text';
import store from '@/store/index';
class EGapStand extends Group {
constructor(model) {
@ -108,7 +109,9 @@ class EGapStand extends Group {
this.setClose();
}
}
model.noStatus && this.setColor('#7F7F7F');
if (model.noStatus || (model.atsNoStatus && store.state.training.prdType == '02')) {
this.setColor('#7F7F7F');
}
}
}

View File

@ -739,7 +739,9 @@ export default class Switch extends Group {
const sectionC = this.mapDevice[switchModel.sectionCCode];
sectionC && sectionC.instance && sectionC.instance.handleSwitchSection(sectionC);
}
model.noStatus && this.setAshShow();
if (model.noStatus || (model.atsNoStatus && store.state.training.prdType == '02')) {
this.setAshShow();
}
!model.auto && this.artificialArc && this.artificialArc.show();
}
}

View File

@ -184,6 +184,8 @@ export default {
}
if (name) {
this.deviceName = deviceType[selected._type] + '-' + name;
} else if (selected._type == 'Server') {
this.deviceName = '服务器';
} else {
this.deviceName = deviceType[selected._type];
}
@ -224,6 +226,35 @@ export default {
{label: '红光带故障', value: 'AXLE_FAULT'},
{label: '橙光带故障', value: 'ARB'}
];
} else if (selected._type === 'Switch' && this.popClass === 'nanjing-02__systerm' ) {
this.faultList = [
{label: '短闪', value: 'SPLIT'},
{label: '短闪4次恢复', value: 'SPLIT_4'},
{label: '定位短闪', value: 'NORMAL_SPLIT'},
{label: '反位短闪', value: 'REVERSE_SPLIT'},
{label: '长闪', value: 'SQUEEZE'},
{label: '道岔区段灰显', value: 'SECTION_NO_STATUS'},
{label: '通信车占用', value: 'CBTC_OCCUPIED_FAULT'},
{label: '红光带故障', value: 'AXLE_FAULT'},
{label: '橙光带故障', value: 'ARB'}
];
} else if (selected._type === 'Server' && this.popClass === 'nanjing-02__systerm') {
this.faultList = [
{label: 'ATS故障', value: 'ATS_FAULT' }
];
} else if (selected._type === 'Signal' && this.popClass === 'nanjing-02__systerm') {
this.faultList = [
{label: '无法开放(非CTC)', value: 'NO_OPEN'},
{label: '编号闪', value: 'LIGHTING_UNIT_FAULT_NAME'},
{label: '机头闪', value: 'LIGHTING_UNIT_FAULT_HEAD'}
];
} else if (selected._type === 'Section' && this.popClass === 'nanjing-02__systerm') {
this.faultList = [
{label: '紫光带故障', value: 'FAULT'},
{label: '红光带故障', value: 'CBTC_OCCUPIED_FAULT'},
{label: '计轴受扰', value: 'ARB'},
{label:'无数据故障', value:'UNABLE_COLLECT_STATUS'}
];
}
if (this.faultList && this.faultList.length) {
this.form.faultType = this.faultList[0].value;

View File

@ -11,11 +11,14 @@
<passive-alarm ref="passiveAlarm" />
<passive-contorl ref="passiveControl" pop-class="haerbin-01__systerm" />
<passive-Timeout ref="passiveTimeout" />
<pop-menu ref="popMenu" :menu="menu" />
<set-fault ref="setFault" pop-class="nanjing-02__systerm" />
</div>
</template>
<script>
import { mapGetters } from 'vuex';
import PopMenu from '@/components/PopMenu';
import MenuTrain from './menuTrain';
import MenuBar from './menuBar';
import MenuButton from './menuButton';
@ -27,6 +30,11 @@ import MenuStationStand from './menuStationStand';
import PassiveAlarm from './passiveDialog/alarm';
import PassiveContorl from '@/jmapNew/theme/components/menus/passiveDialog/control';
import PassiveTimeout from './passiveDialog/timeout';
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
import CMD from '@/scripts/cmdPlugin/CommandEnum';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import { menuOperate, commitOperate } from '@/jmapNew/theme/components/utils/menuOperate';
import CommandHandler from '@/scripts/cmdPlugin/CommandHandler.js';
export default {
name: 'Menus',
@ -41,7 +49,9 @@ export default {
MenuStationStand,
PassiveAlarm,
PassiveContorl,
PassiveTimeout
PassiveTimeout,
PopMenu,
SetFault
},
props: {
selected: {
@ -54,13 +64,36 @@ export default {
data() {
return {
loginActive: false,
inputStr: ''
inputStr: '',
menu: [
{
label: '设置故障',
handler: this.setStoppage,
cmdType: CMD.Fault.CMD_SET_FAULT
},
{
label: '取消故障',
handler: this.cancelStoppage,
cmdType: CMD.Fault.CMD_CANCEL_FAULT
},
{
label: 'ATP重启',
handler: this.atpRestart,
cmdType: CMD.Fault.CMD_SET_FAULT
}
]
};
},
computed: {
...mapGetters('config', [
'width'
]),
...mapGetters('menuOperation', [
'buttonOperation'
]),
...mapGetters('training', [
'operatemode'
]),
isShowButton() {
return this.$store.state.training.prdType === '01' || this.$store.state.training.prdType === '02';
},
@ -73,6 +106,13 @@ export default {
watch: {
isShowBar(val) {
val && this.$store.dispatch('config/updateMenuBar');
},
'$store.state.menuOperation.menuCount': function (val) {
if (this.$store.getters['menuOperation/checkDialogIsOpen'](DeviceMenu.Cancel) && !this.buttonOperation && this.operatemode === OperateMode.FAULT) {
this.doShow(this.$store.state.menuOperation.menuPosition);
} else {
this.doClose();
}
}
},
mounted() {
@ -84,6 +124,69 @@ export default {
login(inputStr) {
this.loginActive = !!inputStr;
this.inputStr = inputStr;
},
clickEvent() {
const self = this;
window.onclick = function (e) {
self.doClose();
};
},
doShow(point) {
this.clickEvent();
if (this.$refs && this.$refs.popMenu && this.menu && this.menu.length) {
this.$refs.popMenu.resetShowPosition(point);
}
},
//
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: 'Server' }, 0).then(({valid, operate})=>{
if (valid) {
this.$refs.setFault.doShow(menuOperate.Common.setFault, { _type: 'Server' });
}
});
},
//
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: 'Server' }, 0).then(({valid, operate})=>{
if (valid) {
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, { _type: 'Server' });
}
});
},
atpRestart() {
CommandHandler.execute('Server_ATP_Restart', {}).then(resp => {
this.doClose();
}).catch(error => {
this.doClose();
this.$messageBox(error.message || 'ATP重启失败');
});
// const step = {
// over: true,
// operation: menuOperate.Server.atpRestart.operation,
// cmdType: menuOperate.Server.atpRestart.cmdType
// // param: {
// // code: 'Server',
// // faultType: 'Server_ATP_Restart'
// // }
// };
// this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
// if (valid) {
// this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
// this.doClose();
// } else {
// this.doClose();
// this.$messageBox('ATP');
// }
// }).catch((error) => {
// this.loading = false;
// this.doClose();
// this.$messageBox(error.message || 'ATP');
// });
},
doClose() {
if (this.$refs && this.$refs.popMenu) {
this.$refs.popMenu.close();
}
}
}
};

View File

@ -246,7 +246,7 @@
<div class="station_buttonGroupL">
<div v-if="allowDetain" :id="setDetainTrainId" class="stationButton" @click="stationDetainTrain">此站扣车</div>
<div v-else class="stationButton disabled">此站扣车</div>
<div v-if="allowJump" :id="setJumpStopId" class="stationButton station_jumpTrain" @click="stationAllJumpTrain">连续扣车</div>
<div v-if="allowJump" :id="setBulkBuckleTrainId" class="stationButton station_jumpTrain" @click="stationAllJumpTrain">连续扣车</div>
<div v-else class="stationButton station_jumpTrain disabled">连续扣车</div>
</div>
<div class="station_buttonGroupR">
@ -276,6 +276,7 @@
</template>
</el-row>
</div>
<notice-info ref="noticeInfo" pop-class="nanjing-02__systerm" />
</div>
</template>
<script>
@ -289,8 +290,12 @@ import CMD from '@/scripts/cmdPlugin/CommandEnum';
import BanIcon from '@/assets/ban-heb.png';
import { queryRunPlanList } from '@/api/runplan';
import { simulationLoadRunPlan } from '@/api/simulation';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
export default {
components: {
NoticeInfo
},
props: {
selected: {
type: Object,
@ -411,6 +416,9 @@ export default {
setJumpStopId() {
return OperationEvent.StationStand.setJumpStop.menuButton.domId;
},
setBulkBuckleTrainId() {
return OperationEvent.StationStand.setBulkBuckleTrain.menuButton.domId;
},
cr1ConfrimId() {
return OperationEvent.Command.commandHaerbin.confrimCr1.domId;
},
@ -573,7 +581,7 @@ export default {
});
lists.forEach((el, index) => {
if (el.disabledCb && stationContorl) {
el.disabled = el.disabledCb(stationContorl);
el.disabled = el.disabledCb(stationContorl, this.selectedObj);
}
this.menuCmdList[index] = el;
});
@ -915,7 +923,7 @@ export default {
name: `${el} km/h`,
commandTip: `${tip}${el}KM`,
cmdType: this.cmdType,
operate: OperationEvent.Command.common.choose,
operate: OperationEvent.Switch.setSpeed['choose' + el],
next: true,
param:{speedLimitValue:el},
value: el
@ -979,7 +987,7 @@ export default {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
}
}).catch((error) => {
if (error && error.code == '10017') {
if ( error && error.code == '10017') {
EventBus.$emit('sendMsg', {message: error.message});
} else {
EventBus.$emit('sendMsg', {message: '命令执行失败!'});
@ -1016,8 +1024,10 @@ export default {
this.handleClose();
if (error && error.code == '10017') {
EventBus.$emit('sendMsg', {message: error.message});
this.$store.state.training.prdType === '02' && this.$refs.noticeInfo.doShow(error.message);
} else {
EventBus.$emit('sendMsg', {message: `${this.commandInfo.name}失败`});
this.$store.state.training.prdType === '02' && this.$refs.noticeInfo.doShow(`${this.commandInfo.name}失败`);
}
});
},
@ -1038,8 +1048,10 @@ export default {
}).catch((error) => {
if (error && error.code == '10017') {
EventBus.$emit('sendMsg', {message: error.message});
this.$store.state.training.prdType === '02' && this.$refs.noticeInfo.doShow(error.message);
} else {
EventBus.$emit('sendMsg', {message: '命令执行失败!'});
this.$store.state.training.prdType === '02' && this.$refs.noticeInfo.doShow('命令执行失败!');
}
this.doClose();
});
@ -1065,8 +1077,10 @@ export default {
this.handleClose();
if (error && error.code == '10017') {
EventBus.$emit('sendMsg', {message: error.message});
this.$store.state.training.prdType === '02' && this.$refs.noticeInfo.doShow(error.message);
} else {
EventBus.$emit('sendMsg', {message: `${this.commandInfo.name}失败`});
this.$store.state.training.prdType === '02' && this.$refs.noticeInfo.doShow(`${this.commandInfo.name}失败`);
}
});
},
@ -1189,8 +1203,10 @@ export default {
}).catch((error) => {
if (error && error.code == '10017') {
EventBus.$emit('sendMsg', {message: error.message});
this.$store.state.training.prdType === '02' && this.$refs.noticeInfo.doShow(error.message);
} else {
EventBus.$emit('sendMsg', {message: '命令执行失败!'});
this.$store.state.training.prdType === '02' && this.$refs.noticeInfo.doShow('命令执行失败!');
}
});
},
@ -1209,8 +1225,10 @@ export default {
this.handleStationClose();
if (error && error.code == '10017') {
EventBus.$emit('sendMsg', {message: error.message});
this.$store.state.training.prdType === '02' && this.$refs.noticeInfo.doShow(error.message);
} else {
EventBus.$emit('sendMsg', {message: '命令执行失败!'});
this.$store.state.training.prdType === '02' && this.$refs.noticeInfo.doShow('命令执行失败!');
}
});
},
@ -1230,8 +1248,10 @@ export default {
}).catch((error) => {
if (error && error.code == '10017') {
EventBus.$emit('sendMsg', {message: error.message});
this.$store.state.training.prdType === '02' && this.$refs.noticeInfo.doShow(error.message);
} else {
EventBus.$emit('sendMsg', {message: '命令执行失败!'});
this.$store.state.training.prdType === '02' && this.$refs.noticeInfo.doShow('命令执行失败!');
}
});
},
@ -1265,25 +1285,29 @@ export default {
row.cmdType = CMD.Stand.CMD_STAND_SET_HOLD_TRAIN_ALL;
row.param = { 'standCodes': lists.map(el => el.code) };
this.stationCommand(row);
// this.stationCommand(row);264
// this.stationCommand(row);
},
getStationControlForbidden(code) {
const device = this.$store.getters['map/getDeviceByCode'](code);
return device && device.interlockMachineStarting;
},
initMenus() {
this.basicParamList = this.$store.state.training.prdType === '01' ? [
{ name: '自排全开', commandTip: '自排全开', cmdType: CMD.Station.CMD_STATION_OPEN_AUTO_SETTING, operate: OperationEvent.Station.atsAutoControlALL.menu, fillStationCode: true, disabledCb: (stationControl) => ['Center', 'None'].includes(stationControl.controlMode) },
{ name: '自排全关', commandTip: '自排全关', cmdType: CMD.Station.CMD_STATION_CLOSE_AUTO_SETTING, operate: OperationEvent.Station.humanControlALL.menu, fillStationCode: true, disabledCb: (stationControl) => ['Center', 'None'].includes(stationControl.controlMode) },
{ name: '释放指令', commandTip: '释放指令', cmdType: CMD.Station.CMD_STATION_RELEASE, operate: OperationEvent.Station.stationRelease.menuButton, securityCommand: true, fillStationCode: true, disabledCb: (stationControl) => ['Center', 'None'].includes(stationControl.controlMode) },
{ name: '重启令解', commandTip: '重启令解', cmdType: CMD.Station.CMD_STATION_RESTART, operate: OperationEvent.Station.stationRestart.menuButton, securityCommand: true, fillStationCode: true, disabledCb: (stationControl) => ['Center', 'None'].includes(stationControl.controlMode) },
{ name: '追踪全开', commandTip: '追踪全开', cmdType: CMD.Station.CMD_STATION_SET_CI_AUTO_TRIGGER, operate: OperationEvent.Station.setAutoTrigger.menu, fillStationCode: true, disabledCb: (stationControl) => ['Center', 'None'].includes(stationControl.controlMode) },
{ name: '追踪全关', commandTip: '追踪全关', cmdType: CMD.Station.CMD_STATION_CANCEL_CI_AUTO_TRIGGER, operate: OperationEvent.Station.cancelAutoTrigger.menu, fillStationCode: true, disabledCb: (stationControl) => ['Center', 'None'].includes(stationControl.controlMode) },
{ name: '关区信号', commandTip: '关区信号', cmdType: CMD.Station.CMD_STATION_CIAREA_CLOSE_ALLSIGNAL, operate: OperationEvent.Station.ciAreaCloseAllSignal.menu, fillStationCode: true, disabledCb: (stationControl) => ['Center', 'None'].includes(stationControl.controlMode) },
{ name: '强行站控', commandTip: '车站强行取得控制权', cmdType: CMD.ControlConvertMenu.CMD_CM_FORCE_STATION_CONTROL, operate: OperationEvent.StationControl.forcedStationControl.menuButton, securityCommand: true, fillStationCode: true, disabledCb: (stationControl) => ['Local'].includes(stationControl.controlMode) },
{ name: '接收控制', commandTip: '接收控制权', cmdType: CMD.ControlConvertMenu.CMD_CM_RECEIVE_CONTROL, operate: OperationEvent.StationControl.requestStationControl.menuButton, fillStationCode: true, disabledCb: (stationControl) => ['Local'].includes(stationControl.controlMode) },
{ name: '交出控制', commandTip: '交出控制权', cmdType: CMD.ControlConvertMenu.CMD_CM_SURRENDER_CONTROL, operate: OperationEvent.StationControl.requestCentralControl.menuButton, fillStationCode: true, disabledCb: (stationControl) => ['Center', 'None'].includes(stationControl.controlMode) },
{ name: '自排全开', commandTip: '自排全开', cmdType: CMD.Station.CMD_STATION_OPEN_AUTO_SETTING, operate: OperationEvent.Station.atsAutoControlALL.menuButton, fillStationCode: true, disabledCb: (stationControl, device) => ['Center', 'None'].includes(stationControl.controlMode) || this.getStationControlForbidden(stationControl.code) },
{ name: '自排全关', commandTip: '自排全关', cmdType: CMD.Station.CMD_STATION_CLOSE_AUTO_SETTING, operate: OperationEvent.Station.humanControlALL.menuButton, fillStationCode: true, disabledCb: (stationControl, device) => ['Center', 'None'].includes(stationControl.controlMode) || this.getStationControlForbidden(stationControl.code) },
{ name: '释放指令', commandTip: '释放指令', cmdType: CMD.Station.CMD_STATION_RELEASE, operate: OperationEvent.Station.stationRelease.menuButton, securityCommand: true, fillStationCode: true, disabledCb: (stationControl, device) => ['Center', 'None'].includes(stationControl.controlMode) },
{ name: '重启令解', commandTip: '重启令解', cmdType: CMD.Station.CMD_STATION_RESTART, operate: OperationEvent.Station.stationRestart.menuButton, securityCommand: true, fillStationCode: true, disabledCb: (stationControl, device) => ['Center', 'None'].includes(stationControl.controlMode) },
{ name: '追踪全开', commandTip: '追踪全开', cmdType: CMD.Station.CMD_STATION_SET_CI_AUTO_TRIGGER, operate: OperationEvent.Station.setAutoTrigger.menuButton, fillStationCode: true, disabledCb: (stationControl, device) => ['Center', 'None'].includes(stationControl.controlMode) || this.getStationControlForbidden(stationControl.code) },
{ name: '追踪全关', commandTip: '追踪全关', cmdType: CMD.Station.CMD_STATION_CANCEL_CI_AUTO_TRIGGER, operate: OperationEvent.Station.cancelAutoTrigger.menuButton, fillStationCode: true, disabledCb: (stationControl, device) => ['Center', 'None'].includes(stationControl.controlMode) || this.getStationControlForbidden(stationControl.code) },
{ name: '关区信号', commandTip: '关区信号', cmdType: CMD.Station.CMD_STATION_CIAREA_CLOSE_ALLSIGNAL, operate: OperationEvent.Station.ciAreaCloseAllSignal.menuButton, fillStationCode: true, disabledCb: (stationControl, device) => ['Center', 'None'].includes(stationControl.controlMode) || this.getStationControlForbidden(stationControl.code) },
{ name: '强行站控', commandTip: '车站强行取得控制权', cmdType: CMD.ControlConvertMenu.CMD_CM_FORCE_STATION_CONTROL, operate: OperationEvent.StationControl.forcedStationControl.menuButton, securityCommand: true, fillStationCode: true, disabledCb: (stationControl, device) => ['Local'].includes(stationControl.controlMode) },
{ name: '接收控制', commandTip: '接收控制权', cmdType: CMD.ControlConvertMenu.CMD_CM_RECEIVE_CONTROL, operate: OperationEvent.StationControl.requestStationControl.menuButton, fillStationCode: true, disabledCb: (stationControl, device) => ['Local'].includes(stationControl.controlMode) },
{ name: '交出控制', commandTip: '交出控制权', cmdType: CMD.ControlConvertMenu.CMD_CM_SURRENDER_CONTROL, operate: OperationEvent.StationControl.requestCentralControl.menuButton, fillStationCode: true, disabledCb: (stationControl, device) => ['Center', 'None'].includes(stationControl.controlMode) || this.getStationControlForbidden(stationControl.code) },
{ name: '' },
{ name: '' },
{ name: '' },
{ name: '' },
{ name: '关闭索引', cmdType: '', operate: OperationEvent.StationControl.requestCentralControl.menuButton, fillStationCode: true, disabledCb: (stationControl) => ['None'].includes(stationControl.controlMode) }
{ name: '关闭索引', cmdType: '', operate: OperationEvent.StationControl.requestCentralControl.menuButton, fillStationCode: true, disabledCb: (stationControl) => ['None'].includes(stationControl.controlMode) || this.getStationControlForbidden(stationControl.code) }
] : [
{ name: '' },
{ name: '' },
@ -1302,110 +1326,110 @@ export default {
{ name: '' }
];
this.sectionParamList = this.selected && this.selected.type == '05' ? [
{ name: '岔芯设限', cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED, operate: OperationEvent.Section.setSpeed.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch },
{ name: '岔芯消限', commandTip: '取消对岔芯的限速', cmdType: CMD.Section.CMD_SECTION_CANCEL_LIMIT_SPEED, operate: OperationEvent.Section.cancelSpeed.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch },
{ name: '强行消限', commandTip: '强行取消对岔芯的限速', cmdType: CMD.Section.CMD_SECTION_CANCEL_LIMIT_SPEED, operate: OperationEvent.Section.cancelSpeed.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch },
{ name: '预复位', commandTip: '预重置岔芯', cmdType: CMD.Section.CMD_SECTION_AXIS_PRE_RESET, operate: OperationEvent.Section.axlePreReset.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch },
{ name: '封锁岔芯', commandTip: '封锁岔芯', cmdType: CMD.Section.CMD_SECTION_BLOCK, operate: OperationEvent.Section.lock.menuButton, disabledCb: (stationControl) => !this.modeMatch },
{ name: '解封岔芯', commandTip: '解封岔芯', cmdType: CMD.Section.CMD_SECTION_UNBLOCK, operate: OperationEvent.Section.unlock.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch },
{ name: '强解岔芯', commandTip: '强解岔芯', cmdType: CMD.Section.CMD_SECTION_FAULT_UNLOCK, operate: OperationEvent.Section.fault.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch }
{ name: '岔芯设限', cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED, operate: OperationEvent.Section.setSpeed.menuButton, securityCommand: true, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '岔芯消限', commandTip: '取消对岔芯的限速', cmdType: CMD.Section.CMD_SECTION_CANCEL_LIMIT_SPEED, operate: OperationEvent.Section.cancelSpeed.menuButton, securityCommand: true, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '强行消限', commandTip: '强行取消对岔芯的限速', cmdType: CMD.Section.CMD_SECTION_CANCEL_LIMIT_SPEED, operate: OperationEvent.Section.cancelSpeed.menuButton, securityCommand: true, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '预复位', commandTip: '预重置岔芯', cmdType: CMD.Section.CMD_SECTION_AXIS_PRE_RESET, operate: OperationEvent.Section.axlePreReset.menuButton, securityCommand: true, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '封锁岔芯', commandTip: '封锁岔芯', cmdType: CMD.Section.CMD_SECTION_BLOCK, operate: OperationEvent.Section.lock.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '解封岔芯', commandTip: '解封岔芯', cmdType: CMD.Section.CMD_SECTION_UNBLOCK, operate: OperationEvent.Section.unlock.menuButton, securityCommand: true, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '强解岔芯', commandTip: '强解岔芯', cmdType: CMD.Section.CMD_SECTION_FAULT_UNLOCK, operate: OperationEvent.Section.fault.menuButton, securityCommand: true, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) }
] : [
{ name: '轨区设限', cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED, operate: OperationEvent.Section.setSpeed.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch, isShow: () => this.$store.state.training.prdType == '01' },
{ name: '轨区消限', commandTip: '取消对轨道区段的限速', cmdType: CMD.Section.CMD_SECTION_CANCEL_LIMIT_SPEED, operate: OperationEvent.Section.cancelSpeed.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch, isShow: () => this.$store.state.training.prdType == '01' },
{ name: '强行消限', commandTip: '强行取消对轨道区段的限速', cmdType: CMD.Section.CMD_SECTION_CANCEL_LIMIT_SPEED, operate: OperationEvent.Section.cancelSpeed.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch, isShow: () => this.$store.state.training.prdType == '01' },
{ name: '强解区段', commandTip: '解锁进路中的轨道区段', cmdType: CMD.Section.CMD_SECTION_FAULT_UNLOCK, operate: OperationEvent.Section.fault.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch, isShow: () => this.$store.state.training.prdType == '01' },
{ name: '预复位', commandTip: '预重置计轴区段', cmdType: CMD.Section.CMD_SECTION_AXIS_PRE_RESET, operate: OperationEvent.Section.axlePreReset.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch, isShow: () => this.$store.state.training.prdType == '01' },
{ name: '封锁区段', commandTip: '禁止通过该轨道区段排列进路', cmdType: CMD.Section.CMD_SECTION_BLOCK, operate: OperationEvent.Section.lock.menuButton, disabledCb: (stationControl) => !this.modeMatch },
{ name: '解封区段', commandTip: '允许通过该轨道区段排列进路', cmdType: CMD.Section.CMD_SECTION_UNBLOCK, operate: OperationEvent.Section.unlock.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch, isShow: () => this.$store.state.training.prdType == '01' },
{ name: '轨区设限', cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED, operate: OperationEvent.Section.setSpeed.menuButton, securityCommand: true, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code), isShow: () => this.$store.state.training.prdType == '01' },
{ name: '轨区消限', commandTip: '取消对轨道区段的限速', cmdType: CMD.Section.CMD_SECTION_CANCEL_LIMIT_SPEED, operate: OperationEvent.Section.cancelSpeed.menuButton, securityCommand: true, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code), isShow: () => this.$store.state.training.prdType == '01' },
{ name: '强行消限', commandTip: '强行取消对轨道区段的限速', cmdType: CMD.Section.CMD_SECTION_CANCEL_LIMIT_SPEED, operate: OperationEvent.Section.forceCancelSpeed.menuButton, securityCommand: true, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code), isShow: () => this.$store.state.training.prdType == '01' },
{ name: '强解区段', commandTip: '解锁进路中的轨道区段', cmdType: CMD.Section.CMD_SECTION_FAULT_UNLOCK, operate: OperationEvent.Section.fault.menuButton, securityCommand: true, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code), isShow: () => this.$store.state.training.prdType == '01' },
{ name: '预复位', commandTip: '预重置计轴区段', cmdType: CMD.Section.CMD_SECTION_AXIS_PRE_RESET, operate: OperationEvent.Section.axlePreReset.menuButton, securityCommand: true, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code), isShow: () => this.$store.state.training.prdType == '01' },
{ name: '封锁区段', commandTip: '禁止通过该轨道区段排列进路', cmdType: CMD.Section.CMD_SECTION_BLOCK, operate: OperationEvent.Section.lock.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '解封区段', commandTip: '允许通过该轨道区段排列进路', cmdType: CMD.Section.CMD_SECTION_UNBLOCK, operate: OperationEvent.Section.unlock.menuButton, securityCommand: true, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code), isShow: () => this.$store.state.training.prdType == '01' },
{ name: '上行不折返', commandTip: '上行不折返', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.setBackStrategy.menuBtnUp01, params: {val: 'NONE'}, disabledCb: (stationControl) => !this.modeMatch, isShow: (section) => section && ((section.roadType === 'RIGHT' && this.$store.state.map.mapConfig.upRight) || (section.roadType === 'LEFT' && !this.$store.state.map.mapConfig.upRight)) && section.standTrack && this.$store.state.training.prdType == '02' },
{ name: '下行不折返', commandTip: '下行不折返', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.setBackStrategy.menuBtnDown01, params: {val: 'NONE'}, disabledCb: (stationControl) => !this.modeMatch, isShow: (section) => section && ((section.roadType === 'LEFT' && this.$store.state.map.mapConfig.upRight) || (section.roadType === 'RIGHT' && !this.$store.state.map.mapConfig.upRight)) && section.standTrack && this.$store.state.training.prdType == '02' },
{ name: '上行缺省折返', commandTip: '上行缺省折返', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.setBackStrategy.menuBtnUp02, params: {val: 'DEFAULT'}, disabledCb: (stationControl) => !this.modeMatch, isShow: (section) => section && ((section.roadType === 'RIGHT' && this.$store.state.map.mapConfig.upRight) || (section.roadType === 'LEFT' && !this.$store.state.map.mapConfig.upRight)) && section.standTrack && this.$store.state.training.prdType == '02' },
{ name: '下行缺省折返', commandTip: '下行缺省折返', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.setBackStrategy.menuBtnDown02, params: {val: 'DEFAULT'}, disabledCb: (stationControl) => !this.modeMatch, isShow: (section) => section && ((section.roadType === 'LEFT' && this.$store.state.map.mapConfig.upRight) || (section.roadType === 'RIGHT' && !this.$store.state.map.mapConfig.upRight)) && section.standTrack && this.$store.state.training.prdType == '02' },
{ name: '上行换端', commandTip: '上行换端', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.setBackStrategy.menuBtnUp03, params: {val: 'AUTO'}, disabledCb: (stationControl) => !this.modeMatch, isShow: (section) => section && ((section.roadType === 'RIGHT' && this.$store.state.map.mapConfig.upRight) || (section.roadType === 'LEFT' && !this.$store.state.map.mapConfig.upRight)) && section.standTrack && this.$store.state.training.prdType == '02' },
{ name: '下行换端', commandTip: '下行换端', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.setBackStrategy.menuBtnDown03, params: {val: 'AUTO'}, disabledCb: (stationControl) => !this.modeMatch, isShow: (section) => section && ((section.roadType === 'LEFT' && this.$store.state.map.mapConfig.upRight) || (section.roadType === 'RIGHT' && !this.$store.state.map.mapConfig.upRight)) && section.standTrack && this.$store.state.training.prdType == '02' },
{ name: '上行自动折返', commandTip: '上行自动折返', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.setBackStrategy.menuBtnUp04, params: {val: 'UNMANNED'}, disabledCb: (stationControl) => !this.modeMatch, isShow: (section) => section && ((section.roadType === 'RIGHT' && this.$store.state.map.mapConfig.upRight) || (section.roadType === 'LEFT' && !this.$store.state.map.mapConfig.upRight)) && section.standTrack && this.$store.state.training.prdType == '02' },
{ name: '下行自动折返', commandTip: '下行自动折返', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.setBackStrategy.menuBtnDown04, params: {val: 'UNMANNED'}, disabledCb: (stationControl) => !this.modeMatch, isShow: (section) => section && ((section.roadType === 'LEFT' && this.$store.state.map.mapConfig.upRight) || (section.roadType === 'RIGHT' && !this.$store.state.map.mapConfig.upRight)) && section.standTrack && this.$store.state.training.prdType == '02' },
{ name: '车站发车', commandTip: '车站发车', cmdType: CMD.Stand.CMD_STAND_EARLY_DEPART, operate: OperationEvent.Section.earlyDeparture.menuBtn, disabledCb: (stationControl) => !this.modeMatch, isShow: (section) => section && section.standTrack && this.$store.state.training.prdType == '02' },
{ name: '上行不折返', commandTip: '上行不折返', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.setBackStrategy.menuBtnUp01, params: {val: 'NONE'}, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code), isShow: (section) => section && ((section.roadType === 'RIGHT' && this.$store.state.map.mapConfig.upRight) || (section.roadType === 'LEFT' && !this.$store.state.map.mapConfig.upRight)) && section.standTrack && this.$store.state.training.prdType == '02' },
{ name: '下行不折返', commandTip: '下行不折返', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.setBackStrategy.menuBtnDown01, params: {val: 'NONE'}, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code), isShow: (section) => section && ((section.roadType === 'LEFT' && this.$store.state.map.mapConfig.upRight) || (section.roadType === 'RIGHT' && !this.$store.state.map.mapConfig.upRight)) && section.standTrack && this.$store.state.training.prdType == '02' },
{ name: '上行缺省折返', commandTip: '上行缺省折返', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.setBackStrategy.menuBtnUp02, params: {val: 'DEFAULT'}, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code), isShow: (section) => section && ((section.roadType === 'RIGHT' && this.$store.state.map.mapConfig.upRight) || (section.roadType === 'LEFT' && !this.$store.state.map.mapConfig.upRight)) && section.standTrack && this.$store.state.training.prdType == '02' },
{ name: '下行缺省折返', commandTip: '下行缺省折返', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.setBackStrategy.menuBtnDown02, params: {val: 'DEFAULT'}, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code), isShow: (section) => section && ((section.roadType === 'LEFT' && this.$store.state.map.mapConfig.upRight) || (section.roadType === 'RIGHT' && !this.$store.state.map.mapConfig.upRight)) && section.standTrack && this.$store.state.training.prdType == '02' },
{ name: '上行换端', commandTip: '上行换端', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.setBackStrategy.menuBtnUp03, params: {val: 'AUTO'}, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code), isShow: (section) => section && ((section.roadType === 'RIGHT' && this.$store.state.map.mapConfig.upRight) || (section.roadType === 'LEFT' && !this.$store.state.map.mapConfig.upRight)) && section.standTrack && this.$store.state.training.prdType == '02' },
{ name: '下行换端', commandTip: '下行换端', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.setBackStrategy.menuBtnDown03, params: {val: 'AUTO'}, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code), isShow: (section) => section && ((section.roadType === 'LEFT' && this.$store.state.map.mapConfig.upRight) || (section.roadType === 'RIGHT' && !this.$store.state.map.mapConfig.upRight)) && section.standTrack && this.$store.state.training.prdType == '02' },
{ name: '上行自动折返', commandTip: '上行自动折返', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.setBackStrategy.menuBtnUp04, params: {val: 'UNMANNED'}, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code), isShow: (section) => section && ((section.roadType === 'RIGHT' && this.$store.state.map.mapConfig.upRight) || (section.roadType === 'LEFT' && !this.$store.state.map.mapConfig.upRight)) && section.standTrack && this.$store.state.training.prdType == '02' },
{ name: '下行自动折返', commandTip: '下行自动折返', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.setBackStrategy.menuBtnDown04, params: {val: 'UNMANNED'}, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code), isShow: (section) => section && ((section.roadType === 'LEFT' && this.$store.state.map.mapConfig.upRight) || (section.roadType === 'RIGHT' && !this.$store.state.map.mapConfig.upRight)) && section.standTrack && this.$store.state.training.prdType == '02' },
{ name: '车站发车', commandTip: '车站发车', cmdType: CMD.Stand.CMD_STAND_EARLY_DEPART, operate: OperationEvent.Section.earlyDeparture.menuBtn, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code), isShow: (section) => section && section.standTrack && this.$store.state.training.prdType == '02' },
{ name: '折返 DTO', commandTip: '折返 DTO', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.turnBackDTO.menuButton, params: {val: 'UNMANNED'}, disabledCb: (stationControl) => !this.modeMatch, isShow: (section) => section && section.standTrack && this.$store.state.training.prdType == '01' },
{ name: '取消折返', commandTip: '取消折返', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.CancelTurnBack.menuButton, params: {val: 'NONE'}, disabledCb: (stationControl) => !this.modeMatch, isShow: (section) => section && section.standTrack && this.$store.state.training.prdType == '01' },
{ name: '自动折返', commandTip: '自动折返', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.AutoTurnBack.menuButton, params: {val: 'DEFAULT'}, disabledCb: (stationControl) => !this.modeMatch, isShow: (section) => section && section.standTrack && this.$store.state.training.prdType == '01' },
{ name: '换上至下', commandTip: '换上至下', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.PutUpTheDown.menuButton, params: {val: 'AUTO'}, disabledCb: (stationControl) => !this.modeMatch, isShow: (section) => section && ((section.roadType === 'RIGHT' && this.$store.state.map.mapConfig.upRight) || (section.roadType === 'LEFT' && !this.$store.state.map.mapConfig.upRight)) && section.standTrack && this.$store.state.training.prdType == '01' },
{ name: '换下至上', commandTip: '换下至上', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.PutDownTheUp.menuButton, params: {val: 'AUTO'}, disabledCb: (stationControl) => !this.modeMatch, isShow: (section) => section && ((section.roadType === 'LEFT' && this.$store.state.map.mapConfig.upRight) || (section.roadType === 'RIGHT' && !this.$store.state.map.mapConfig.upRight)) && section.standTrack && this.$store.state.training.prdType == '01' },
{ name: '终止站停-上', commandTip: '上行终止站停', cmdType: CMD.Stand.CMD_STAND_EARLY_DEPART, operate: OperationEvent.Section.PutUpStop.menuButton, disabledCb: (stationControl) => !this.modeMatch, isShow: (section) => section && ((section.roadType === 'RIGHT' && this.$store.state.map.mapConfig.upRight) || (section.roadType === 'LEFT' && !this.$store.state.map.mapConfig.upRight)) && section.standTrack && this.$store.state.training.prdType == '01' },
{ name: '终止站停-下', commandTip: '下行终止站停', cmdType: CMD.Stand.CMD_STAND_EARLY_DEPART, operate: OperationEvent.Section.PutDownStop.menuButton, disabledCb: (stationControl) => !this.modeMatch, isShow: (section) => section && ((section.roadType === 'LEFT' && this.$store.state.map.mapConfig.upRight) || (section.roadType === 'RIGHT' && !this.$store.state.map.mapConfig.upRight)) && section.standTrack && this.$store.state.training.prdType == '01' }
{ name: '折返 DTO', commandTip: '折返 DTO', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.turnBackDTO.menuButton, params: {val: 'UNMANNED'}, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code), isShow: (section) => section && section.standTrack && this.$store.state.training.prdType == '01' },
{ name: '取消折返', commandTip: '取消折返', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.CancelTurnBack.menuButton, params: {val: 'NONE'}, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code), isShow: (section) => section && section.standTrack && this.$store.state.training.prdType == '01' },
{ name: '自动折返', commandTip: '自动折返', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.AutoTurnBack.menuButton, params: {val: 'DEFAULT'}, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code), isShow: (section) => section && section.standTrack && this.$store.state.training.prdType == '01' },
{ name: '换上至下', commandTip: '换上至下', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.PutUpTheDown.menuButton, params: {val: 'AUTO'}, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code), isShow: (section) => section && ((section.roadType === 'RIGHT' && this.$store.state.map.mapConfig.upRight) || (section.roadType === 'LEFT' && !this.$store.state.map.mapConfig.upRight)) && section.standTrack && this.$store.state.training.prdType == '01' },
{ name: '换下至上', commandTip: '换下至上', cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY, operate: OperationEvent.Section.PutDownTheUp.menuButton, params: {val: 'AUTO'}, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code), isShow: (section) => section && ((section.roadType === 'LEFT' && this.$store.state.map.mapConfig.upRight) || (section.roadType === 'RIGHT' && !this.$store.state.map.mapConfig.upRight)) && section.standTrack && this.$store.state.training.prdType == '01' },
{ name: '终止站停-上', commandTip: '上行终止站停', cmdType: CMD.Stand.CMD_STAND_EARLY_DEPART, operate: OperationEvent.Section.PutStop.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code), isShow: (section) => section && ((section.roadType === 'RIGHT' && this.$store.state.map.mapConfig.upRight) || (section.roadType === 'LEFT' && !this.$store.state.map.mapConfig.upRight)) && section.standTrack && this.$store.state.training.prdType == '01' },
{ name: '终止站停-下', commandTip: '下行终止站停', cmdType: CMD.Stand.CMD_STAND_EARLY_DEPART, operate: OperationEvent.Section.PutStop.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code), isShow: (section) => section && ((section.roadType === 'LEFT' && this.$store.state.map.mapConfig.upRight) || (section.roadType === 'RIGHT' && !this.$store.state.map.mapConfig.upRight)) && section.standTrack && this.$store.state.training.prdType == '01' }
];
this.switchParamList = this.$store.state.training.prdType === '01' ? [
{ name: '岔区设限', cmdType: CMD.Switch.CMD_SWITCH_SET_LIMIT_SPEED, operate: OperationEvent.Switch.setSpeed.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch},
{ name: '岔区消限', commandTip: '取消对道岔区段的限速', cmdType: CMD.Switch.CMD_SWITCH_CANCEL_LIMIT_SPEED, operate: OperationEvent.Switch.cancelSpeed.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch },
{ name: '转换道岔', commandTip: '转换道岔', cmdType: CMD.Switch.CMD_SWITCH_TURN, operate: OperationEvent.Switch.turnout.menuButton, disabledCb: (stationControl) => !this.modeMatch },
{ name: '强行转岔', commandTip: '强制操作道岔', cmdType: CMD.Switch.CMD_SWITCH_FORCE_TURN, operate: OperationEvent.Switch.turnoutForce.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch },
{ name: '强解道岔', commandTip: '强解道岔', cmdType: CMD.Switch.CMD_SWITCH_FAULT_UNLOCK, operate: OperationEvent.Switch.fault.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch },
{ name: '挤岔恢复', commandTip: '取消挤岔逻辑标志', cmdType: CMD.Switch.CMD_SWITCH_SQUEEZE_RECOVERY, operate: OperationEvent.Switch.squeezeRecovery.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch },
{ name: '单独锁定', commandTip: '锁定道岔,阻止转换', cmdType: CMD.Switch.CMD_SWITCH_SINGLE_LOCK, operate: OperationEvent.Switch.lock.menuButton, disabledCb: (stationControl) => !this.modeMatch },
{ name: '取消锁定', commandTip: '取消道岔锁定,道岔可以转换', cmdType: CMD.Switch.CMD_SWITCH_SINGLE_UNLOCK, operate: OperationEvent.Switch.unlock.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch },
{ name: '预复位', commandTip: '预重置道岔区段', cmdType: CMD.Switch.CMD_SWITCH_AXLE_PRE_RESET, operate: OperationEvent.Switch.axlePreReset.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch },
{ name: '封锁道岔', commandTip: '禁止通过道岔区段排列进路', cmdType: CMD.Switch.CMD_SWITCH_BLOCK, operate: OperationEvent.Switch.block.menuButton, disabledCb: (stationControl) => !this.modeMatch },
{ name: '解封道岔', commandTip: '允许通过道岔区段排列进路', cmdType: CMD.Switch.CMD_SWITCH_UNBLOCK, operate: OperationEvent.Switch.unblock.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch },
{ name: '强行消限', commandTip: '强行取消对轨道区段的限速', cmdType: CMD.Switch.CMD_SWITCH_CANCEL_LIMIT_SPEED, operate: OperationEvent.Switch.cancelSpeed.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch }
{ name: '岔区设限', cmdType: CMD.Switch.CMD_SWITCH_SET_LIMIT_SPEED, operate: OperationEvent.Switch.setSpeed.menuButton, securityCommand: true, disabledCb: (stationControl, device) => !this.modeMatch},
{ name: '岔区消限', commandTip: '取消对道岔区段的限速', cmdType: CMD.Switch.CMD_SWITCH_CANCEL_LIMIT_SPEED, operate: OperationEvent.Switch.cancelSpeed.menuButton, securityCommand: true, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '转换道岔', commandTip: '转换道岔', cmdType: CMD.Switch.CMD_SWITCH_TURN, operate: OperationEvent.Switch.turnout.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '强行转岔', commandTip: '强制操作道岔', cmdType: CMD.Switch.CMD_SWITCH_FORCE_TURN, operate: OperationEvent.Switch.turnoutForce.menuButton, securityCommand: true, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '强解道岔', commandTip: '强解道岔', cmdType: CMD.Switch.CMD_SWITCH_FAULT_UNLOCK, operate: OperationEvent.Switch.fault.menuButton, securityCommand: true, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '挤岔恢复', commandTip: '取消挤岔逻辑标志', cmdType: CMD.Switch.CMD_SWITCH_SQUEEZE_RECOVERY, operate: OperationEvent.Switch.squeezeRecovery.menuButton, securityCommand: true, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '单独锁定', commandTip: '锁定道岔,阻止转换', cmdType: CMD.Switch.CMD_SWITCH_SINGLE_LOCK, operate: OperationEvent.Switch.lock.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '取消锁定', commandTip: '取消道岔锁定,道岔可以转换', cmdType: CMD.Switch.CMD_SWITCH_SINGLE_UNLOCK, operate: OperationEvent.Switch.unlock.menuButton, securityCommand: true, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '预复位', commandTip: '预重置道岔区段', cmdType: CMD.Switch.CMD_SWITCH_AXLE_PRE_RESET, operate: OperationEvent.Switch.axlePreReset.menuButton, securityCommand: true, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '封锁道岔', commandTip: '禁止通过道岔区段排列进路', cmdType: CMD.Switch.CMD_SWITCH_BLOCK, operate: OperationEvent.Switch.block.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '解封道岔', commandTip: '允许通过道岔区段排列进路', cmdType: CMD.Switch.CMD_SWITCH_UNBLOCK, operate: OperationEvent.Switch.unblock.menuButton, securityCommand: true, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '强行消限', commandTip: '强行取消对轨道区段的限速', cmdType: CMD.Switch.CMD_SWITCH_CANCEL_LIMIT_SPEED, operate: OperationEvent.Switch.forceCancelSpeed.menuButton, securityCommand: true, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) }
] : [
{ name: '单独锁定', commandTip: '锁定道岔,阻止转换', cmdType: CMD.Switch.CMD_SWITCH_SINGLE_LOCK, operate: OperationEvent.Switch.lock.menuButton, disabledCb: (stationControl) => !this.modeMatch },
{ name: '转换道岔', commandTip: '转换道岔', cmdType: CMD.Switch.CMD_SWITCH_TURN, operate: OperationEvent.Switch.turnout.menuButton, disabledCb: (stationControl) => !this.modeMatch },
{ name: '封锁道岔', commandTip: '禁止通过道岔区段排列进路', cmdType: CMD.Switch.CMD_SWITCH_BLOCK, operate: OperationEvent.Switch.block.menuButton, disabledCb: (stationControl) => !this.modeMatch }
{ name: '单独锁定', commandTip: '锁定道岔,阻止转换', cmdType: CMD.Switch.CMD_SWITCH_SINGLE_LOCK, operate: OperationEvent.Switch.lock.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '转换道岔', commandTip: '转换道岔', cmdType: CMD.Switch.CMD_SWITCH_TURN, operate: OperationEvent.Switch.turnout.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '封锁道岔', commandTip: '禁止通过道岔区段排列进路', cmdType: CMD.Switch.CMD_SWITCH_BLOCK, operate: OperationEvent.Switch.block.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) }
];
this.signalParamList = this.$store.state.training.prdType === '01' ? [
{ name: '关闭信号', commandTip: '设置信号机为关闭状态', cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_SIGNAL, operate: OperationEvent.Signal.signalClose.menuButton, disabledCb: (stationControl) => !this.modeMatch },
{ name: '封锁信号', commandTip: '封锁信号机,禁止开放', cmdType: CMD.Signal.CMD_SIGNAL_BLOCK, operate: OperationEvent.Signal.lock.menuButton, disabledCb: (stationControl) => !this.modeMatch },
{ name: '开放信号', commandTip: '设置信号机为开放状态', cmdType: CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL, operate: OperationEvent.Signal.reopenSignal.menuButton, disabledCb: (stationControl) => !this.modeMatch },
{ name: '解封信号', commandTip: '解封信号机,允许开放', cmdType: CMD.Signal.CMD_SIGNAL_UNBLOCK, operate: OperationEvent.Signal.unlock.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch },
{ name: '关闭信号', commandTip: '设置信号机为关闭状态', cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_SIGNAL, operate: OperationEvent.Signal.signalClose.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '封锁信号', commandTip: '封锁信号机,禁止开放', cmdType: CMD.Signal.CMD_SIGNAL_BLOCK, operate: OperationEvent.Signal.lock.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '开放信号', commandTip: '设置信号机为开放状态', cmdType: CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL, operate: OperationEvent.Signal.reopenSignal.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '解封信号', commandTip: '解封信号机,允许开放', cmdType: CMD.Signal.CMD_SIGNAL_UNBLOCK, operate: OperationEvent.Signal.unlock.menuButton, securityCommand: true, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '自排单开', commandTip: '设置单架信号机处于ATS自动排列进路模式', cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING, operate: OperationEvent.Signal.atsAutoControl.menuButton, disabledCb: (stationControl) => !this.modeMatch },
{ name: '自排单关', commandTip: '取消单架信号机处于ATS自动排列进路模式', cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_AUTO_SETTING, operate: OperationEvent.Signal.humanControl.menuButton, disabledCb: (stationControl) => !this.modeMatch },
{ name: '追踪单开', commandTip: '设置单架信号机处于联锁自动排列进路', cmdType: CMD.Signal.CMD_SIGNAL_SET_CI_AUTO_TRIGGER, operate: OperationEvent.Signal.setAutoTrigger.menuButton, disabledCb: (stationControl) => !this.modeMatch },
{ name: '追踪单关', commandTip: '取消单架信号机处于联锁自动排列进路', cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_CI_AUTO_TRIGGER, operate: OperationEvent.Signal.cancelAutoTrigger.menuButton, disabledCb: (stationControl) => !this.modeMatch },
{ name: '自排单开', commandTip: '设置单架信号机处于ATS自动排列进路模式', cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING, operate: OperationEvent.Signal.atsAutoControl.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '自排单关', commandTip: '取消单架信号机处于ATS自动排列进路模式', cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_AUTO_SETTING, operate: OperationEvent.Signal.humanControl.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '追踪单开', commandTip: '设置单架信号机处于联锁自动排列进路', cmdType: CMD.Signal.CMD_SIGNAL_SET_CI_AUTO_TRIGGER, operate: OperationEvent.Signal.setAutoTrigger.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '追踪单关', commandTip: '取消单架信号机处于联锁自动排列进路', cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_CI_AUTO_TRIGGER, operate: OperationEvent.Signal.cancelAutoTrigger.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '开放引导', commandTip: '开放引导信号', cmdType: CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE, operate: OperationEvent.Signal.guide.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch },
{ name: '车队单开', commandTip: '对单架信号机开启车队模式,主要是信号机不关闭的情况下排列所有进路', cmdType: CMD.Signal.CMD_SIGNAL_SET_CI_AUTO, operate: OperationEvent.Signal.setAutoInterlock.menuButton, disabledCb: (stationControl) => !this.modeMatch },
{ name: '车队单关', commandTip: '对单架信号机关闭车队模式', cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_CI_AUTO, operate: OperationEvent.Signal.cancelAutoInterlock.menuButton, disabledCb: (stationControl) => !this.modeMatch },
{ name: '开放引导', commandTip: '开放引导信号', cmdType: CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE, operate: OperationEvent.Signal.guide.menuButton, securityCommand: true, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '车队单开', commandTip: '对单架信号机开启车队模式,主要是信号机不关闭的情况下排列所有进路', cmdType: CMD.Signal.CMD_SIGNAL_SET_CI_AUTO, operate: OperationEvent.Signal.setAutoInterlock.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '车队单关', commandTip: '对单架信号机关闭车队模式', cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_CI_AUTO, operate: OperationEvent.Signal.cancelAutoInterlock.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '设置保护', commandTip: '设置保护', cmdType: CMD.Signal.CMD_SIGNAL_SET_OVERLAP, operate: OperationEvent.Signal.reopenSignal.menuButton, disabledCb: (stationControl) => !this.modeMatch },
{ name: '未评限区', cmdType: '', operate: OperationEvent.Signal.reopenSignal.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch }
{ name: '设置保护', commandTip: '设置保护', cmdType: CMD.Signal.CMD_SIGNAL_SET_OVERLAP, operate: OperationEvent.Signal.setOverlap.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '未评限区', cmdType: '', operate: OperationEvent.Signal.reopenSignal.menuButton, securityCommand: true, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) }
] : [
{ name: '关闭信号', commandTip: '设置信号机为关闭状态', cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_SIGNAL, operate: OperationEvent.Signal.signalClose.menuButton, disabledCb: (stationControl) => !this.modeMatch },
{ name: '封锁信号', commandTip: '封锁信号机,禁止开放', cmdType: CMD.Signal.CMD_SIGNAL_BLOCK, operate: OperationEvent.Signal.lock.menuButton, disabledCb: (stationControl) => !this.modeMatch },
{ name: '开放信号', commandTip: '设置信号机为开放状态', cmdType: CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL, operate: OperationEvent.Signal.reopenSignal.menuButton, disabledCb: (stationControl) => !this.modeMatch },
{ name: '关闭信号', commandTip: '设置信号机为关闭状态', cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_SIGNAL, operate: OperationEvent.Signal.signalClose.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '封锁信号', commandTip: '封锁信号机,禁止开放', cmdType: CMD.Signal.CMD_SIGNAL_BLOCK, operate: OperationEvent.Signal.lock.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '开放信号', commandTip: '设置信号机为开放状态', cmdType: CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL, operate: OperationEvent.Signal.reopenSignal.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
// { name: '', commandTip: '', cmdType: CMD.Signal.CMD_SIGNAL_UNBLOCK, operate: OperationEvent.Signal.unlock.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch },
{ name: '自排单开', commandTip: '设置单架信号机处于ATS自动排列进路模式', cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING, operate: OperationEvent.Signal.atsAutoControl.menuButton, disabledCb: (stationControl) => !this.modeMatch }, // || stationControl.atsControl
{ name: '自排单关', commandTip: '取消单架信号机处于ATS自动排列进路模式', cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_AUTO_SETTING, operate: OperationEvent.Signal.humanControl.menuButton, disabledCb: (stationControl) => !this.modeMatch }, // || !stationControl.atsControl
{ name: '追踪单开', commandTip: '设置单架信号机处于联锁自动排列进路', cmdType: CMD.Signal.CMD_SIGNAL_SET_CI_AUTO_TRIGGER, operate: OperationEvent.Signal.setAutoTrigger.menuButton, disabledCb: (stationControl) => !this.modeMatch }, // || stationControl.ciControl
{ name: '追踪单关', commandTip: '取消单架信号机处于联锁自动排列进路', cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_CI_AUTO_TRIGGER, operate: OperationEvent.Signal.cancelAutoTrigger.menuButton, disabledCb: (stationControl) => !this.modeMatch }, // || !stationControl.ciControl
{ name: '设置保护', commandTip: '设置保护', cmdType: CMD.Signal.CMD_SIGNAL_SET_OVERLAP, operate: OperationEvent.Signal.setOverlap.menuButton, disabledCb: (stationControl) => !this.modeMatch },
{ name: '自排单开', commandTip: '设置单架信号机处于ATS自动排列进路模式', cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING, operate: OperationEvent.Signal.atsAutoControl.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) }, // || stationControl.atsControl
{ name: '自排单关', commandTip: '取消单架信号机处于ATS自动排列进路模式', cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_AUTO_SETTING, operate: OperationEvent.Signal.humanControl.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) }, // || !stationControl.atsControl
{ name: '追踪单开', commandTip: '设置单架信号机处于联锁自动排列进路', cmdType: CMD.Signal.CMD_SIGNAL_SET_CI_AUTO_TRIGGER, operate: OperationEvent.Signal.setAutoTrigger.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) }, // || stationControl.ciControl
{ name: '追踪单关', commandTip: '取消单架信号机处于联锁自动排列进路', cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_CI_AUTO_TRIGGER, operate: OperationEvent.Signal.cancelAutoTrigger.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) }, // || !stationControl.ciControl
{ name: '设置保护', commandTip: '设置保护', cmdType: CMD.Signal.CMD_SIGNAL_SET_OVERLAP, operate: OperationEvent.Signal.setOverlap.menuButton, disabledCb: (stationControl, device) => !this.modeMatch },
// { name: '', commandTip: '', cmdType: CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE, operate: OperationEvent.Signal.guide.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch },
{ name: '开启车队', commandTip: '对单架信号机开启车队模式,主要是信号机不关闭的情况下排列所有进路', cmdType: CMD.Signal.CMD_SIGNAL_SET_CI_AUTO, operate: OperationEvent.Signal.reopenSignal.menuButton, disabledCb: (stationControl) => !this.modeMatch },
{ name: '取消车队', commandTip: '对单架信号机关闭车队模式', cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_CI_AUTO, operate: OperationEvent.Signal.reopenSignal.menuButton, disabledCb: (stationControl) => !this.modeMatch }
{ name: '开启车队', commandTip: '对单架信号机开启车队模式,主要是信号机不关闭的情况下排列所有进路', cmdType: CMD.Signal.CMD_SIGNAL_SET_CI_AUTO, operate: OperationEvent.Signal.setAutoInterlock.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) },
{ name: '取消车队', commandTip: '对单架信号机关闭车队模式', cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_CI_AUTO, operate: OperationEvent.Signal.cancelAutoInterlock.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || this.getStationControlForbidden(stationControl.code) }
// { name: '', cmdType: '', operate: OperationEvent.Signal.reopenSignal.menuButton, securityCommand: true, disabledCb: (stationControl) => !this.modeMatch }
];
this.stationParamList = this.$store.state.training.prdType === '01' ? [
{ name: '关站信号', commandTip: '封锁车站所有信号机', cmdType: CMD.Station.CMD_STATION_CLOSE_ALLSIGNAL, operate: OperationEvent.Station.closeAllSignal.menuButton, disabledCb: (stationControl) => !this.modeMatch || !['Local'].includes(stationControl.controlMode) }
{ name: '关站信号', commandTip: '封锁车站所有信号机', cmdType: CMD.Station.CMD_STATION_CLOSE_ALLSIGNAL, operate: OperationEvent.Station.closeAllSignal.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || !['Local'].includes(stationControl.controlMode) || this.getStationControlForbidden(stationControl.code) }
] : [
{ name: '关站信号', commandTip: '封锁车站所有信号机', cmdType: CMD.Station.CMD_STATION_CLOSE_ALLSIGNAL, operate: OperationEvent.Station.closeAllSignal.menuButton, disabledCb: (stationControl) => !this.modeMatch || !['Center'].includes(stationControl.controlMode) },
{ name: '关站信号', commandTip: '封锁车站所有信号机', cmdType: CMD.Station.CMD_STATION_CLOSE_ALLSIGNAL, operate: OperationEvent.Station.closeAllSignal.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || !['Center'].includes(stationControl.controlMode) || this.getStationControlForbidden(stationControl.code) },
{ name: '自排全开', commandTip: '自排全开', cmdType: CMD.Station.CMD_STATION_OPEN_AUTO_SETTING, operate: OperationEvent.Station.atsAutoControlALL.menuButton, disabledCb: (stationControl) => !this.modeMatch || !['Center'].includes(stationControl.controlMode), isShow: (ciStation) => !ciStation },
{ name: '自排全关', commandTip: '自排全关', cmdType: CMD.Station.CMD_STATION_CLOSE_AUTO_SETTING, operate: OperationEvent.Station.humanControlALL.menuButton, disabledCb: (stationControl) => !this.modeMatch || !['Center'].includes(stationControl.controlMode), isShow: (ciStation) => !ciStation },
{ name: '追踪全开', commandTip: '追踪全开', cmdType: CMD.Station.CMD_STATION_SET_CI_AUTO_TRIGGER, operate: OperationEvent.Station.setAutoTrigger.menuButton, disabledCb: (stationControl) => !this.modeMatch || !['Center'].includes(stationControl.controlMode), isShow: (ciStation) => !ciStation },
{ name: '追踪全关', commandTip: '追踪全关', cmdType: CMD.Station.CMD_STATION_CANCEL_CI_AUTO_TRIGGER, operate: OperationEvent.Station.cancelAutoTrigger.menuButton, disabledCb: (stationControl) => !this.modeMatch || !['Center'].includes(stationControl.controlMode), isShow: (ciStation) => !ciStation },
{ name: '关区信号', commandTip: '关区信号', cmdType: CMD.Station.CMD_STATION_CIAREA_CLOSE_ALLSIGNAL, operate: OperationEvent.Station.ciAreaCloseAllSignal.menuButton, disabledCb: (stationControl) => !this.modeMatch || !['Center'].includes(stationControl.controlMode), isShow: (ciStation) => !ciStation },
{ name: '交出控制', commandTip: '交出控制权', cmdType: CMD.ControlConvertMenu.CMD_CM_SURRENDER_CONTROL, operate: OperationEvent.StationControl.requestCentralControl.menuButton, disabledCb: (stationControl) => ['Local', 'None'].includes(stationControl.controlMode) },
{ name: '自排全开', commandTip: '自排全开', cmdType: CMD.Station.CMD_STATION_OPEN_AUTO_SETTING, operate: OperationEvent.Station.atsAutoControlALL.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || !['Center'].includes(stationControl.controlMode || this.getStationControlForbidden(stationControl.code)), isShow: (ciStation) => !ciStation },
{ name: '自排全关', commandTip: '自排全关', cmdType: CMD.Station.CMD_STATION_CLOSE_AUTO_SETTING, operate: OperationEvent.Station.humanControlALL.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || !['Center'].includes(stationControl.controlMode) || this.getStationControlForbidden(stationControl.code), isShow: (ciStation) => !ciStation },
{ name: '追踪全开', commandTip: '追踪全开', cmdType: CMD.Station.CMD_STATION_SET_CI_AUTO_TRIGGER, operate: OperationEvent.Station.setAutoTrigger.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || !['Center'].includes(stationControl.controlMode) || this.getStationControlForbidden(stationControl.code), isShow: (ciStation) => !ciStation },
{ name: '追踪全关', commandTip: '追踪全关', cmdType: CMD.Station.CMD_STATION_CANCEL_CI_AUTO_TRIGGER, operate: OperationEvent.Station.cancelAutoTrigger.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || !['Center'].includes(stationControl.controlMode) || this.getStationControlForbidden(stationControl.code), isShow: (ciStation) => !ciStation },
{ name: '关区信号', commandTip: '关区信号', cmdType: CMD.Station.CMD_STATION_CIAREA_CLOSE_ALLSIGNAL, operate: OperationEvent.Station.ciAreaCloseAllSignal.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || !['Center'].includes(stationControl.controlMode) || this.getStationControlForbidden(stationControl.code), isShow: (ciStation) => !ciStation },
{ name: '交出控制', commandTip: '交出控制权', cmdType: CMD.ControlConvertMenu.CMD_CM_SURRENDER_CONTROL, operate: OperationEvent.StationControl.requestCentralControl.menuButton, disabledCb: (stationControl, device) => ['Local', 'None'].includes(stationControl.controlMode) || this.getStationControlForbidden(stationControl.code) },
{ name: '接收控制', commandTip: '接收控制权', cmdType: CMD.ControlConvertMenu.CMD_CM_RECEIVE_CONTROL, operate: OperationEvent.StationControl.requestStationControl.menuButton, disabledCb: (stationControl) => ['Center'].includes(stationControl.controlMode) }
{ name: '接收控制', commandTip: '接收控制权', cmdType: CMD.ControlConvertMenu.CMD_CM_RECEIVE_CONTROL, operate: OperationEvent.StationControl.requestStationControl.menuButton, disabledCb: (stationControl, device) => ['Center'].includes(stationControl.controlMode) || this.getStationControlForbidden(stationControl.code) }
];
this.routeParamList = [
{ name: '排列进路', commandTip: '进路排列', cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE, operate: OperationEvent.Signal.arrangementRoute.menuButton, disabledCb: (stationControl) => !this.modeMatch || !this.route },
{ name: '取消进路', commandTip: '取消排列', cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE, operate: OperationEvent.Signal.cancelTrainRoute.menuButton, disabledCb: (stationControl) => !this.modeMatch || !this.route }
{ name: '排列进路', commandTip: '进路排列', cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE, operate: OperationEvent.Signal.arrangementRoute.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || !this.route || this.getStationControlForbidden(stationControl.code) },
{ name: '取消进路', commandTip: '取消排列', cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE, operate: OperationEvent.Signal.cancelTrainRoute.menuButton, disabledCb: (stationControl, device) => !this.modeMatch || !this.route || this.getStationControlForbidden(stationControl.code) }
];
}
}

View File

@ -1,7 +1,7 @@
<template>
<div>
<pop-menu ref="popMenu" :menu="menu" pop-menu-class="haerbin-01__systerm" />
<set-fault ref="setFault" pop-class="haerbin-01__systerm" />
<set-fault ref="setFault" pop-class="nanjing-02__systerm" />
<load-spare-train ref="loadSpareTrain" pop-class="haerbin-01__systerm" />
</div>
</template>
@ -20,8 +20,8 @@ export default {
name: 'SectionMenu',
components: {
PopMenu,
SetFault,
LoadSpareTrain
SetFault,
LoadSpareTrain
},
props: {
selected: {

View File

@ -1,7 +1,7 @@
<template>
<div>
<pop-menu ref="popMenu" :menu="menu" pop-class="haerbin-01__systerm" />
<set-fault ref="setFault" pop-class="haerbin-01__systerm" />
<set-fault ref="setFault" pop-class="nanjing-02__systerm" />
</div>
</template>

View File

@ -1,7 +1,7 @@
<template>
<div>
<pop-menu ref="popMenu" :menu="menu" pop-menu-class="haerbin-01__systerm" />
<set-fault ref="setFault" pop-class="haerbin-01__systerm" />
<set-fault ref="setFault" pop-class="nanjing-02__systerm" />
</div>
</template>
@ -107,7 +107,7 @@ export default {
}
},
doShow(point) {
if (this.selected.ciStation) {
if (this.selected && this.selected.ciStation) {
this.clickEvent();
this.initMenu();
if (this.$refs && this.$refs.popMenu && this.menu && this.menu.length) {

View File

@ -1,7 +1,7 @@
<template>
<div>
<pop-menu ref="popMenu" :menu="menu" pop-menu-class="haerbin-01__systerm" />
<set-fault ref="setFault" pop-class="haerbin-01__systerm" />
<set-fault ref="setFault" pop-class="nanjing-02__systerm" />
<psl ref="psl" pop-class="xian-01__systerm" />
</div>
</template>

View File

@ -2,7 +2,7 @@
<div>
<pop-menu ref="popMenu" :menu="menu" pop-menu-class="haerbin-01__systerm" />
<switch-hook-lock ref="switchHookLock" pop-class="haerbin-01__systerm" />
<set-fault ref="setFault" pop-class="haerbin-01__systerm" />
<set-fault ref="setFault" pop-class="nanjing-02__systerm" />
</div>
</template>

View File

@ -8,7 +8,7 @@
<!-- <train-switch ref="trainSwitch" /> -->
<!-- <train-edit-number ref="trainEditNumber" /> -->
<speed-limit ref="speedLimit" pop-class="haerbin-01__systerm" />
<set-fault ref="setFault" pop-class="haerbin-01__systerm" />
<set-fault ref="setFault" pop-class="nanjing-02__systerm" />
</div>
</template>

File diff suppressed because it is too large Load Diff

View File

@ -1016,6 +1016,31 @@ export const OperationEvent = {
menuButton: {
operation: '1137',
domId: '_Tips-Switch-SetSpeed-Menu{BOTTOM}'
},
// 65, 55, 45, 35, 25, 0
choose65: {
operation: '1138',
domId: '_Tips-Switch-SetSpeed-Choose65'
},
choose55: {
operation: '1139',
domId: '_Tips-Switch-SetSpeed-Choose55'
},
choose45: {
operation: '113a',
domId: '_Tips-Switch-SetSpeed-Choose45'
},
choose35: {
operation: '113b',
domId: '_Tips-Switch-SetSpeed-Choose35'
},
choose25: {
operation: '113c',
domId: '_Tips-Switch-SetSpeed-Choose25'
},
choose0: {
operation: '113d',
domId: '_Tips-Switch-SetSpeed-Choose0'
}
},
// 取消速度
@ -1126,6 +1151,17 @@ export const OperationEvent = {
operation: '11a1',
domId: '_Tips-Switch-Squeeze-Recovery-MenuButton{TOP}'
}
},
// 取消速度
forceCancelSpeed: {
menu: {
operation: '11b',
domId: '_Tips-Switch-ForceCancelSpeed-Menu{TOP}'
},
menuButton: {
operation: '11b1',
domId: '_Tips-Switch-ForceCancelSpeed-Menu{BOTTOM}'
}
}
},
@ -1698,6 +1734,7 @@ export const OperationEvent = {
domId: '_Tips-Signal-cancelinterlock-Menu{BOTTOM}'
}
},
// 设置保护
setOverlap: {
menuButton: {
operation: '3211',
@ -2120,85 +2157,85 @@ export const OperationEvent = {
turnBackDTO: {
menuButton: {
operation: '417',
domId: '_Tips-Section-turn-Back-DTO-menu-Button'
domId: '_Tips-Section-turn-Back-DTO-menu-Button{BOTTOM}'
}
},
// 取消折返
CancelTurnBack: {
menuButton: {
operation: '418',
domId: '_Tips-Section-Cancel-Turn-Back-menu-Button'
domId: '_Tips-Section-Cancel-Turn-Back-menu-Button{BOTTOM}'
}
},
// 自动折返
AutoTurnBack: {
menuButton: {
operation: '419',
domId: '_Tips-Section-Auto-Turn-Back-menu-Button'
domId: '_Tips-Section-Auto-Turn-Back-menu-Button{BOTTOM}'
}
},
// 换上至下
PutUpTheDown: {
menuButton: {
operation: '420',
domId: '_Tips-Section-Put-Up-The-Down-menu-Button'
domId: '_Tips-Section-Put-Up-The-Down-menu-Button{BOTTOM}'
}
},
// 换下至上
PutDownTheUp: {
menuButton: {
operation: '421',
domId: '_Tips-Section-Put-Down-The-Up-menu-Button'
domId: '_Tips-Section-Put-Down-The-Up-menu-Button{BOTTOM}'
}
},
// 上行终止站停
PutUpStop: {
// 终止站停
PutStop: {
menuButton: {
operation: '422',
domId: '_Tips-Section-Put-Up-Stop-menu-Button'
}
},
// 下行终止站停
PutDownStop: {
menuButton: {
operation: '423',
domId: '_Tips-Section-Put-Down-Stop-menu-Button'
domId: '_Tips-Section-Put-Stop-menu-Button{BOTTOM}'
}
},
// // 下行终止站停
// PutDownStop: {
// menuButton: {
// operation: '423',
// domId: '_Tips-Section-Put-Down-Stop-menu-Button{BOTTOM}'
// }
// },
// 设置折返策略
setBackStrategy: {
// (南京二号线) 01 不折返 02 缺省折返 03 换端 04 自动折返
menuBtnUp01: {
operation: '4241',
domId: '_Tips-Section-set-Back-Strategy-Up-menu-01'
domId: '_Tips-Section-set-Back-Strategy-Up-menu-01{BOTTOM}'
},
menuBtnDown01: {
operation: '4242',
domId: '_Tips-Section-set-Back-Strategy-Down-menu-01'
domId: '_Tips-Section-set-Back-Strategy-Down-menu-01{BOTTOM}'
},
menuBtnUp02: {
operation: '4243',
domId: '_Tips-Section-set-Back-Strategy-Up-menu-02'
domId: '_Tips-Section-set-Back-Strategy-Up-menu-02{BOTTOM}'
},
menuBtnDown02: {
operation: '4244',
domId: '_Tips-Section-set-Back-Strategy-Down-menu-02'
domId: '_Tips-Section-set-Back-Strategy-Down-menu-02{BOTTOM}'
},
menuBtnUp03: {
operation: '4245',
domId: '_Tips-Section-set-Back-Strategy-Up-menu-03'
domId: '_Tips-Section-set-Back-Strategy-Up-menu-03{BOTTOM}'
},
menuBtnDown03: {
operation: '4246',
domId: '_Tips-Section-set-Back-Strategy-Down-menu-03'
domId: '_Tips-Section-set-Back-Strategy-Down-menu-03{BOTTOM}'
},
menuBtnUp04: {
operation: '4247',
domId: '_Tips-Section-set-Back-Strategy-Up-menu-04'
domId: '_Tips-Section-set-Back-Strategy-Up-menu-04{BOTTOM}'
},
menuBtnDown04: {
operation: '4248',
domId: '_Tips-Section-set-Back-Strategy-Down-menu-04'
domId: '_Tips-Section-set-Back-Strategy-Down-menu-04{BOTTOM}'
}
},
// (南京二号线) 站台轨提前发车
@ -2207,6 +2244,17 @@ export const OperationEvent = {
operation: '425',
domId: '_Tips-Section-EarlyDeparture-menuBtn'
}
},
// 取消速度
forceCancelSpeed: {
menu: {
operation: '426',
domId: '_Tips-Section-ForceCancelSpeed-Menu{TOP}'
},
menuButton: {
operation: '4261',
domId: '_Tips-Section-ForceCancelSpeed-Menu{BOTTOM}'
}
}
},
@ -3503,7 +3551,6 @@ class OperationHandler {
if (!this.domIdOperationRel) {
this.domIdOperationRel = this.generateDomIdOperationRel();
}
return this.domIdOperationRel[operation];
}

View File

@ -179,7 +179,7 @@ export default {
(val || []).forEach(item => {
if (!item.confirmed) {
this.tipContent.push(item);
this.handleAlarm(item);
// this.handleAlarm(item);
if (this.tipContent.length > 3) {
this.tipContent.shift();
}

View File

@ -32,70 +32,70 @@ export default {
},
watch: {
'$store.state.training.tipEvent': function (val) {
setTimeout(() => { this.tipInit(); }, 300);
this.$nextTick(function() {
this.tipInit();
});
setTimeout(() => { this.tipInit(); }, 300);
this.$nextTick(function() {
this.tipInit();
});
}
},
methods: {
tipInit() {
this.$store.dispatch('training/isTeachMode').then(() => {
this.tipShow = true;
const offset = this.$store.state.config.canvasOffset;
if (this.$store.state.training.trainingStart) {
const order = this.$store.state.training.order;
const steps = this.$store.state.training.steps;
this.$store.dispatch('training/isTeachMode').then(() => {
this.tipShow = true;
const offset = this.$store.state.config.canvasOffset;
if (this.$store.state.training.trainingStart) {
const order = this.$store.state.training.order;
const steps = this.$store.state.training.steps;
if (order > -1 && order < steps.length) {
const step = steps[order];
const distance = 5;
this.tip = step.tip;
/** 如果mbm或者bar的处理*/
if (step.type === 'mbm' || step.type === 'bar') {
const position = this.getOtherTipPoint(step);
if (position) {
this.position = position;
this.position.y -= distance;
this.popTipShow();
}
} else if (step.code) {
/** 默认是shape类型如果找不到坐标则可以认为是存在code的dailog*/
const position = this.getShapeTipPoint(step);
if (position) {
this.position = {
x: position.x + offset.x,
y: position.y + offset.y - distance
};
this.popTipShow();
} else {
const position = this.getOtherTipPoint(step);
if (position) {
this.position = position;
this.position.y -= distance;
this.popTipShow();
}
}
} else {
/** 不存在code字段的dialog处理*/
const position = this.getOtherTipPoint(step);
if (position) {
this.position = position;
this.position.y -= distance;
this.popTipShow();
} else {
this.popTipHide();
}
}
} else {
this.tipShow = false;
}
} else {
this.tipShow = false;
}
}).catch(() => {
this.tipShow = false;
});
if (order > -1 && order < steps.length) {
const step = steps[order];
const distance = 5;
this.tip = step.tip;
/** 如果mbm或者bar的处理*/
if (step.type === 'mbm' || step.type === 'bar') {
const position = this.getOtherTipPoint(step);
if (position) {
this.position = position;
this.position.y -= distance;
this.popTipShow();
}
} else if (step.code) {
/** 默认是shape类型如果找不到坐标则可以认为是存在code的dailog*/
const position = this.getShapeTipPoint(step);
if (position) {
this.position = {
x: position.x + offset.x,
y: position.y + offset.y - distance
};
this.popTipShow();
} else {
const position = this.getOtherTipPoint(step);
if (position) {
this.position = position;
this.position.y -= distance;
this.popTipShow();
}
}
} else {
/** 不存在code字段的dialog处理*/
const position = this.getOtherTipPoint(step);
if (position) {
this.position = position;
this.position.y -= distance;
this.popTipShow();
} else {
this.popTipHide();
}
}
} else {
this.tipShow = false;
}
} else {
this.tipShow = false;
}
}).catch(() => {
this.tipShow = false;
});
},
popTipShow() {
this.popShow = true;
@ -124,7 +124,6 @@ export default {
code: newStep.code,
subDeviceType: subDeviceType
});
if (position) {
if (position.x < 0) {
position.x = 0;
@ -144,7 +143,7 @@ export default {
//
getOtherTipPoint(step) {
const domId = OperationHandler.getDomIdByOperation(step.operation);
const btnDom = document.getElementById(domId);
const btnDom = document.getElementById(domId);
if (btnDom) {
const offset = getDomOffset(btnDom);
if (offset.x == 0 && offset.y == 0) {