类型
@@ -122,8 +146,12 @@ export default {
radio: '1',
radio1: '1',
radio2: '1',
- earlyDepar: false,
- standCode: ''
+ earlyDepar: false, // 提前发车
+ buckle: true, // 设置扣车
+ AutomaticBuckle: false, // 区间自动扣车
+ standCode: '',
+ autoRadio: '1',
+ autoRadio1: '1'
};
},
computed: {
@@ -149,6 +177,10 @@ export default {
return '取消扣车';
} else if (this.operation == OperationEvent.StationStand.earlyDeparture.menu.operation) {
return '提前发车';
+ } else if (this.operation == OperationEvent.StationStand.setDetainTrainAuto.menu.operation) {
+ return '区间自动扣车';
+ } else if (this.operation == OperationEvent.StationStand.cancelDetainTrainAuto.menu.operation) {
+ return '区间自动扣车';
}
return '';
}
@@ -190,9 +222,13 @@ export default {
},
setDefaultItems() { // 设置默认选项值
this.earlyDepar = false;
+ this.buckle = false;
+ this.AutomaticBuckle = false;
if (this.operation == OperationEvent.StationStand.setDetainTrain.menu.operation) {
+ this.buckle = true;
this.radio1 = '1';
} else if (this.operation == OperationEvent.StationStand.cancelDetainTrain.menu.operation) {
+ this.buckle = true;
this.radio1 = '2';
} else if (this.operation == OperationEvent.StationStand.earlyDeparture.menu.operation) {
this.earlyDepar = true;
@@ -201,6 +237,12 @@ export default {
} else {
this.radio2 = '1';
}
+ } else if (this.operation == OperationEvent.StationStand.setDetainTrainAuto.menu.operation) {
+ this.AutomaticBuckle = true;
+ this.autoRadio1 = '1';
+ } else if (this.operation == OperationEvent.StationStand.cancelDetainTrainAuto.menu.operation) {
+ this.AutomaticBuckle = true;
+ this.autoRadio1 = '2';
}
},
doClose() {
diff --git a/src/jmapNew/theme/ningbo_01/menus/menuSection.vue b/src/jmapNew/theme/ningbo_01/menus/menuSection.vue
index e6fe36198..f838cc4ff 100644
--- a/src/jmapNew/theme/ningbo_01/menus/menuSection.vue
+++ b/src/jmapNew/theme/ningbo_01/menus/menuSection.vue
@@ -51,7 +51,7 @@ export default {
return {
menu: [],
menuNormal: {
- local: [
+ Local: [
{
label: '区段故障解锁',
handler: this.fault,
@@ -78,7 +78,7 @@ export default {
cmdType: CMD.Section.CMD_SECTION_UNBLOCK
}
],
- central: [
+ Center: [
{
label: '区段跟踪激活',
handler: this.active,
@@ -92,7 +92,7 @@ export default {
{
label: '确认计轴有效',
handler: this.alxeEffective,
- cmdType: ''
+ cmdType: CMD.Section.CMD_SECTION_COMFIRMATION_AXLE
},
{
label: '设置临时限速',
diff --git a/src/jmapNew/theme/ningbo_01/menus/menuSignal.vue b/src/jmapNew/theme/ningbo_01/menus/menuSignal.vue
index df78d862a..79e90b307 100644
--- a/src/jmapNew/theme/ningbo_01/menus/menuSignal.vue
+++ b/src/jmapNew/theme/ningbo_01/menus/menuSignal.vue
@@ -20,10 +20,7 @@ import RouteCmdControl from './dialog/routeCmdControl';
import RouteHandControl from './dialog/routeHandControl';
import RouteDetail from './dialog/routeDetail';
import NoticeInfo from './dialog/childDialog/childDialog/noticeInfo';
-// import { mapGetters } from 'vuex';
-// import { OperateMode } from '@/scripts/ConstDic';
-// import { MapDeviceType, OperationEvent, DeviceMenu } from '@/scripts/ConstDic';
-// import { MenuDisabledState, menuConvert, menuFiltration } from './utils/menuItemStatus';
+
import { mouseCancelState } from './utils/menuItemStatus';
import CMD from '@/scripts/cmdPlugin/CommandEnum';
import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
@@ -56,7 +53,7 @@ export default {
return {
menu: [],
menuNormal: {
- local: [
+ Local: [
{
label: '排列进路',
handler: this.arrangementRoute,
@@ -91,14 +88,14 @@ export default {
label: '进路交自动控',
handler: this.atsAutoControl,
cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING
- },
+ },
{
label: '查询进路控制状态',
handler: this.detail,
- cmdType: ''
+ cmdType: CMD.Signal.CMD_SIGNAL_DETAIL
}
],
- central: [
+ Center: [
{
label: '设置进路',
handler: this.arrangementRoute,
@@ -124,10 +121,15 @@ export default {
handler: this.atsAutoControl,
cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING
},
+ {
+ label: '设置/取消通过模式',
+ handler: this.singalPassModel,
+ cmdType: CMD.Signal.CMD_SIGNAL_PASS_MODEL
+ },
{
label: '查询进路控制状态',
handler: this.detail,
- cmdType: ''
+ cmdType: CMD.Signal.CMD_SIGNAL_DETAIL
}
]
},
@@ -157,7 +159,10 @@ export default {
]),
...mapGetters('menuOperation', [
'buttonOperation'
- ])
+ ]),
+ group() {
+ return this.$route.query.group;
+ }
},
watch: {
'$store.state.menuOperation.menuCount': function (val) {
@@ -253,7 +258,7 @@ export default {
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
if (valid) {
- querySignalStatus(this.group, {signalCode: `${this.selected.code}`}).then(resp => {
+ querySignalStatus(this.group, {signalCode: this.selected.code}).then(resp => {
const tempData = resp.data;
this.$refs.routeSelection.doShow(step.operation, this.selected, tempData);
});
@@ -390,6 +395,23 @@ export default {
}
});
},
+ // 设置/取消通过模式
+ singalPassModel() {
+ const operate = {
+ start: true,
+ code: this.selected.code,
+ operation: OperationEvent.Signal.singalPassModel.menu.operation,
+ param: {
+ Signal_Code: `${this.selected.code}`
+ }
+ };
+ this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
+ if (valid) {
+ this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
+ this.$refs.routeControl.doShow(operate, this.selected);
+ }
+ });
+ },
// 查询进路状态
detail() {
const operate = {
diff --git a/src/jmapNew/theme/ningbo_01/menus/menuStation.vue b/src/jmapNew/theme/ningbo_01/menus/menuStation.vue
index 6d542255a..b2c22c81b 100644
--- a/src/jmapNew/theme/ningbo_01/menus/menuStation.vue
+++ b/src/jmapNew/theme/ningbo_01/menus/menuStation.vue
@@ -41,7 +41,7 @@ export default {
return {
menu: [],
menuNormal: {
- local: [
+ Local: [
{
label: '全站设置联锁自动触发',
handler: this.setAutoTrigger,
@@ -67,7 +67,7 @@ export default {
auth: { station: true, center: false }
}
],
- central: [
+ Center: [
{
label: '所有进路自排关',
handler: this.humanControlALL,
diff --git a/src/jmapNew/theme/ningbo_01/menus/menuStationStand.vue b/src/jmapNew/theme/ningbo_01/menus/menuStationStand.vue
index 8e6f2f3e6..b2854f0b7 100644
--- a/src/jmapNew/theme/ningbo_01/menus/menuStationStand.vue
+++ b/src/jmapNew/theme/ningbo_01/menus/menuStationStand.vue
@@ -9,6 +9,7 @@
+
@@ -20,6 +21,7 @@ import StandBackStrategy from './dialog/standBackStrategy';
import StandDetail from './dialog/standDetail';
import StandRunLevel from './dialog/standRunLevel';
import StandStopTime from './dialog/standStopTime';
+import StandBulkBuckleTrain from './dialog/standBulkBuckleTrain';
import StandDetainTrainAll from './dialog/standDetainTrainAll';
import NoticeInfo from './dialog/childDialog/childDialog/noticeInfo';
@@ -36,6 +38,7 @@ export default {
PopMenu,
StandControl,
StandJumpStopControl,
+ StandBulkBuckleTrain,
StandDetail,
StandRunLevel,
NoticeInfo,
@@ -88,6 +91,16 @@ export default {
handler: this.cancelDetainTrain,
cmdType:CMD.Stand.CMD_STAND_CANCEL_HOLD_TRAIN
},
+ {
+ label: '批量扣车',
+ handler: this.setBulkBuckleTrain,
+ cmdType:CMD.Stand.CMD_STAND_SET_HOLD_TRAIN_ALL
+ },
+ {
+ label: '批量取消扣车',
+ handler: this.cancelBulkBuckleTrain,
+ cmdType:CMD.Stand.CMD_STAND_CANCEL_HOLD_TRAIN_ALL
+ },
{
label: '提前发车',
handler: this.earlyDeparture,
@@ -113,18 +126,16 @@ export default {
handler: this.setRunLevel,
cmdType:CMD.Stand.CMD_STAND_SET_RUN_TIME
},
- // {
- // label: '区间列车数量限制',
- // handler: this.setDetainTrainAll,
- // disabledCallback: MenuDisabledState.StationStand.setDetainTrain,
- // auth: { station: true, center: true }
- // },
- // {
- // label: '取消区间列车数量限制',
- // handler: this.cancelDetainTrainAll,
- // disabledCallback: MenuDisabledState.StationStand.cancelDetainTrain,
- // auth: { station: true, center: true }
- // },
+ {
+ label: '区间列车数量限制',
+ handler: this.setDetainTrainAll,
+ cmdType:CMD.Stand.CMD_STAND_SET_HOLD_TRAIN_AUTO
+ },
+ {
+ label: '取消区间列车数量限制',
+ handler: this.cancelDetainTrainAll,
+ cmdType:CMD.Stand.CMD_STAND_CANCEL_HOLD_TRAIN_AUTO
+ },
{
label: '查看站台信息',
handler: this.detail,
@@ -274,7 +285,7 @@ export default {
const step = {
start: true,
code: this.selected.code,
- operation: OperationEvent.StationStand.setDetainTrain.menu.operation,
+ operation: OperationEvent.StationStand.setDetainTrainAuto.menu.operation,
param: {
StationStand_Code: `${this.selected.code}`
}
@@ -292,7 +303,7 @@ export default {
const step = {
start: true,
code: this.selected.code,
- operation: OperationEvent.StationStand.cancelDetainTrain.menu.operation,
+ operation: OperationEvent.StationStand.cancelDetainTrainAuto.menu.operation,
param: {
StationStand_Code: `${this.selected.code}`
}
@@ -304,20 +315,37 @@ export default {
}
});
},
- // 强制取消扣车
- cancelDetainTrainForce() {
+ // 批量扣车
+ setBulkBuckleTrain() {
const step = {
start: true,
- code: `${this.selected.code}`,
- operation: OperationEvent.StationStand.cancelDetainTrainForce.menu.operation,
+ code: this.selected.code,
+ operation: OperationEvent.StationStand.setBulkBuckleTrain.menu.operation,
param: {
- StationStand_Code: `${this.selected.code}`
+ StationStand_Code: this.selected.code
}
};
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
- this.$refs.standControl.doShow(step, this.selected);
+ this.$refs.standBulkBuckleTrain.doShow(step, this.selected);
+ }
+ });
+ },
+ // 批量取消扣车
+ cancelBulkBuckleTrain() {
+ const step = {
+ start: true,
+ code: this.selected.code,
+ operation: OperationEvent.StationStand.cancelBulkBuckleTrain.menu.operation,
+ param: {
+ StationStand_Code: this.selected.code
+ }
+ };
+ this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
+ if (valid) {
+ this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
+ this.$refs.standBulkBuckleTrain.doShow(step, this.selected);
}
});
},
diff --git a/src/jmapNew/theme/ningbo_01/menus/menuSwitch.vue b/src/jmapNew/theme/ningbo_01/menus/menuSwitch.vue
index 5180b1b72..dddc4058a 100644
--- a/src/jmapNew/theme/ningbo_01/menus/menuSwitch.vue
+++ b/src/jmapNew/theme/ningbo_01/menus/menuSwitch.vue
@@ -52,7 +52,7 @@ export default {
return {
menu: [],
menuNormal: {
- local: [
+ Local: [
{
label: '单操到定位',
handler: this.locate,
@@ -84,7 +84,7 @@ export default {
cmdType: CMD.Switch.CMD_SWITCH_UNBLOCK
}
],
- central: [
+ Center: [
{
label: '轨道切除',
handler: this.split,
@@ -98,7 +98,7 @@ export default {
{
label: '确认计轴有效',
handler: this.alxeEffective,
- cmdType: ''
+ cmdType: CMD.Switch.CMD_SWITCH_COMFIRMATION_AXLE
},
{
label: '设置临时限速',
diff --git a/src/scripts/cmdPlugin/CommandEnum.js b/src/scripts/cmdPlugin/CommandEnum.js
index 799bb1191..f7d54a7db 100644
--- a/src/scripts/cmdPlugin/CommandEnum.js
+++ b/src/scripts/cmdPlugin/CommandEnum.js
@@ -27,7 +27,9 @@ export default {
/** 转动 */
CMD_SWITCH_TURN: {value:'Switch_Turn', label: '转动'},
/** 强扳 */
- CMD_SWITCH_FORCE_TURN: {value:'Switch_Force_Turn', label: '强扳'}
+ CMD_SWITCH_FORCE_TURN: {value:'Switch_Force_Turn', label: '强扳'},
+ /** 确认计轴有效 */
+ CMD_SWITCH_COMFIRMATION_AXLE:{value:'Switch_Comfirmation_Axle', label: '确认计轴有效'}
},
// 控制模式操作
@@ -79,7 +81,11 @@ export default {
/** 设置联锁自动触发 */
CMD_SIGNAL_SET_CI_AUTO_TRIGGER: {value:'Signal_Set_CI_Auto_Trigger', label: '设置联锁自动触发'},
/** 取消联锁自动触发 */
- CMD_SIGNAL_CANCEL_CI_AUTO_TRIGGER: {value:'Signal_Cancel_CI_Auto_Trigger', label: '取消联锁自动触发'}
+ CMD_SIGNAL_CANCEL_CI_AUTO_TRIGGER: {value:'Signal_Cancel_CI_Auto_Trigger', label: '取消联锁自动触发'},
+ /** 设置/取消通过模式 */
+ CMD_SIGNAL_PASS_MODEL: {value:'Signal_Pass_Model', label: '设置/取消通过模式'},
+ /** 设置/取消通过模式 */
+ CMD_SIGNAL_DETAIL: {value:'Signal_Detail', label: '查询进路状态'}
},
// 物理区段操作
@@ -103,7 +109,9 @@ export default {
/** 故障解锁 */
CMD_SECTION_FAULT_UNLOCK: {value:'Section_Fault_Unlock', label: '故障解锁'},
/** 取消临时限速 */
- CMD_SECTION_CANCEL_LIMIT_SPEED:{value:'Section_Cancel_Limit_Speed', label: '取消临时限速'}
+ CMD_SECTION_CANCEL_LIMIT_SPEED:{value:'Section_Cancel_Limit_Speed', label: '取消临时限速'},
+ /** 确认计轴有效 */
+ CMD_SECTION_COMFIRMATION_AXLE:{value:'Section_Comfirmation_Axle', label: '确认计轴有效'}
},
// 站台
@@ -120,8 +128,16 @@ export default {
CMD_STAND_SET_HOLD_TRAIN: {value:'Stand_Set_Hold_Train', label: '设置扣车'},
/** 取消扣车 */
CMD_STAND_CANCEL_HOLD_TRAIN: {value:'Stand_Cancel_Hold_Train', label: '取消扣车'},
+ /** 批量扣车 */
+ CMD_STAND_SET_HOLD_TRAIN_ALL: {value:'Stand_Set_Hold_Train_All', label: '批量扣车'},
+ /** 批量取消扣车 */
+ CMD_STAND_CANCEL_HOLD_TRAIN_ALL: {value:'Stand_Cancel_Hold_Train_All', label: '批量取消扣车'},
/** 强制取消扣车 */
CMD_STAND_FORCE_CANCEL_HOLD_TRAIN: {value:'Stand_Force_Cancel_Hold_Train', label: '强制取消扣车'},
+ /** 区间列车数量限制 */
+ CMD_STAND_SET_HOLD_TRAIN_AUTO: {value:'Stand_Set_Hold_Train_Auto', label: '区间列车数量限制'},
+ /** 取消区间列车数量限制 */
+ CMD_STAND_CANCEL_HOLD_TRAIN_AUTO: {value:'Stand_Cancel_Hold_Train_Auto', label: '取消区间列车数量限制'},
/** 全线取消扣车 */
CMD_STAND_WHOLE_LINE_CANCEL_HOLD_TRAIN: {value:'Stand_Whole_Line_Cancel_Hold_Train', label: '全线取消扣车'},
/** 提前发车 */
diff --git a/src/scripts/cmdPlugin/MenuContextHandler.js b/src/scripts/cmdPlugin/MenuContextHandler.js
index a33bbf495..fc93b9eec 100644
--- a/src/scripts/cmdPlugin/MenuContextHandler.js
+++ b/src/scripts/cmdPlugin/MenuContextHandler.js
@@ -20,7 +20,7 @@ class MenuContextHandler {
} else if (selected._type == 'Station') {
control = store.getters['map/getDeviceStationCodeByStationCode'](selected.code);
} else {
- control = store.getters['map/getDeviceStationCodeByStationCode'](selected.deviceStationCode);
+ control = store.getters['map/getDeviceStationCodeByStationCode'](selected.stationCode);
}
return control;
}
diff --git a/src/scripts/cmdPlugin/OperationHandler.js b/src/scripts/cmdPlugin/OperationHandler.js
index c89ae2a41..66f62a514 100644
--- a/src/scripts/cmdPlugin/OperationHandler.js
+++ b/src/scripts/cmdPlugin/OperationHandler.js
@@ -880,6 +880,13 @@ export const OperationEvent = {
operation: '316',
domId: '_Tips-Signal-Detail-Menu'
}
+ },
+ // 查询进路状态
+ singalPassModel: {
+ menu: {
+ operation: '317',
+ domId: '_Tips-Signal-SingalPassModel-Menu'
+ }
}
},
@@ -1461,6 +1468,34 @@ export const OperationEvent = {
operation: '5142',
domId: '_Tips-Stand-clearDownCar-confirm'
}
+ },
+ // 批量扣车
+ setBulkBuckleTrain: {
+ menu: {
+ operation: '515',
+ domId: '_Tips-Stand-setBulkBuckleTrain-Menu'
+ }
+ },
+ // 批量取消扣车
+ cancelBulkBuckleTrain: {
+ menu: {
+ operation: '516',
+ domId: '_Tips-Stand-cancelBulkBuckleTrain-Menu'
+ }
+ },
+ // 区间列车数量限制
+ setDetainTrainAuto: {
+ menu: {
+ operation: '515',
+ domId: '_Tips-Stand-setDetainTrainAuto-Menu'
+ }
+ },
+ // 取消区间列车数量限制
+ cancelDetainTrainAuto: {
+ menu: {
+ operation: '516',
+ domId: '_Tips-Stand-cancelDetainTrainAuto-Menu'
+ }
}
},
diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js
index 1e9afea51..79d1c6346 100644
--- a/src/utils/baseUrl.js
+++ b/src/utils/baseUrl.js
@@ -3,11 +3,11 @@ export function getBaseUrl() {
let BASE_API;
if (process.env.NODE_ENV === 'development') {
// BASE_API = 'https://joylink.club/jlcloud';
- BASE_API = 'https://test.joylink.club/jlcloud';
+ // BASE_API = 'https://test.joylink.club/jlcloud';
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
// BASE_API = 'http://192.168.3.6:9000'; // 旭强
// BASE_API = 'http://192.168.3.41:9000'; // 张赛
- // BASE_API = 'http://192.168.3.82:9000'; // 杜康
+ BASE_API = 'http://192.168.3.82:9000'; // 杜康
} else {
BASE_API = process.env.VUE_APP_BASE_API;
}
diff --git a/src/views/display/menuDemon.vue b/src/views/display/menuDemon.vue
index 71731ad60..d275e359d 100644
--- a/src/views/display/menuDemon.vue
+++ b/src/views/display/menuDemon.vue
@@ -35,9 +35,9 @@ import { getGoodsTryUse } from '@/api/management/goods';
import { runDiagramStart, runDiagramOver, runDiagramGetTime } from '@/api/simulation';
import { PermissionType } from '@/scripts/ConstDic';
import { getCountTime } from '@/utils/index';
-import { runDiagramIsStart, quitScript } from '@/api/simulation';
+import { runDiagramIsStart, runDiagramQuit, quitScript } from '@/api/simulation';
import { timeFormat } from '@/utils/date';
-import { getToken } from '@/utils/auth';
+// import { getToken } from '@/utils/auth';
export default {
name: 'MenuDemon',
@@ -189,7 +189,8 @@ export default {
this.$messageBox(this.$t('display.demon.exitTaskFail'));
});
},
- back() {
+ async back() {
+ await runDiagramQuit(this.group);
this.$store.dispatch('training/over').then(() => {
history.go(-1);
Notification.closeAll();
diff --git a/src/views/newMap/displayNew/menuDemon.vue b/src/views/newMap/displayNew/menuDemon.vue
index 6a3074fff..232c0ff8e 100644
--- a/src/views/newMap/displayNew/menuDemon.vue
+++ b/src/views/newMap/displayNew/menuDemon.vue
@@ -35,9 +35,9 @@ import { getGoodsTryUse } from '@/api/management/goods';
import { runDiagramStart, runDiagramOver, runDiagramGetTime } from '@/api/simulation';
import { PermissionType } from '@/scripts/ConstDic';
import { getCountTime } from '@/utils/index';
-import { runDiagramIsStart, quitScript } from '@/api/simulation';
-import { timeFormat } from '@/utils/date';
-import { getToken } from '@/utils/auth';
+import { runDiagramIsStart, runDiagramQuit, quitScript } from '@/api/simulation';
+// import { timeFormat } from '@/utils/date';
+// import { getToken } from '@/utils/auth';
export default {
name: 'MenuDemon',
@@ -189,7 +189,8 @@ export default {
this.$messageBox(this.$t('display.demon.exitTaskFail'));
});
},
- back() {
+ async back() {
+ await runDiagramQuit(this.group);
this.$store.dispatch('training/over').then(() => {
history.go(-1);
Notification.closeAll();
@@ -210,10 +211,10 @@ export default {
}
},
async loadSystemTime() {
- // const rest = await runDiagramGetTime(this.group);
- // if (rest && rest.code == 200) {
- // this.$store.dispatch('training/setInitTime', +new Date(`${new Date().getFullYear()} ${timeFormat(rest.data)}`));
- // }
+ const rest = await runDiagramGetTime(this.group);
+ if (rest && rest.code == 200) {
+ this.$store.dispatch('training/setInitTime', +new Date(`${new Date().getFullYear()} ${timeFormat(rest.data)}`));
+ }
},
change3dname() {
if (this.$route.query.prdType == '04') {