增加西安2区故解流程
This commit is contained in:
parent
8e958875f4
commit
2f2316e353
@ -22,7 +22,7 @@ import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'
|
|||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import CMD from '@/scripts/cmdPlugin/CommandEnum';
|
import CMD from '@/scripts/cmdPlugin/CommandEnum';
|
||||||
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
|
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
|
||||||
// import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
|
import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
|
||||||
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
|
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
|
||||||
import LoadSpareTrain from '@/jmapNew/theme/components/menus/dialog/loadSpareTrain';
|
import LoadSpareTrain from '@/jmapNew/theme/components/menus/dialog/loadSpareTrain';
|
||||||
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
|
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
|
||||||
@ -181,9 +181,9 @@ export default {
|
|||||||
},
|
},
|
||||||
initMenu() {
|
initMenu() {
|
||||||
// 编辑模式菜单列表
|
// 编辑模式菜单列表
|
||||||
// this.menu = MenuContextHandler.covert(this.menuNormal);
|
|
||||||
if (this.selected.type != '04') {
|
if (this.selected.type != '04') {
|
||||||
this.menu = this.menuNormal.Center;
|
// this.menu = this.menuNormal.Center;
|
||||||
|
this.menu = MenuContextHandler.covert2(this.menuNormal);
|
||||||
} else {
|
} else {
|
||||||
this.menu = [];
|
this.menu = [];
|
||||||
}
|
}
|
||||||
|
@ -32,20 +32,6 @@ export default {
|
|||||||
{ deviceType: '06', orderNum: 4, operateCode: '009', tip: '鼠标左键点击【发送请求】按钮' }
|
{ deviceType: '06', orderNum: 4, operateCode: '009', tip: '鼠标左键点击【发送请求】按钮' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// maxDuration: 15,
|
|
||||||
// minDuration: 8,
|
|
||||||
// operateType: 'Stand_Early_Depart',
|
|
||||||
// skinCode: '09',
|
|
||||||
// trainingName: '提前发车({10}-{12}站台)',
|
|
||||||
// trainingRemark: '提前发车功能',
|
|
||||||
// trainingType: 'Stand',
|
|
||||||
// productTypes: ['01', '02'],
|
|
||||||
// stepVOList: [
|
|
||||||
// { deviceType: '06', orderNum: 1, operateCode: '501', tip: '鼠标右键菜单选择【提前发车】' },
|
|
||||||
// { deviceType: '06', orderNum: 2, operateCode: '501', tip: '鼠标左键点击【确定】按钮' }
|
|
||||||
// ]
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
maxDuration: 15,
|
maxDuration: 15,
|
||||||
minDuration: 8,
|
minDuration: 8,
|
||||||
@ -151,11 +137,9 @@ export default {
|
|||||||
trainingType: 'Section',
|
trainingType: 'Section',
|
||||||
productTypes: ['01'],
|
productTypes: ['01'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '03', orderNum: 1, operateCode: '402', tip: '鼠标右键菜单选择【区段故障解锁】' },
|
{ deviceType: '03', orderNum: 1, operateCode: '402', tip: '鼠标右键菜单选择【区段故障解锁】' },
|
||||||
{ deviceType: '03', orderNum: 2, operateCode: '4024', tip: '鼠标左键点击【确定】按钮' },
|
{ deviceType: '03', orderNum: 2, operateCode: '4042', tip: '鼠标左键点击【确定】按钮' },
|
||||||
{ deviceType: '03', orderNum: 3, operateCode: '4028', tip: '鼠标左键选择({8}{9})区段', val: '{19}' },
|
{ deviceType: '03', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【发送请求】按钮' }
|
||||||
{ deviceType: '03', orderNum: 4, operateCode: '4025', tip: '鼠标左键点击【确定】按钮' },
|
|
||||||
{ deviceType: '03', orderNum: 5, operateCode: '4023', tip: '鼠标左键点击【关闭】按钮' }
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
|
@ -60,6 +60,28 @@ class MenuContextHandler {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
covert2(menuList) {
|
||||||
|
const selected = this.getCurrentStateObject();
|
||||||
|
let menu = [];
|
||||||
|
const control = this.getStationControl(selected);
|
||||||
|
if (control && !store.state.scriptRecord.audioPlay) {
|
||||||
|
if (this.getPrdType() != '' && this.getPrdType() != null) {
|
||||||
|
const type = State2SimulationMap[this.getPrdType()];
|
||||||
|
const status = State2ControlMap[control.controlMode]; // 判断当前模式
|
||||||
|
if (type) {
|
||||||
|
menu = [...menuList[type]];
|
||||||
|
}
|
||||||
|
// 特殊处理站台的右键操作( 因为小站台不允许有操作 )
|
||||||
|
if (selected._type == 'StationStand') {
|
||||||
|
if (selected.small) {
|
||||||
|
menu = [];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return menu;
|
||||||
|
}
|
||||||
|
|
||||||
covert(menuList) {
|
covert(menuList) {
|
||||||
const selected = this.getCurrentStateObject();
|
const selected = this.getCurrentStateObject();
|
||||||
let menu = [];
|
let menu = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user