北京一号线现地 道岔 站台实训操作步骤代码调整

This commit is contained in:
joylink_cuiweidong 2020-04-07 17:19:28 +08:00
parent 0079b698e3
commit 778d74ecd5
4 changed files with 39 additions and 9 deletions

View File

@ -491,8 +491,37 @@ class StationStand extends Group {
return rect;
}
getShapeTipPoint() {
const rect = this.getBoundingRect();
getShapeTipPoint(opts) {
let rect;
if (opts.subDeviceType == 'DetainLamp') {
if (this.model.right) {
opts.subDeviceType = 'UpDetainLamp';
} else {
opts.subDeviceType = 'DownDetainLamp';
}
}
switch (opts.subDeviceType) {
case 'StopJumpLamp': {
rect = this.stopJumpLampButton.getBoundingRect();
break;
}
case 'CancelStopJumpLamp': {
rect = this.cancelStopJumpLampButton.getBoundingRect();
break;
}
case 'UpDetainLamp': {
rect = this.upDetainLampButton.getBoundingRect();
break;
}
case 'DownDetainLamp': {
rect = this.downDetainLampButton.getBoundingRect();
break;
}
default: {
rect = this.getBoundingRect();
break;
}
}
if (rect) {
return {
x: rect.x + rect.width / 2,

View File

@ -879,7 +879,7 @@ export const OperationList = {
productTypes: ['01'], // 产品类型 01 现地 02 行调
stepVOList: [
{ deviceType: '06', orderNum: 1, operateCode: '2993', tip: '鼠标左键点击【功能按钮】'},
{ deviceType: '06', orderNum: 2, operateCode: '2993', tip: '鼠标左键点击【】', codeType:'STAND'}
{ deviceType: 'DetainLamp', orderNum: 2, operateCode: '504', tip: '鼠标左键点击【{12}扣车】', codeType:'STAND'}
]
},
{
@ -907,7 +907,7 @@ export const OperationList = {
productTypes: ['01'], // 产品类型 01 现地 02 行调
stepVOList: [
{ deviceType: '06', orderNum: 1, operateCode: '2994', tip: '鼠标左键点击【总取消】' },
{ deviceType: '06', orderNum: 2, operateCode: '2994', tip: '鼠标左键点击【】', codeType:'STAND' }
{ deviceType: 'DetainLamp', orderNum: 2, operateCode: '505', tip: '鼠标左键点击【{12}扣车】', codeType:'STAND'}
]
},
{
@ -1221,7 +1221,7 @@ export const OperationList = {
productTypes: ['01'],
stepVOList: [
{ deviceType: '02', orderNum: 1, operateCode: '1020', tip: '鼠标左键点击【道岔总反】' },
{ deviceType: '02', orderNum: 2, operateCode: '1020', tip: '鼠标左键点击【道岔】', codeType:'SWITCH' }
{ deviceType: '02', orderNum: 2, operateCode: '102', tip: '鼠标左键点击【道岔】', codeType:'SWITCH' }
]
},
{
@ -1235,7 +1235,7 @@ export const OperationList = {
productTypes: ['01'],
stepVOList: [
{ deviceType: '02', orderNum: 1, operateCode: '1010', tip: '鼠标左键点击【道岔总定】' },
{ deviceType: '02', orderNum: 2, operateCode: '1010', tip: '鼠标左键点击【道岔】', codeType:'SWITCH' }
{ deviceType: '02', orderNum: 2, operateCode: '101', tip: '鼠标左键点击【道岔】', codeType:'SWITCH' }
]
},
{
@ -1249,7 +1249,7 @@ export const OperationList = {
productTypes: ['01'],
stepVOList: [
{ deviceType: '02', orderNum: 1, operateCode: '1030', tip: '鼠标左键点击【道岔单锁】' },
{ deviceType: '02', orderNum: 2, operateCode: '1030', tip: '鼠标左键点击【道岔】', codeType:'SWITCH' }
{ deviceType: '02', orderNum: 2, operateCode: '103', tip: '鼠标左键点击【道岔】', codeType:'SWITCH' }
]
},
{
@ -1263,7 +1263,8 @@ export const OperationList = {
productTypes: ['01'],
stepVOList: [
{ deviceType: '02', orderNum: 1, operateCode: '1040', tip: '鼠标左键点击【道岔解锁】' },
{ deviceType: '02', orderNum: 2, operateCode: '1040', tip: '鼠标左键点击【道岔】', codeType:'SWITCH' }
{ deviceType: '02', orderNum: 2, operateCode: '104', tip: '鼠标左键点击【道岔】', codeType:'SWITCH' },
{ deviceType: '02', orderNum: 3, operateCode: '104', tip: '鼠标左键点击【确定】'}
]
},
{

View File

@ -61,6 +61,7 @@ class ValidateHandler {
const standard = steps[order];
if (operate && standard &&
operate.operation == standard.operation &&
operate.code == standard.code &&
operate.val == standard.val) {
valid = true;
}

View File

@ -41,7 +41,6 @@ export default {
this.$store.dispatch('training/isTeachMode').then(() => {
this.tipShow = true;
const offset = this.$store.state.config.canvasOffset;
console.log(offset, '-------------------');
if (this.$store.state.training.started) {
const order = this.$store.state.training.order;
const steps = this.$store.state.training.steps;