diff --git a/src/jmapNew/shape/graph/Station/index.js b/src/jmapNew/shape/graph/Station/index.js
index a983a60bb..cd309652e 100644
--- a/src/jmapNew/shape/graph/Station/index.js
+++ b/src/jmapNew/shape/graph/Station/index.js
@@ -149,13 +149,13 @@ export default class Station extends Group {
createControlMode() {
const model = this.model;
if (!this.style.Station.StationControl.disPlayNone) {
- const queryList = window.location.search.substring(1).split('&');
- const queryCtc = queryList.find(item => {
- return item.includes('ctc');
- });
- if (queryCtc) {
- this.createCtcControlMode()
- } else if (this.style.Station.StationControl.special) {
+ const queryList = window.location.search.substring(1).split('&');
+ const queryCtc = queryList.find(item => {
+ return item.includes('ctc');
+ });
+ if (queryCtc) {
+ this.createCtcControlMode();
+ } else if (this.style.Station.StationControl.special) {
if (model.visible && model.createControlMode) { // model.createControlMode 控制模式
this.createControlModeAU();
this.createControlModeCC();
@@ -168,129 +168,129 @@ export default class Station extends Group {
this.createCenterControl(); // 中控按钮
this.createSubstationControl(); // 站控按钮
this.createInterconnectedControl(); // 联锁控
- this.createVeryControl();
- this.createSelfDiscipline();
+ this.createVeryControl();
+ this.createSelfDiscipline();
}
}
}
this.setState(model);
}
- createCtcControlMode() {//大铁
- //非常站控
- const model = this.model;
- // 分散自律
- this.selfDisciplineThree = new EThreeLamp({
- _subType: 'veryControl',
- style: this.style,
- zlevel: this.zlevel,
- z: this.z,
- point: {
- x: model.controlModePoint.x - this.style.Station.StationControl.lamp.distance * 2 + this.style.Station.StationControl.selfDisciplineThree.offset.x,
- y: model.controlModePoint.y + this.style.Station.StationControl.selfDisciplineThree.offset.y
- },
- context: this.style.Station.StationControl.selfDisciplineThree.text,
- pop: false
- });
- this.add(this.selfDisciplineThree);
- // 非常站控
- this.veryControl = new ESingleControl({
- _subType: 'veryControl',
- style: this.style,
- zlevel: this.zlevel,
- z: this.z,
- point: {
- x: model.controlModePoint.x - this.style.Station.StationControl.lamp.distance * 2 / 3 + this.style.Station.StationControl.veryControl.offset.x,
- y: model.controlModePoint.y + this.style.Station.StationControl.veryControl.offset.y
- },
- context: this.style.Station.StationControl.veryControl.text,
- pop: false
- });
- this.add(this.veryControl);
- //按图排路
- this.graphRoad = new ESingleControl({
- _subType: 'graphRoad',
- style: this.style,
- zlevel: this.zlevel,
- z: this.z,
- point: {
- x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 2 / 3 + this.style.Station.StationControl.graphRoad.offset.x,
- y: model.controlModePoint.y + this.style.Station.StationControl.graphRoad.offset.y
- },
- context: this.style.Station.StationControl.graphRoad.text,
- pop: false
- });
- this.add(this.graphRoad);
- //计划控制
- this.planControl = new ESingleControl({
- _subType: 'planControl',
- style: this.style,
- zlevel: this.zlevel,
- z: this.z,
- point: {
- x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 2 + this.style.Station.StationControl.planControl.offset.x,
- y: model.controlModePoint.y + this.style.Station.StationControl.planControl.offset.y
- },
- context: this.style.Station.StationControl.planControl.text,
- pop: false
- });
- this.add(this.planControl);
- //中心通信
- this.centerCommunication = new ESingleControl({
- _subType: 'centerCommunication',
- style: this.style,
- zlevel: this.zlevel,
- z: this.z,
- point: {
- x: model.controlModePoint.x - this.style.Station.StationControl.lamp.distance * 2 + this.style.Station.StationControl.centerCommunication.offset.x,
- y: model.controlModePoint.y + this.style.Station.StationControl.centerCommunication.offset.y
- },
- context: this.style.Station.StationControl.centerCommunication.text,
- pop: false
- });
- this.add(this.centerCommunication);
- //自律机通信
- this.selfDisciplineCommunication = new ESingleControl({
- _subType: 'selfDisciplineCommunication',
- style: this.style,
- zlevel: this.zlevel,
- z: this.z,
- point: {
- x: model.controlModePoint.x - this.style.Station.StationControl.lamp.distance * 2 / 3 + this.style.Station.StationControl.selfDisciplineCommunication.offset.x,
- y: model.controlModePoint.y + this.style.Station.StationControl.selfDisciplineCommunication.offset.y
- },
- context: this.style.Station.StationControl.selfDisciplineCommunication.text,
- pop: false
- });
- this.add(this.selfDisciplineCommunication);
- //允许转回
- this.allowedTurnBack = new ESingleControl({
- _subType: 'allowedTurnBack',
- style: this.style,
- zlevel: this.zlevel,
- z: this.z,
- point: {
- x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 2 / 3 + this.style.Station.StationControl.allowedTurnBack.offset.x,
- y: model.controlModePoint.y + this.style.Station.StationControl.allowedTurnBack.offset.y
- },
- context: this.style.Station.StationControl.allowedTurnBack.text,
- pop: false
- });
- this.add(this.allowedTurnBack);
- // 列控
- this.trainControl = new ESingleControl({
- _subType: 'trainControl',
- style: this.style,
- zlevel: this.zlevel,
- z: this.z,
- point: {
- x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 2 + this.style.Station.StationControl.trainControl.offset.x,
- y: model.controlModePoint.y + this.style.Station.StationControl.trainControl.offset.y
- },
- context: this.style.Station.StationControl.trainControl.text,
- pop: false
- });
- this.add(this.trainControl);
- }
+ createCtcControlMode() { // 大铁
+ // 非常站控
+ const model = this.model;
+ // 分散自律
+ this.selfDisciplineThree = new EThreeLamp({
+ _subType: 'veryControl',
+ style: this.style,
+ zlevel: this.zlevel,
+ z: this.z,
+ point: {
+ x: model.controlModePoint.x - this.style.Station.StationControl.lamp.distance * 2 + this.style.Station.StationControl.selfDisciplineThree.offset.x,
+ y: model.controlModePoint.y + this.style.Station.StationControl.selfDisciplineThree.offset.y
+ },
+ context: this.style.Station.StationControl.selfDisciplineThree.text,
+ pop: false
+ });
+ this.add(this.selfDisciplineThree);
+ // 非常站控
+ this.veryControl = new ESingleControl({
+ _subType: 'veryControl',
+ style: this.style,
+ zlevel: this.zlevel,
+ z: this.z,
+ point: {
+ x: model.controlModePoint.x - this.style.Station.StationControl.lamp.distance * 2 / 3 + this.style.Station.StationControl.veryControl.offset.x,
+ y: model.controlModePoint.y + this.style.Station.StationControl.veryControl.offset.y
+ },
+ context: this.style.Station.StationControl.veryControl.text,
+ pop: false
+ });
+ this.add(this.veryControl);
+ // 按图排路
+ this.graphRoad = new ESingleControl({
+ _subType: 'graphRoad',
+ style: this.style,
+ zlevel: this.zlevel,
+ z: this.z,
+ point: {
+ x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 2 / 3 + this.style.Station.StationControl.graphRoad.offset.x,
+ y: model.controlModePoint.y + this.style.Station.StationControl.graphRoad.offset.y
+ },
+ context: this.style.Station.StationControl.graphRoad.text,
+ pop: false
+ });
+ this.add(this.graphRoad);
+ // 计划控制
+ this.planControl = new ESingleControl({
+ _subType: 'planControl',
+ style: this.style,
+ zlevel: this.zlevel,
+ z: this.z,
+ point: {
+ x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 2 + this.style.Station.StationControl.planControl.offset.x,
+ y: model.controlModePoint.y + this.style.Station.StationControl.planControl.offset.y
+ },
+ context: this.style.Station.StationControl.planControl.text,
+ pop: false
+ });
+ this.add(this.planControl);
+ // 中心通信
+ this.centerCommunication = new ESingleControl({
+ _subType: 'centerCommunication',
+ style: this.style,
+ zlevel: this.zlevel,
+ z: this.z,
+ point: {
+ x: model.controlModePoint.x - this.style.Station.StationControl.lamp.distance * 2 + this.style.Station.StationControl.centerCommunication.offset.x,
+ y: model.controlModePoint.y + this.style.Station.StationControl.centerCommunication.offset.y
+ },
+ context: this.style.Station.StationControl.centerCommunication.text,
+ pop: false
+ });
+ this.add(this.centerCommunication);
+ // 自律机通信
+ this.selfDisciplineCommunication = new ESingleControl({
+ _subType: 'selfDisciplineCommunication',
+ style: this.style,
+ zlevel: this.zlevel,
+ z: this.z,
+ point: {
+ x: model.controlModePoint.x - this.style.Station.StationControl.lamp.distance * 2 / 3 + this.style.Station.StationControl.selfDisciplineCommunication.offset.x,
+ y: model.controlModePoint.y + this.style.Station.StationControl.selfDisciplineCommunication.offset.y
+ },
+ context: this.style.Station.StationControl.selfDisciplineCommunication.text,
+ pop: false
+ });
+ this.add(this.selfDisciplineCommunication);
+ // 允许转回
+ this.allowedTurnBack = new ESingleControl({
+ _subType: 'allowedTurnBack',
+ style: this.style,
+ zlevel: this.zlevel,
+ z: this.z,
+ point: {
+ x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 2 / 3 + this.style.Station.StationControl.allowedTurnBack.offset.x,
+ y: model.controlModePoint.y + this.style.Station.StationControl.allowedTurnBack.offset.y
+ },
+ context: this.style.Station.StationControl.allowedTurnBack.text,
+ pop: false
+ });
+ this.add(this.allowedTurnBack);
+ // 列控
+ this.trainControl = new ESingleControl({
+ _subType: 'trainControl',
+ style: this.style,
+ zlevel: this.zlevel,
+ z: this.z,
+ point: {
+ x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 2 + this.style.Station.StationControl.trainControl.offset.x,
+ y: model.controlModePoint.y + this.style.Station.StationControl.trainControl.offset.y
+ },
+ context: this.style.Station.StationControl.trainControl.text,
+ pop: false
+ });
+ this.add(this.trainControl);
+ }
createControlModeAU() { // 西安二
const model = this.model;
this.stationControlAU = new Text({
@@ -428,95 +428,95 @@ export default class Station extends Group {
}
}
}
- createSelfDiscipline() {
+ createSelfDiscipline() {
const model = this.model;
if (this.style.Station.StationControl.selfDiscipline) {
this.selfDiscipline = new ESingleControl({
- _subType: 'self_discipline',
- style: this.style,
- zlevel: this.zlevel,
- z: this.z,
- point: {
- x: model.controlModePoint.x - this.style.Station.StationControl.lamp.distance * 3 / 2 + this.style.Station.StationControl.selfDiscipline.offset.x,
- y: model.controlModePoint.y + this.style.Station.StationControl.selfDiscipline.offset.y
- },
- context: this.style.Station.StationControl.selfDiscipline.text,
- pop: false
- });
+ _subType: 'self_discipline',
+ style: this.style,
+ zlevel: this.zlevel,
+ z: this.z,
+ point: {
+ x: model.controlModePoint.x - this.style.Station.StationControl.lamp.distance * 3 / 2 + this.style.Station.StationControl.selfDiscipline.offset.x,
+ y: model.controlModePoint.y + this.style.Station.StationControl.selfDiscipline.offset.y
+ },
+ context: this.style.Station.StationControl.selfDiscipline.text,
+ pop: false
+ });
this.add(this.selfDiscipline);
- }
+ }
if (this.style.Station.StationControl.selfDisciplineControl) {
this.selfDisciplineControl = new ESingleControl({
- _subType: 'self_discipline_control',
- style: this.style,
- zlevel: this.zlevel,
- z: this.z,
- point: {
- x: model.controlModePoint.x - this.style.Station.StationControl.lamp.distance / 2 + this.style.Station.StationControl.selfDisciplineControl.offset.x,
- y: model.controlModePoint.y + this.style.Station.StationControl.selfDisciplineControl.offset.y
- },
- context: this.style.Station.StationControl.selfDisciplineControl.text,
- pop: false
- });
+ _subType: 'self_discipline_control',
+ style: this.style,
+ zlevel: this.zlevel,
+ z: this.z,
+ point: {
+ x: model.controlModePoint.x - this.style.Station.StationControl.lamp.distance / 2 + this.style.Station.StationControl.selfDisciplineControl.offset.x,
+ y: model.controlModePoint.y + this.style.Station.StationControl.selfDisciplineControl.offset.y
+ },
+ context: this.style.Station.StationControl.selfDisciplineControl.text,
+ pop: false
+ });
this.add(this.selfDisciplineControl);
- }
- }
- createVeryControl() {
+ }
+ }
+ createVeryControl() {
const model = this.model;
if (this.style.Station.StationControl.veryControl) {
this.veryControl = new ESingleControl({
- _subType: 'very',
- style: this.style,
- zlevel: this.zlevel,
- z: this.z,
- point: {
- x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance / 2 + this.style.Station.StationControl.veryControl.offset.x,
- y: model.controlModePoint.y + this.style.Station.StationControl.centerControl.offset.y
- },
- context: this.style.Station.StationControl.veryControl.text,
- pop: false
- });
+ _subType: 'very',
+ style: this.style,
+ zlevel: this.zlevel,
+ z: this.z,
+ point: {
+ x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance / 2 + this.style.Station.StationControl.veryControl.offset.x,
+ y: model.controlModePoint.y + this.style.Station.StationControl.centerControl.offset.y
+ },
+ context: this.style.Station.StationControl.veryControl.text,
+ pop: false
+ });
this.add(this.veryControl);
- }
+ }
if (this.style.Station.StationControl.veryControlButton) {
this.veryControlButton = new Rect({
- zlevel: this.zlevel,
- z: this.z,
- _subType: 'veryControlButton',
- shape: {
- x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 3 / 2 + this.style.Station.StationControl.veryControlButton.offset.x - this.style.Station.StationControl.lamp.radiusR,
- y: model.controlModePoint.y + this.style.Station.StationControl.veryControlButton.offset.y - this.style.Station.StationControl.lamp.radiusR,
- width: this.style.Station.StationControl.lamp.radiusR * 2,
- height: this.style.Station.StationControl.lamp.radiusR * 2
- },
- style: {
- lineWidth: 1,
- stroke: '#fff',
- fill: this.style.Station.StationControl.veryControlButton.defaultColor
- }
- });
+ zlevel: this.zlevel,
+ z: this.z,
+ _subType: 'veryControlButton',
+ shape: {
+ x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 3 / 2 + this.style.Station.StationControl.veryControlButton.offset.x - this.style.Station.StationControl.lamp.radiusR,
+ y: model.controlModePoint.y + this.style.Station.StationControl.veryControlButton.offset.y - this.style.Station.StationControl.lamp.radiusR,
+ width: this.style.Station.StationControl.lamp.radiusR * 2,
+ height: this.style.Station.StationControl.lamp.radiusR * 2
+ },
+ style: {
+ lineWidth: 1,
+ stroke: '#fff',
+ fill: this.style.Station.StationControl.veryControlButton.defaultColor
+ }
+ });
this.add(this.veryControlButton);
this.veryControlButtonText = new Text({
- zlevel: this.zlevel,
- z: this.z,
- _subType: 'veryControlButtonText',
- position: [0, 0],
- style: {
- x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 3 / 2 + this.style.Station.StationControl.veryControlButton.offset.y,
- y: model.controlModePoint.y + this.style.Station.StationControl.veryControlButton.offset.y + this.style.Station.StationControl.lamp.radiusR + this.style.Station.StationControl.text.distance,
- fontWeight: this.style.Station.StationControl.text.fontWeight,
- fontSize: this.style.Station.StationControl.text.fontSize,
- fontFamily: this.style.fontFamily,
- text: this.style.Station.StationControl.veryControlButton.text,
- textFill: this.style.Station.StationControl.text.fontColor,
- textAlign: this.style.Station.StationControl.text.textAlign,
- textVerticalAlign: this.style.Station.StationControl.text.textVerticalAlign
- },
- pop: false,
- });
+ zlevel: this.zlevel,
+ z: this.z,
+ _subType: 'veryControlButtonText',
+ position: [0, 0],
+ style: {
+ x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 3 / 2 + this.style.Station.StationControl.veryControlButton.offset.y,
+ y: model.controlModePoint.y + this.style.Station.StationControl.veryControlButton.offset.y + this.style.Station.StationControl.lamp.radiusR + this.style.Station.StationControl.text.distance,
+ fontWeight: this.style.Station.StationControl.text.fontWeight,
+ fontSize: this.style.Station.StationControl.text.fontSize,
+ fontFamily: this.style.fontFamily,
+ text: this.style.Station.StationControl.veryControlButton.text,
+ textFill: this.style.Station.StationControl.text.fontColor,
+ textAlign: this.style.Station.StationControl.text.textAlign,
+ textVerticalAlign: this.style.Station.StationControl.text.textVerticalAlign
+ },
+ pop: false
+ });
this.add(this.veryControlButtonText);
- }
- }
+ }
+ }
createCenterControl() { // 中控按钮
const model = this.model;
if (this.style.Station.StationControl.centerControl.show) {
@@ -695,7 +695,7 @@ export default class Station extends Group {
});
this.add(this.interconnectedControl);
}
- }
+ }
handleCenter() { // 中控
this.noneBeforeMode = 'Center';
@@ -765,9 +765,9 @@ export default class Station extends Group {
this.centerControl && this.centerControl.setTextColor(this.style.Station.StationControl.lamp.grayColor);
this.interconnectedControl && this.interconnectedControl.setColor(this.style.Station.StationControl.lamp.purpleColor);
this.interconnectedControl && this.interconnectedControl.setTextColor(this.style.Station.StationControl.lamp.purpleColor);
- this.veryControl && this.veryControl.setColor(this.style.Station.StationControl.veryControl.lightColor);
- this.veryControlButton && this.veryControlButton.setStyle({ fill: this.style.Station.StationControl.veryControlButton.lightColor });
- }
+ this.veryControl && this.veryControl.setColor(this.style.Station.StationControl.veryControl.lightColor);
+ this.veryControlButton && this.veryControlButton.setStyle({ fill: this.style.Station.StationControl.veryControlButton.lightColor });
+ }
handleNone() { // 空
if (this.style.Station.stationText.noneModeColor) {
@@ -794,11 +794,11 @@ export default class Station extends Group {
this.troButton && this.troButton.hide();
this.substationArrowsControl && this.substationArrowsControl.setColor(this.style.Station.StationControl.lamp.grayColor);
this.emergencyArrowsControl && this.emergencyArrowsControl.setColor(this.style.Station.StationControl.lamp.grayColor);
- this.stationControlCC && this.stationControlCC.setStyle({text:'EL', textFill:this.style.Station.StationControl.text.emergencyControlColor});
- this.veryControl && this.veryControl.setColor(this.style.Station.StationControl.veryControl.defaultColor);
- this.selfDiscipline && this.selfDiscipline.setColor(this.style.Station.StationControl.selfDiscipline.defaultColor);
- this.selfDisciplineControl && this.selfDisciplineControl.setColor(this.style.Station.StationControl.selfDisciplineControl.defaultColor);
- this.veryControlButton && this.veryControlButton.setStyle({ fill: this.style.Station.StationControl.veryControlButton.defaultColor });
+ this.stationControlCC && this.stationControlCC.setStyle({text:'EL', textFill:this.style.Station.StationControl.text.emergencyControlColor});
+ this.veryControl && this.veryControl.setColor(this.style.Station.StationControl.veryControl.defaultColor);
+ this.selfDiscipline && this.selfDiscipline.setColor(this.style.Station.StationControl.selfDiscipline.defaultColor);
+ this.selfDisciplineControl && this.selfDisciplineControl.setColor(this.style.Station.StationControl.selfDisciplineControl.defaultColor);
+ this.veryControlButton && this.veryControlButton.setStyle({ fill: this.style.Station.StationControl.veryControlButton.defaultColor });
if (this.style.Station.stationText.isSpecialType) {
this.stationText.setColor(this.style.Station.stationText.noneModeColor);
this.stationText.setBackground(this.style.Station.stationText.defaultBackColor);
diff --git a/src/jmapNew/theme/datie_02/menus/index.vue b/src/jmapNew/theme/datie_02/menus/index.vue
index 321a08f9a..645d03ed7 100644
--- a/src/jmapNew/theme/datie_02/menus/index.vue
+++ b/src/jmapNew/theme/datie_02/menus/index.vue
@@ -58,6 +58,7 @@