diff --git a/src/jmapNew/config/skinCode/chengdu_03.js b/src/jmapNew/config/skinCode/chengdu_03.js
index 97d86d895..301fbb1e0 100644
--- a/src/jmapNew/config/skinCode/chengdu_03.js
+++ b/src/jmapNew/config/skinCode/chengdu_03.js
@@ -346,14 +346,15 @@ class SkinCode extends defaultStyle {
this[deviceType.StationTurnBack] = { // 站后折返
lamp: {
- fill: '#f1f1f1', // 填充色
- radiusR: 7 // 控制灯大小
+ fill: '#ccc', // 填充色
+ radiusR: 6,
+ otherFill: '#0F0' // 控制灯大小
},
text: {
titleTextShow: false,
fontWeight: 580,
fontSize: 10,
- distance: 10
+ distance: 5
},
rect: {
fill: 'rgba(0,0,0,0)',
diff --git a/src/jmapNew/shape/graph/StationTurnBack/index.js b/src/jmapNew/shape/graph/StationTurnBack/index.js
index 7c3fd90ca..10d053a5b 100644
--- a/src/jmapNew/shape/graph/StationTurnBack/index.js
+++ b/src/jmapNew/shape/graph/StationTurnBack/index.js
@@ -166,6 +166,11 @@ export default class StationTurnBack extends Group {
this.control && this.control.highlightType3(this.style.ReturnModeGroup.highlightColor);
}
}
+ if (this.style.StationTurnBack.lamp.otherFill) {
+ if (name == '自动折返' || name == '固定折返轨1' || name == '固定折返轨1') {
+ this.control && this.control.setStyle({fill: this.style.StationTurnBack.lamp.otherFill});
+ }
+ }
}
setAshShow() {
diff --git a/src/jmapNew/theme/chengdu_03/menus/dialog/stationBackStrategy.vue b/src/jmapNew/theme/chengdu_03/menus/dialog/stationBackStrategy.vue
new file mode 100644
index 000000000..972a0992b
--- /dev/null
+++ b/src/jmapNew/theme/chengdu_03/menus/dialog/stationBackStrategy.vue
@@ -0,0 +1,174 @@
+
+
+ 变通节点
+
+
+
+ 当前变通策略
+
+
+
+ 变通策略选项
+
+
+
+
+
+
+ 确定
+
+
+ 取 消
+
+
+
+
+
+
+
diff --git a/src/jmapNew/theme/chengdu_03/menus/dispatchWorkMenu.vue b/src/jmapNew/theme/chengdu_03/menus/dispatchWorkMenu.vue
index ed43be196..2edc6a1b6 100644
--- a/src/jmapNew/theme/chengdu_03/menus/dispatchWorkMenu.vue
+++ b/src/jmapNew/theme/chengdu_03/menus/dispatchWorkMenu.vue
@@ -8,6 +8,7 @@
+
@@ -24,6 +25,7 @@ import MenuSwitch from './menuSwitch';
import MenuSection from './menuSection';
import MenuStation from './menuStation';
import MenuTrain from './menuTrain';
+import MenuStationTurnBack from './menuStationTurnBack.vue';
import PassiveAlarm from './passiveDialog/alarm';
import PassiveContorl from '@/jmapNew/theme/components/menus/passiveDialog/control';
@@ -40,7 +42,8 @@ export default {
MenuTrain,
PassiveAlarm,
PassiveContorl,
- PassiveTimeout
+ PassiveTimeout,
+ MenuStationTurnBack
},
props: {
selected: {
diff --git a/src/jmapNew/theme/chengdu_03/menus/menuButton.vue b/src/jmapNew/theme/chengdu_03/menus/menuButton.vue
index bc55f7cd9..242884cf3 100644
--- a/src/jmapNew/theme/chengdu_03/menus/menuButton.vue
+++ b/src/jmapNew/theme/chengdu_03/menus/menuButton.vue
@@ -350,7 +350,7 @@ export default {
}
}
// 如果该信号机红灯亮 而且 所属区段左右两侧区段锁闭 执行信号重启操作
- if (signal.aspect == 'R' && isArrangementRoute) { // 信号重启
+ if (signal.lockedRouteCode) { // 信号重启
operate.over = true;
operate.cmdType = CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL;
operate.code = deviceList[0].code;
@@ -396,19 +396,28 @@ export default {
operation: this.$store.state.menuOperation.buttonOperation,
param: {}
};
- if (model._type === 'StationStand' && subType === 'StopJumpLamp') {
+ let controlMode = '';
+ const station = this.$store.getters['map/getDeviceByCode'](model.stationCode);
+ if (station) {
+ controlMode = station.controlMode;
+ // if (station.controlMode == 'Local' || station.controlMode == 'Emergency') {
+ // controlFlag = true;Interlock
+ // }
+ }
+ const list2 = ['Local', 'Emergency'];
+ if (model._type === 'StationStand' && subType === 'StopJumpLamp' && list2.includes(controlMode)) {
operate.cmdType = CMD.Stand.CMD_STAND_SET_JUMP_STOP;
operate.param = {standCode: model.code, trainGroupNumber: ''};
operate.code = model.code;
- } else if (model._type === 'StationStand' && subType === 'CancelStopJumpLamp') {
+ } else if (model._type === 'StationStand' && subType === 'CancelStopJumpLamp' && list2.includes(controlMode)) {
operate.cmdType = CMD.Stand.CMD_STAND_CANCEL_JUMP_STOP;
operate.param = {standCode: model.code, trainGroupNumber: ''};
operate.code = model.code;
- } else if (model._type === 'AutoTurnBack' ) {
+ } else if (model._type === 'AutoTurnBack' && controlMode === 'Interlock') {
operate.cmdType = CMD.Signal.CMD_SIGNAL_SET_AUTO_TURN_BACK;
operate.param = {cycleCode: model.cycleCode};
operate.code = model.code;
- } else if (model._type === 'AutomaticRoute') {
+ } else if (model._type === 'AutomaticRoute' && controlMode === 'Interlock') {
const route = this.routeData[model.automaticRouteCode];
operate.cmdType = CMD.Signal.CMD_SIGNAL_SET_CI_AUTO;
operate.param = {signalCode: route.startSignalCode};
@@ -436,13 +445,16 @@ export default {
operate.code = model.code;
break;
case 'interconnected':
- operate.cmdType = CMD.ControlConvertMenu.CMD_CM_EMERGENCY_STATION_CONTROL;
+ operate.cmdType = CMD.ControlConvertMenu.CMD_CM_INTERLOCK_CONTROL;
delete operate.over;
operate.subType = 'interconnected';
operate.param = {stationCodes: [model.code]};
operate.code = model.code;
break;
}
+ } else {
+ this.$message.info('请检查操作设备或控制权');
+ return;
}
this.$store.dispatch('trainingNew/next', operate).then(({ valid, response }) => {
// 判断是否需要 弹窗密码框
@@ -705,38 +717,37 @@ export default {
this.handelFunctionButton(model, subType);
} else {
const station = this.$store.getters['map/getDeviceByCode'](model.stationCode);
+ const list1 = ['Local', 'Emergency', 'Interlock'];
+ const list2 = ['Local', 'Emergency'];
if (station) {
- if (station.controlMode == 'Local' || station.controlMode == 'Emergency') {
if (buttonOperation && this.commandTypeList.includes(model._type)) {
this.deviceList.push(model);
- if (buttonOperation === this.Signal.arrangementRoute.button.operation) {
+ if (buttonOperation === this.Signal.arrangementRoute.button.operation && list1.includes(station.controlMode)) {
this.arrangementRouteOperation(this.deviceList);
} else if (buttonOperation === this.MixinCommand.totalCancel.button.operation) {
this.handelTotalCancel(model, subType);
- } else if (buttonOperation === this.Signal.humanTrainRoute.button.operation) {
+ } else if (buttonOperation === this.Signal.humanTrainRoute.button.operation && list1.includes(station.controlMode)) {
this.handleTotalHumanSolution(model);
- } else if (buttonOperation === this.Signal.guide.button.operation) {
+ } else if (buttonOperation === this.Signal.guide.button.operation && list1.includes(station.controlMode)) {
this.handleGuideRoute(this.deviceList);
- } else if (buttonOperation === this.Signal.atsAutoControl.button.operation || buttonOperation === this.Signal.humanControl.button.operation) {
+ } else if ((buttonOperation === this.Signal.atsAutoControl.button.operation || buttonOperation === this.Signal.humanControl.button.operation) && list2.includes(station.controlMode)) {
this.handelControlRoute(model);
- } else if (switchOperation.includes(buttonOperation)) {
+ } else if (switchOperation.includes(buttonOperation) && list1.includes(station.controlMode)) {
this.handelSwitchOperate(model);
- } else if (buttonOperation === this.MixinCommand.block.button.operation || buttonOperation === this.MixinCommand.unblock.button.operation) {
+ } else if ((buttonOperation === this.MixinCommand.block.button.operation || buttonOperation === this.MixinCommand.unblock.button.operation) && list1.includes(station.controlMode)) {
this.handelBlockOrUnblock(model);
- } else if (buttonOperation === this.Station.guideLock.button.operation) {
+ } else if (buttonOperation === this.Station.guideLock.button.operation && station.controlMode === 'Interlock') {
this.handelGuideLock(model);
- } else if (buttonOperation === this.Section.fault.button.operation) {
+ } else if (buttonOperation === this.Section.fault.button.operation && list1.includes(station.controlMode)) {
this.handelFaultSection(model);
} else {
this.clearOperate();
+ this.operatemode != OperateMode.FAULT && this.$message.info('请检查操作设备或控制权');
}
} else {
this.clearOperate();
+ this.operatemode != OperateMode.FAULT && this.$message.info('请检查操作设备或控制权');
}
- } else {
- this.clearOperate();
- this.operatemode != OperateMode.FAULT && this.$message.info('请先切换到站控或紧急站控');
- }
}
}
},
diff --git a/src/jmapNew/theme/chengdu_03/menus/menuStationTurnBack.vue b/src/jmapNew/theme/chengdu_03/menus/menuStationTurnBack.vue
new file mode 100644
index 000000000..099530489
--- /dev/null
+++ b/src/jmapNew/theme/chengdu_03/menus/menuStationTurnBack.vue
@@ -0,0 +1,105 @@
+
+
+
+
+
diff --git a/src/views/newMap/newMapdraft/mapoperate/simulationMember/index.vue b/src/views/newMap/newMapdraft/mapoperate/simulationMember/index.vue
index 8e8b9005e..ccd7bd1f7 100644
--- a/src/views/newMap/newMapdraft/mapoperate/simulationMember/index.vue
+++ b/src/views/newMap/newMapdraft/mapoperate/simulationMember/index.vue
@@ -1199,7 +1199,13 @@ export default {
deviceCode: ''
};
memberMap[this.generationForm.systemType].push(memberEnvironmentDispatcher);
-
+ const memberScheduling = {
+ id: this.getMemberId(this.generationForm.systemType),
+ name: '',
+ type: 'SCHEDULING',
+ deviceCode: ''
+ };
+ memberMap[this.generationForm.systemType].push(memberScheduling);
}
this.$message.success('一键生成成功!');
this.resetForm();