From 97e121a65ab27088257aafe7eada9f94ea0da69a Mon Sep 17 00:00:00 2001
From: joylink_fanyuhong <18706759286@163.com>
Date: Thu, 26 Sep 2024 13:42:03 +0800
Subject: [PATCH 1/6] =?UTF-8?q?=E6=88=90=E9=83=BD=E4=B8=89=E5=8F=B7?=
=?UTF-8?q?=E7=BA=BF=E8=BF=9E=E9=94=81=E6=8E=A7=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/jmapNew/theme/chengdu_03/menus/menuButton.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/jmapNew/theme/chengdu_03/menus/menuButton.vue b/src/jmapNew/theme/chengdu_03/menus/menuButton.vue
index bc55f7cd9..a7741da66 100644
--- a/src/jmapNew/theme/chengdu_03/menus/menuButton.vue
+++ b/src/jmapNew/theme/chengdu_03/menus/menuButton.vue
@@ -436,7 +436,7 @@ 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]};
From 2d1da55ffc476197e7bbc53dfe0ae22093d1e2f6 Mon Sep 17 00:00:00 2001
From: joylink_fanyuhong <18706759286@163.com>
Date: Thu, 26 Sep 2024 15:15:44 +0800
Subject: [PATCH 2/6] =?UTF-8?q?=E8=8D=89=E7=A8=BF=E5=9C=B0=E5=9B=BE?=
=?UTF-8?q?=E6=88=90=E5=91=98=E4=B8=80=E9=94=AE=E7=94=9F=E6=88=90=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E6=B4=BE=E7=8F=AD=E5=91=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../newMapdraft/mapoperate/simulationMember/index.vue | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
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();
From 5b1362f94bbbb1549592a539e0fd6b97be4b2aaa Mon Sep 17 00:00:00 2001
From: joylink_fanyuhong <18706759286@163.com>
Date: Thu, 26 Sep 2024 16:10:09 +0800
Subject: [PATCH 3/6] =?UTF-8?q?=E6=88=90=E9=83=BD=E4=B8=89=E5=8F=B7?=
=?UTF-8?q?=E7=BA=BF=E7=8E=B0=E5=9C=B0=E4=BB=BF=E7=9C=9F=E6=93=8D=E4=BD=9C?=
=?UTF-8?q?=E6=8E=A7=E5=88=B6=E6=9D=83=E5=88=A4=E6=96=AD=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../theme/chengdu_03/menus/menuButton.vue | 45 ++++++++++++-------
1 file changed, 28 insertions(+), 17 deletions(-)
diff --git a/src/jmapNew/theme/chengdu_03/menus/menuButton.vue b/src/jmapNew/theme/chengdu_03/menus/menuButton.vue
index a7741da66..731df0fc2 100644
--- a/src/jmapNew/theme/chengdu_03/menus/menuButton.vue
+++ b/src/jmapNew/theme/chengdu_03/menus/menuButton.vue
@@ -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};
@@ -443,6 +452,9 @@ export default {
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('请先切换到站控或紧急站控');
- }
}
}
},
From 529c122278d30528df629de0dafb1c585912a9b8 Mon Sep 17 00:00:00 2001
From: joylink_fanyuhong <18706759286@163.com>
Date: Thu, 26 Sep 2024 17:54:59 +0800
Subject: [PATCH 4/6] =?UTF-8?q?=E6=88=90=E9=83=BD=E4=B8=89=E5=8F=B7?=
=?UTF-8?q?=E7=BA=BF=E6=B7=BB=E5=8A=A0=E7=AB=99=E5=90=8E=E6=8A=98=E8=BF=94?=
=?UTF-8?q?=E6=93=8D=E4=BD=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../menus/dialog/stationBackStrategy.vue | 174 ++++++++++++++++++
.../chengdu_03/menus/dispatchWorkMenu.vue | 5 +-
.../chengdu_03/menus/menuStationTurnBack.vue | 105 +++++++++++
3 files changed, 283 insertions(+), 1 deletion(-)
create mode 100644 src/jmapNew/theme/chengdu_03/menus/dialog/stationBackStrategy.vue
create mode 100644 src/jmapNew/theme/chengdu_03/menus/menuStationTurnBack.vue
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/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 @@
+
+
+
+
+
From 526fd047e70183c4ad706ce496bbeccf360fea34 Mon Sep 17 00:00:00 2001
From: joylink_fanyuhong <18706759286@163.com>
Date: Thu, 26 Sep 2024 18:12:26 +0800
Subject: [PATCH 5/6] =?UTF-8?q?=E6=88=90=E9=83=BD=E4=B8=89=E8=AE=BE?=
=?UTF-8?q?=E5=A4=87=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/jmapNew/config/skinCode/chengdu_03.js | 7 ++++---
src/jmapNew/shape/graph/StationTurnBack/index.js | 5 +++++
2 files changed, 9 insertions(+), 3 deletions(-)
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() {
From 84b9f52c8fb24b88d51755819d60a8a41915a6d5 Mon Sep 17 00:00:00 2001
From: joylink_fanyuhong <18706759286@163.com>
Date: Thu, 26 Sep 2024 19:34:02 +0800
Subject: [PATCH 6/6] =?UTF-8?q?=E4=BF=A1=E5=8F=B7=E9=87=8D=E5=90=AF?=
=?UTF-8?q?=E9=80=BB=E8=BE=91=E5=88=A4=E6=96=AD=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/jmapNew/theme/chengdu_03/menus/menuButton.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/jmapNew/theme/chengdu_03/menus/menuButton.vue b/src/jmapNew/theme/chengdu_03/menus/menuButton.vue
index 731df0fc2..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;