diff --git a/src/api/simulation.js b/src/api/simulation.js index e866e7278..52387fe15 100644 --- a/src/api/simulation.js +++ b/src/api/simulation.js @@ -515,10 +515,10 @@ export function getStandListByRunLineOrTrainCode(group, params) { params }); } -/** 上饶列车控制 */ -export function srTrainControl(group, params) { +/** 沙盘列车控制 */ +export function sandTableTrainControl(group, params) { return request({ - url: `/api/sr/${group}/control`, + url: `/api/sandTable/${group}/control`, method: 'put', params }); diff --git a/src/jmapNew/config/skinCode/fuzhou_01.js b/src/jmapNew/config/skinCode/fuzhou_01.js index 1d80994af..eabf2a4fb 100644 --- a/src/jmapNew/config/skinCode/fuzhou_01.js +++ b/src/jmapNew/config/skinCode/fuzhou_01.js @@ -441,7 +441,8 @@ class SkinCode extends defaultStyle { monolockLocationColor: '#ea282c', // 道岔单锁'定位'颜色 monolockInversionColor: '#ea282c', // 道岔单锁'反位'颜色 block: true, // 封锁名称 - faultFlashing: true // 故障闪烁 + faultFlashing: true, // 故障闪烁 + lossRect: true // 道岔失表矩形 }, sectionAction: { flag: false, // 道岔 关联区段显示 diff --git a/src/jmapNew/shape/graph/Switch/index.js b/src/jmapNew/shape/graph/Switch/index.js index 67955d493..727fec8f4 100644 --- a/src/jmapNew/shape/graph/Switch/index.js +++ b/src/jmapNew/shape/graph/Switch/index.js @@ -474,12 +474,6 @@ export default class Switch extends Group { this.specialCircle && this.specialCircle.animate(); } - this.lossShow && this.lossShow.show(); // 西安线路专有 - this.lossShow && this.lossShow.animateStyle(true) - .when(0, { stroke: this.style.backgroundColor }) - .when(500, { stroke: '#F00' }) - .when(1000, { stroke: this.style.backgroundColor }) - .start(); if (this.style.Switch.jointImg.loseNameFlash) { this.name.getNameText().animateStyle(true) .when(0, { textFill: this.style.backgroundColor }) @@ -509,6 +503,14 @@ export default class Switch extends Group { } } } + if (pos === 'NO' && fault && faultList.includes(fault)) { + this.lossShow && this.lossShow.show(); // 西安线路专有 + this.lossShow && this.lossShow.animateStyle(true) + .when(0, { stroke: this.style.backgroundColor }) + .when(500, { stroke: '#F00' }) + .when(1000, { stroke: this.style.backgroundColor }) + .start(); + } // stopAnimation this.shapeModelB.stopAnimation(false); this.shapeModelC.stopAnimation(false); @@ -834,7 +836,6 @@ export default class Switch extends Group { // N-定位 R-反位 NO-无(失表) EX-挤叉 // model.pos = 'EX'; - if (model.pos == 'N') { this.switchPosition = 'normal'; this.setLocationAction(model); /** 定位*/ diff --git a/src/jmapNew/theme/components/menus/dialog/trainOperation.vue b/src/jmapNew/theme/components/menus/dialog/trainOperation.vue index df4e5fb37..317e3ce5e 100644 --- a/src/jmapNew/theme/components/menus/dialog/trainOperation.vue +++ b/src/jmapNew/theme/components/menus/dialog/trainOperation.vue @@ -25,13 +25,13 @@ - + - + - + @@ -40,7 +40,7 @@