连续扣车调整

This commit is contained in:
fan 2021-10-18 10:53:48 +08:00
parent 12c16cb9d7
commit 4dffdb5aba
3 changed files with 5 additions and 4 deletions

View File

@ -314,7 +314,7 @@ class SkinCode extends defaultStyle {
detainNormal:{ detainNormal:{
z:0, z:0,
position: 1, // 扣车标识在站台上显示方向 position: 1, // 扣车标识在站台上显示方向
special:false, special:true,
text: 'H', // 扣车显示内容 text: 'H', // 扣车显示内容
insideOffset: { x: 15, y: -28 }, // 内站台扣车偏移量 insideOffset: { x: 15, y: -28 }, // 内站台扣车偏移量
outsideOffset: { x:15, y: 22 }, // 外站台扣车偏移量 outsideOffset: { x:15, y: 22 }, // 外站台扣车偏移量

View File

@ -42,7 +42,8 @@ class EDetain extends Group {
this.add(this.detain); this.add(this.detain);
if (deviceParam.special) { if (deviceParam.special) {
this.detain.setStyle({x:model.position.x - detainD * (model.width / 2 + detainOffset.x), 'textPadding':[1, 3], 'textBorderColor':'#fff', 'textBorderWidth':1}); //, 'textPadding':[1, 3], 'textBorderColor':'#fff', 'textBorderWidth':1
this.detain.setStyle({x:model.position.x - detainD * (model.width / 2 + detainOffset.x), y: model.position.y - detainD * 10});
} }
} }
} }

View File

@ -1256,9 +1256,9 @@ export default {
stationAllJumpTrain() { stationAllJumpTrain() {
const list = this.stationStandList.filter(el => el.right == this.selectedObj.right); const list = this.stationStandList.filter(el => el.right == this.selectedObj.right);
const index = list.findIndex(el => el.code == this.selectedObj.code); const index = list.findIndex(el => el.code == this.selectedObj.code);
let lists = list.slice(0, index + 1); let lists = list.slice(index);
if (this.selectedObj.right) { if (this.selectedObj.right) {
lists = list.slice(index, 9999); lists = list.slice(0, index + 1);
} }
const row = {}; const row = {};
row.operation = OperationEvent.StationStand.setBulkBuckleTrain.menuButton.operation; row.operation = OperationEvent.StationStand.setBulkBuckleTrain.menuButton.operation;