Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
e71fe4cea8
@ -320,13 +320,16 @@ export function Jl3dDrivingNew(mixers,updatemmi,sound,translation,routegroup,dri
|
|||||||
}
|
}
|
||||||
|
|
||||||
function otherTrainRun(data){
|
function otherTrainRun(data){
|
||||||
|
if(data.length > trainlisttest.otherTrainmodels.length && trainlisttest.updatStatus == false){
|
||||||
if(data.length != trainlisttest.otherTrainmodels.length && trainlisttest.updatStatus == false){
|
|
||||||
trainlisttest.addDriveTrain(data);
|
trainlisttest.addDriveTrain(data);
|
||||||
|
}else if(data.length < trainlisttest.otherTrainmodels.length){
|
||||||
|
|
||||||
|
let removelength = trainlisttest.otherTrainmodels.length - data.length;
|
||||||
|
trainlisttest.removeDriveTrain(removelength);
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
for(let i=0,leni=data.length;i<leni;i++){
|
for(let i=0,leni=data.length;i<leni;i++){
|
||||||
let updateTrain = trainlisttest.otherTrainList[data[i].code];
|
let updateTrain = trainlisttest.otherTrainmodels[i];
|
||||||
|
|
||||||
if(data[i].code != trainmodel.code){
|
if(data[i].code != trainmodel.code){
|
||||||
|
|
||||||
|
@ -52,12 +52,20 @@ export function TrainListN() {
|
|||||||
}
|
}
|
||||||
scope.otherTrainList = [];
|
scope.otherTrainList = [];
|
||||||
for(let j=0,lenj = data.length;j<lenj;j++){
|
for(let j=0,lenj = data.length;j<lenj;j++){
|
||||||
this.otherTrainmodels[j].code = data[j].code;
|
scope.otherTrainmodels[j].code = data[j].code;
|
||||||
scope.otherTrainList[data[j].code] = this.otherTrainmodels[j];
|
scope.otherTrainList[data[j].code] = this.otherTrainmodels[j];
|
||||||
}
|
}
|
||||||
|
|
||||||
this.updatStatus = false;
|
this.updatStatus = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.removeDriveTrain = function(removeLength){
|
||||||
|
console.log(removeLength);
|
||||||
|
|
||||||
|
scope.group.remove(scope.otherTrainmodels[0]);
|
||||||
|
scope.otherTrainmodels.splice(0,removeLength);
|
||||||
|
}
|
||||||
|
|
||||||
this.drivertrain = function(data,scene,assetloader,mixers,actionss,mode){
|
this.drivertrain = function(data,scene,assetloader,mixers,actionss,mode){
|
||||||
|
|
||||||
return new Promise(function(resolve, reject){
|
return new Promise(function(resolve, reject){
|
||||||
@ -170,6 +178,8 @@ export function TrainListN() {
|
|||||||
resolve("loadedtrain");
|
resolve("loadedtrain");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
this.initpromise = function(data,scene,assetloader,mixers,actionss,mode){
|
this.initpromise = function(data,scene,assetloader,mixers,actionss,mode){
|
||||||
return new Promise(function(resolve, reject){
|
return new Promise(function(resolve, reject){
|
||||||
let selectmesh,ntracks1,ntracks2,tclip,fclip;
|
let selectmesh,ntracks1,ntracks2,tclip,fclip;
|
||||||
|
@ -384,8 +384,11 @@ export default class ELines extends Group {
|
|||||||
this.centerSquare && this.centerSquare.setStyle({fill:this.model.style.Section.cross.centerSquare.defaultColor});
|
this.centerSquare && this.centerSquare.setStyle({fill:this.model.style.Section.cross.centerSquare.defaultColor});
|
||||||
}
|
}
|
||||||
setCrossSpeedUpperLimit(speedLimit) {
|
setCrossSpeedUpperLimit(speedLimit) {
|
||||||
|
if (speedLimit) {
|
||||||
|
debugger;
|
||||||
this.crossSpeedText && this.crossSpeedText.setStyle({text:speedLimit, textFill: 'red' });
|
this.crossSpeedText && this.crossSpeedText.setStyle({text:speedLimit, textFill: 'red' });
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
setZleve(lev) {
|
setZleve(lev) {
|
||||||
this.section && this.section.attr('z', lev);
|
this.section && this.section.attr('z', lev);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="menuBar">
|
<div id="menuBar">
|
||||||
<div class="nav">
|
<div class="nav" style="padding-left:40px">
|
||||||
<template v-for="(item,i) in menu">
|
<template v-for="(item,i) in menu">
|
||||||
<template v-if="noShowingChildren(item.children)">
|
<template v-if="noShowingChildren(item.children)">
|
||||||
<li :id="getDomId(item)" :key="i" class="nav-li" @click="hookClick(item)">
|
<li :id="getDomId(item)" :key="i" class="nav-li" @click="hookClick(item)">
|
||||||
@ -809,17 +809,20 @@ export default {
|
|||||||
popupMenuA(item, index) {
|
popupMenuA(item, index) {
|
||||||
this.$store.dispatch('menuOperation/setPopMenu', { position: null, menu: null });
|
this.$store.dispatch('menuOperation/setPopMenu', { position: null, menu: null });
|
||||||
this.clickEvent();
|
this.clickEvent();
|
||||||
|
this.tempClassA = index;
|
||||||
|
this.tempClassB = -1;
|
||||||
|
|
||||||
const operate = {
|
const operate = {
|
||||||
type: 'bar',
|
type: 'bar',
|
||||||
operation: item.operate.operation
|
operation: item.operate.operation
|
||||||
};
|
};
|
||||||
this.tempClassA = index;
|
this.$nextTick(() => {
|
||||||
this.tempClassB = -1;
|
|
||||||
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
})
|
||||||
},
|
},
|
||||||
selectedClassB(item, index) {
|
selectedClassB(item, index) {
|
||||||
const order = this.order || 0;
|
const order = this.order || 0;
|
||||||
@ -831,16 +834,19 @@ export default {
|
|||||||
},
|
},
|
||||||
popupMenuB(item, index) {
|
popupMenuB(item, index) {
|
||||||
this.$store.dispatch('menuOperation/setPopMenu', { position: null, menu: null });
|
this.$store.dispatch('menuOperation/setPopMenu', { position: null, menu: null });
|
||||||
|
this.tempClassB = index;
|
||||||
|
|
||||||
const operate = {
|
const operate = {
|
||||||
type: 'bar',
|
type: 'bar',
|
||||||
operation: item.operate.operation
|
operation: item.operate.operation
|
||||||
};
|
};
|
||||||
this.tempClassB = index;
|
this.$nextTick(() => {
|
||||||
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
});
|
||||||
},
|
},
|
||||||
// 设置地图定位
|
// 设置地图定位
|
||||||
mapLocation(code) {
|
mapLocation(code) {
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
<el-form-item prop="stationType">
|
<el-form-item prop="stationType">
|
||||||
<el-radio-group :id="domIdChooseControl" v-model="formModel.stationType">
|
<el-radio-group :id="domIdChooseControl" v-model="formModel.stationType">
|
||||||
<el-row v-for="item in Object.keys(controlProps)" :key="item" style="padding-bottom: 10px">
|
<el-row v-for="item in Object.keys(controlProps)" :key="item" style="padding-bottom: 10px">
|
||||||
<el-radio :label="item" :disabled="!controlModeList.includes(item)" @change="handleChooseChangeControl">
|
<el-radio :label="item" :disabled="!controlModeList.includes(item)" @change="handleChooseChangeControl(item)">
|
||||||
{{ controlProps[item] }}</el-radio>
|
{{ controlProps[item] }}</el-radio>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
@ -218,7 +218,8 @@ export default {
|
|||||||
},
|
},
|
||||||
handleChooseChangeControl(val) {
|
handleChooseChangeControl(val) {
|
||||||
const operate = {
|
const operate = {
|
||||||
operation: OperationEvent.Command.order.choose.operation
|
operation: OperationEvent.Command.order.choose.operation,
|
||||||
|
val
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
@ -33,42 +33,42 @@
|
|||||||
import CMD from '@/scripts/cmdPlugin/CommandEnum';
|
import CMD from '@/scripts/cmdPlugin/CommandEnum';
|
||||||
export default {
|
export default {
|
||||||
list: [
|
list: [
|
||||||
// {
|
{
|
||||||
// maxDuration: 15,
|
maxDuration: 15,
|
||||||
// minDuration: 8,
|
minDuration: 8,
|
||||||
// operateType: CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_STATION_CONTROL.value,
|
operateType: CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_STATION_CONTROL.value,
|
||||||
// skinCode: '02',
|
skinCode: '02',
|
||||||
// trainingName: '系统/站遥控({1})',
|
trainingName: '系统/站遥控({1})',
|
||||||
// trainingRemark: '控制模式转换,中控转站控',
|
trainingRemark: '控制模式转换,中控转站控',
|
||||||
// trainingType: 'ControlConvertMenu',
|
trainingType: 'ControlConvertMenu',
|
||||||
// productTypes: ['01'],
|
productTypes: ['01'],
|
||||||
// stepVOList: [
|
stepVOList: [
|
||||||
// { deviceType: 'bar', orderNum: 1, operateCode: '002', tip: '鼠标左键点击顶部菜单栏【系统】' },
|
{ deviceType: 'bar', orderNum: 1, operateCode: '002', tip: '鼠标左键点击顶部菜单栏【系统】' },
|
||||||
// { deviceType: 'bar', orderNum: 2, operateCode: '2999', tip: '鼠标左键点击【站遥控】' },
|
{ deviceType: 'bar', orderNum: 2, operateCode: '2999', tip: '鼠标左键点击【站遥控】' },
|
||||||
// { deviceType: '05', orderNum: 3, operateCode: '0071', tip: '鼠标左键选择所需要转换的集中站【{1}】', val: '{2}' },
|
{ deviceType: '05', orderNum: 3, operateCode: '0071', tip: '鼠标左键选择所需要转换的集中站【{1}】', val: '{2}' },
|
||||||
// { deviceType: '05', orderNum: 4, operateCode: '007', tip: '鼠标左键选择【站控】'},
|
{ deviceType: '05', orderNum: 4, operateCode: '007', tip: '鼠标左键选择【站控】', val: 'Local'},
|
||||||
// { deviceType: '05', orderNum: 5, operateCode: '202', tip: '鼠标左键点击【设置】按钮' },
|
{ deviceType: '05', orderNum: 5, operateCode: '202', tip: '鼠标左键点击【设置】按钮' },
|
||||||
// { deviceType: '05', orderNum: 6, operateCode: '2023', tip: '鼠标左键点击【确认】按钮' },
|
{ deviceType: '05', orderNum: 6, operateCode: '2023', tip: '鼠标左键点击【确认】按钮' }
|
||||||
// ]
|
]
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// maxDuration: 15,
|
maxDuration: 15,
|
||||||
// minDuration: 8,
|
minDuration: 8,
|
||||||
// operateType: CMD.ControlConvertMenu.CMD_CM_EMERGENCY_STATION_CONTROL.value,
|
operateType: CMD.ControlConvertMenu.CMD_CM_EMERGENCY_STATION_CONTROL.value,
|
||||||
// skinCode: '02',
|
skinCode: '02',
|
||||||
// trainingName: '系统/站遥控({1})',
|
trainingName: '系统/站遥控({1})',
|
||||||
// trainingRemark: '控制模式转换,中控转紧急站控',
|
trainingRemark: '控制模式转换,中控转紧急站控',
|
||||||
// trainingType: 'ControlConvertMenu',
|
trainingType: 'ControlConvertMenu',
|
||||||
// productTypes: ['01'],
|
productTypes: ['01'],
|
||||||
// stepVOList: [
|
stepVOList: [
|
||||||
// { deviceType: 'bar', orderNum: 1, operateCode: '002', tip: '鼠标左键点击顶部菜单栏【系统】' },
|
{ deviceType: 'bar', orderNum: 1, operateCode: '002', tip: '鼠标左键点击顶部菜单栏【系统】' },
|
||||||
// { deviceType: 'bar', orderNum: 2, operateCode: '2999', tip: '鼠标左键点击【站遥控】' },
|
{ deviceType: 'bar', orderNum: 2, operateCode: '2999', tip: '鼠标左键点击【站遥控】' },
|
||||||
// { deviceType: '05', orderNum: 3, operateCode: '0071', tip: '鼠标左键选择所需要转换的集中站【{1}】', val: '{2}' },
|
{ deviceType: '05', orderNum: 3, operateCode: '0071', tip: '鼠标左键选择所需要转换的集中站【{1}】', val: '{2}' },
|
||||||
// { deviceType: '05', orderNum: 4, operateCode: '007', tip: '鼠标左键选择【紧急站控】'},
|
{ deviceType: '05', orderNum: 4, operateCode: '007', tip: '鼠标左键选择【紧急站控】', val: 'Emergency'},
|
||||||
// { deviceType: '05', orderNum: 5, operateCode: '201', tip: '鼠标左键点击【设置】按钮' },
|
{ deviceType: '05', orderNum: 5, operateCode: '201', tip: '鼠标左键点击【设置】按钮' },
|
||||||
// { deviceType: '05', orderNum: 6, operateCode: '2013', tip: '鼠标左键点击【确认】按钮' },
|
{ deviceType: '05', orderNum: 6, operateCode: '2013', tip: '鼠标左键点击【确认】按钮' }
|
||||||
// ]
|
]
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
maxDuration: 8,
|
maxDuration: 8,
|
||||||
minDuration: 5,
|
minDuration: 5,
|
||||||
@ -183,6 +183,20 @@ export default {
|
|||||||
{ deviceType: '06', orderNum: 2, operateCode: '509', tip: '鼠标左键点击【确认】按钮' }
|
{ deviceType: '06', orderNum: 2, operateCode: '509', tip: '鼠标左键点击【确认】按钮' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
maxDuration: 15,
|
||||||
|
minDuration: 8,
|
||||||
|
operateType: CMD.Stand.CMD_STAND_FORCE_CANCEL_HOLD_TRAIN.value,
|
||||||
|
skinCode: '02',
|
||||||
|
trainingName: '强制取消扣车({10}-{12}站台)',
|
||||||
|
trainingRemark: '强制取消扣车功能',
|
||||||
|
trainingType: 'Stand',
|
||||||
|
productTypes: ['01'],
|
||||||
|
stepVOList: [
|
||||||
|
{ deviceType: '06', orderNum: 1, operateCode: '506', tip: '鼠标右键菜单选择【强制取消扣车】' },
|
||||||
|
{ deviceType: '06', orderNum: 2, operateCode: '506', tip: '鼠标左键点击【确定】按钮' }
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
maxDuration: 15,
|
maxDuration: 15,
|
||||||
minDuration: 8,
|
minDuration: 8,
|
||||||
@ -263,7 +277,6 @@ export default {
|
|||||||
{ deviceType: '06', orderNum: 2, operateCode: '501', tip: '鼠标左键点击【确定】按钮' }
|
{ deviceType: '06', orderNum: 2, operateCode: '501', tip: '鼠标左键点击【确定】按钮' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
maxDuration: 15,
|
maxDuration: 15,
|
||||||
minDuration: 8,
|
minDuration: 8,
|
||||||
@ -292,6 +305,36 @@ export default {
|
|||||||
{ deviceType: '03', orderNum: 2, operateCode: '406', tip: '鼠标左键点击【确定】按钮' }
|
{ deviceType: '03', orderNum: 2, operateCode: '406', tip: '鼠标左键点击【确定】按钮' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
maxDuration: 15,
|
||||||
|
minDuration: 8,
|
||||||
|
operateType:CMD.Switch.CMD_SWITCH_CUT_OFF.value,
|
||||||
|
skinCode: '08',
|
||||||
|
trainingName: '区段切除({7} 道岔)',
|
||||||
|
trainingRemark: '区段切除功能',
|
||||||
|
trainingType:'Switch',
|
||||||
|
productTypes: ['01'],
|
||||||
|
stepVOList: [
|
||||||
|
{ deviceType: '02', orderNum: 1, operateCode: '111', tip: '鼠标右键菜单选择【区段切除】' },
|
||||||
|
{ deviceType: '02', orderNum: 2, operateCode: '111', tip: '鼠标左键点击【确定】按钮' }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
maxDuration: 15,
|
||||||
|
minDuration: 8,
|
||||||
|
operateType:CMD.Switch.CMD_SWITCH_ACTIVE.value,
|
||||||
|
skinCode: '08',
|
||||||
|
trainingName: '区段激活({7} 道岔)',
|
||||||
|
trainingRemark: '区段激活功能',
|
||||||
|
trainingType:'Switch',
|
||||||
|
productTypes: ['01'],
|
||||||
|
stepVOList: [
|
||||||
|
{ deviceType: '02', orderNum: 1, operateCode: '112', tip: '鼠标右键菜单选择【区段激活】' },
|
||||||
|
{ deviceType: '02', orderNum: 2, operateCode: '112', tip: '鼠标左键点击【确定】按钮' }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
maxDuration: 15,
|
maxDuration: 15,
|
||||||
minDuration: 8,
|
minDuration: 8,
|
||||||
@ -311,20 +354,6 @@ export default {
|
|||||||
{ deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
|
{ deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// maxDuration: 15,
|
|
||||||
// minDuration: 8,
|
|
||||||
// operateType:CMD.Section.CMD_SECTION_SET_LIMIT_SPEED.value,
|
|
||||||
// skinCode: '08',
|
|
||||||
// trainingName: '全线取消限速({8}{9} 区段)',
|
|
||||||
// trainingRemark: '设置全线取消限速',
|
|
||||||
// trainingType: 'Section',
|
|
||||||
// productTypes: ['01', '02'],
|
|
||||||
// stepVOList: [
|
|
||||||
// { deviceType: '03', orderNum: 1, operateCode: '408', tip: '鼠标右键菜单选择【设置全线取消限速】' },
|
|
||||||
// { deviceType: '03', orderNum: 4, operateCode: '4082', tip: '鼠标左键点击【确定】按钮' },
|
|
||||||
// ]
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
maxDuration: 15,
|
maxDuration: 15,
|
||||||
minDuration: 8,
|
minDuration: 8,
|
||||||
@ -513,6 +542,54 @@ export default {
|
|||||||
{ deviceType: '02', orderNum: 2, operateCode: '104', tip: '鼠标左键点击【道岔】', codeType:'SWITCH' }
|
{ deviceType: '02', orderNum: 2, operateCode: '104', tip: '鼠标左键点击【道岔】', codeType:'SWITCH' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
// 全局指令,分属不同设备,暂无法配置
|
||||||
|
// {
|
||||||
|
// maxDuration: 15,
|
||||||
|
// minDuration: 8,
|
||||||
|
// operateType: CMD.LimitControl.CMD_CANCEL_ALL_LIMIT_SPEED.value,
|
||||||
|
// skinCode: '08',
|
||||||
|
// trainingName: '全线取消限速',
|
||||||
|
// trainingRemark: '设置全线取消限速',
|
||||||
|
// trainingType: 'Switch',
|
||||||
|
// productTypes: ['01', '02'],
|
||||||
|
// stepVOList: [
|
||||||
|
// { deviceType: '02', orderNum: 1, operateCode: '114', tip: '鼠标右键菜单选择【全线取消限速】' },
|
||||||
|
// { deviceType: '02', orderNum: 2, operateCode: '1142', tip: '鼠标左键点击【确定】按钮' },
|
||||||
|
// ]
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// maxDuration: 15,
|
||||||
|
// minDuration: 8,
|
||||||
|
// operateType: CMD.LimitControl.CMD_CANCEL_ALL_LIMIT_SPEED.value,
|
||||||
|
// skinCode: '08',
|
||||||
|
// trainingName: '全线取消限速',
|
||||||
|
// trainingRemark: '设置全线取消限速',
|
||||||
|
// trainingType: 'Section',
|
||||||
|
// productTypes: ['01', '02'],
|
||||||
|
// stepVOList: [
|
||||||
|
// { deviceType: '03', orderNum: 1, operateCode: '408', tip: '鼠标右键菜单选择【全线取消限速】' },
|
||||||
|
// { deviceType: '03', orderNum: 2, operateCode: '4082', tip: '鼠标左键点击【确定】按钮' },
|
||||||
|
// ]
|
||||||
|
// },
|
||||||
|
{
|
||||||
|
maxDuration: 15,
|
||||||
|
minDuration: 8,
|
||||||
|
operateType:CMD.Switch.CMD_SWITCH_SET_LIMIT_SPEED.value,
|
||||||
|
skinCode: '08',
|
||||||
|
trainingName: '设置临时限速({7} 道岔)',
|
||||||
|
trainingRemark: '设置临时限速功能(限速值:15)',
|
||||||
|
trainingType: 'Switch',
|
||||||
|
productTypes: ['01'],
|
||||||
|
stepVOList: [
|
||||||
|
{ deviceType: '02', orderNum: 1, operateCode: '113', tip: '鼠标右键菜单选择【设置临时限速】' },
|
||||||
|
{ deviceType: '02', orderNum: 2, operateCode: '1136', tip: '鼠标左键选择【限速值15】', val: '15' },
|
||||||
|
{ deviceType: '02', orderNum: 3, operateCode: '1131', tip: '鼠标左键点击【下达】按钮' },
|
||||||
|
{ deviceType: '02', orderNum: 4, operateCode: '1132', tip: '鼠标左键点击【确认】按钮' },
|
||||||
|
{ deviceType: '02', orderNum: 5, operateCode: '1133', tip: '鼠标左键点击【确认1】按钮' },
|
||||||
|
{ deviceType: '02', orderNum: 6, operateCode: '1134', tip: '鼠标左键点击【确认2】按钮', val: '15' },
|
||||||
|
{ deviceType: '02', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
maxDuration: 15,
|
maxDuration: 15,
|
||||||
@ -671,6 +748,34 @@ export default {
|
|||||||
{ deviceType: '04', orderNum: 2, operateCode: '312', tip: '鼠标左键点击【确定】按钮' }
|
{ deviceType: '04', orderNum: 2, operateCode: '312', tip: '鼠标左键点击【确定】按钮' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
maxDuration: 8,
|
||||||
|
minDuration: 5,
|
||||||
|
operateType:CMD.Signal.CMD_SIGNAL_SET_CI_AUTO.value,
|
||||||
|
skinCode: '08',
|
||||||
|
trainingName: '设置联锁自动进路({3} 进路)',
|
||||||
|
trainingRemark: '设置联锁自动进路',
|
||||||
|
trainingType: 'Signal',
|
||||||
|
productTypes: ['01'],
|
||||||
|
stepVOList: [
|
||||||
|
{ deviceType: '04', orderNum: 1, operateCode: '309', tip: '鼠标右键菜单选择【设置联锁自动进路】' },
|
||||||
|
{ deviceType: '04', orderNum: 2, operateCode: '309', tip: '鼠标左键点击【确定】按钮' }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
maxDuration: 8,
|
||||||
|
minDuration: 5,
|
||||||
|
operateType:CMD.Signal.CMD_SIGNAL_CANCEL_CI_AUTO.value,
|
||||||
|
skinCode: '08',
|
||||||
|
trainingName: '取消联锁自动进路({3} 进路)',
|
||||||
|
trainingRemark: '取消联锁自动进路',
|
||||||
|
trainingType: 'Signal',
|
||||||
|
productTypes: ['01'],
|
||||||
|
stepVOList: [
|
||||||
|
{ deviceType: '04', orderNum: 1, operateCode: '310', tip: '鼠标右键菜单选择【取消联锁自动进路】' },
|
||||||
|
{ deviceType: '04', orderNum: 2, operateCode: '310', tip: '鼠标左键点击【确定】按钮' }
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
maxDuration: 15,
|
maxDuration: 15,
|
||||||
minDuration: 8,
|
minDuration: 8,
|
||||||
|
@ -2553,25 +2553,29 @@ export const OperationEvent = {
|
|||||||
// 取消故障
|
// 取消故障
|
||||||
cancelStoppage: {
|
cancelStoppage: {
|
||||||
menu: {
|
menu: {
|
||||||
operation: '2995'
|
operation: '2995',
|
||||||
|
domId: '_Tips-CancelStoppage-Menu{TOP}'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 道岔故障
|
// 道岔故障
|
||||||
stoppage: {
|
stoppage: {
|
||||||
menu: {
|
menu: {
|
||||||
operation: '2996'
|
operation: '2996',
|
||||||
|
domId: '_Tips-Stoppage-Menu{TOP}'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 设置托管
|
// 设置托管
|
||||||
collocation: {
|
collocation: {
|
||||||
menu: {
|
menu: {
|
||||||
operation: '2997'
|
operation: '2997',
|
||||||
|
domId: '_Tips-Collocation-Menu{TOP}'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 设置连挂
|
// 设置连挂
|
||||||
setLink: {
|
setLink: {
|
||||||
menu: {
|
menu: {
|
||||||
operation: '2999'
|
operation: '2998',
|
||||||
|
domId: '_Tips-SetLink-Menu{TOP}'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/** 控制模式操作 */
|
/** 控制模式操作 */
|
||||||
|
@ -37,9 +37,9 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
tipInit() {
|
tipInit() {
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$store.dispatch('training/isTeachMode').then(() => {
|
this.$store.dispatch('training/isTeachMode').then(() => {
|
||||||
this.tipShow = true;
|
this.tipShow = true;
|
||||||
|
this.$nextTick(() => {
|
||||||
const offset = this.$store.state.config.canvasOffset;
|
const offset = this.$store.state.config.canvasOffset;
|
||||||
if (this.$store.state.training.trainingStart) {
|
if (this.$store.state.training.trainingStart) {
|
||||||
const order = this.$store.state.training.order;
|
const order = this.$store.state.training.order;
|
||||||
@ -90,10 +90,10 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.tipShow = false;
|
this.tipShow = false;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.tipShow = false;
|
this.tipShow = false;
|
||||||
});
|
});
|
||||||
});
|
|
||||||
},
|
},
|
||||||
popTipShow() {
|
popTipShow() {
|
||||||
this.popShow = true;
|
this.popShow = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user