diff --git a/src/App.vue b/src/App.vue
index 5d80eafd4..37e4c4697 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -82,7 +82,7 @@ export default {
},
subscribeMessage(res) {
if (this.$refs.deomonTopic && !window.location.href.includes('trainroom')) {
- if (getSessionStorage('project') != 'refereeJsxt') {
+ if (getSessionStorage('project') != 'refereeJsxt' && getSessionStorage('project') != 'jsxt') {
this.$refs.deomonTopic.doShow(res);
}
this.$store.dispatch('socket/setRoomInvite');
diff --git a/src/jmapNew/theme/beijing_01/menus/menuSection.vue b/src/jmapNew/theme/beijing_01/menus/menuSection.vue
index 8e00fb8d6..9e2f25d9b 100644
--- a/src/jmapNew/theme/beijing_01/menus/menuSection.vue
+++ b/src/jmapNew/theme/beijing_01/menus/menuSection.vue
@@ -116,8 +116,7 @@ export default {
},
mounted() {
const isDev = process.env.NODE_ENV === 'development';
- const isTest = process.env.NODE_ENV === 'test';
- if (isDev || isTest) {
+ if (isDev) {
this.menuNormal.Center.push({
label: '新建计划车',
handler: this.addPlanTrain,
diff --git a/src/jmapNew/theme/chengdu_01/menus/menuSection.vue b/src/jmapNew/theme/chengdu_01/menus/menuSection.vue
index 3d3a14e09..334a91b4b 100644
--- a/src/jmapNew/theme/chengdu_01/menus/menuSection.vue
+++ b/src/jmapNew/theme/chengdu_01/menus/menuSection.vue
@@ -102,8 +102,7 @@ export default {
},
mounted() {
const isDev = process.env.NODE_ENV === 'development';
- const isTest = process.env.NODE_ENV === 'test';
- if (isDev || isTest) {
+ if (isDev) {
this.menuNormal.Center.push( {
label: '新建计划列车',
handler: this.createPlanTrain,
diff --git a/src/jmapNew/theme/chengdu_03/menus/menuSection.vue b/src/jmapNew/theme/chengdu_03/menus/menuSection.vue
index a3887cd9f..eb68564cf 100644
--- a/src/jmapNew/theme/chengdu_03/menus/menuSection.vue
+++ b/src/jmapNew/theme/chengdu_03/menus/menuSection.vue
@@ -106,8 +106,7 @@ export default {
},
mounted() {
const isDev = process.env.NODE_ENV === 'development';
- const isTest = process.env.NODE_ENV === 'test';
- if (isDev || isTest) {
+ if (isDev) {
this.menuNormal.Center.push( {
label: '新建计划列车',
handler: this.createPlanTrain,
diff --git a/src/jmapNew/theme/foshan_01/menus/menuSection.vue b/src/jmapNew/theme/foshan_01/menus/menuSection.vue
index 7dc6a3c01..59173aa4e 100644
--- a/src/jmapNew/theme/foshan_01/menus/menuSection.vue
+++ b/src/jmapNew/theme/foshan_01/menus/menuSection.vue
@@ -117,8 +117,7 @@ export default {
},
mounted() {
const isDev = process.env.NODE_ENV === 'development';
- const isTest = process.env.NODE_ENV === 'test';
- if (isDev || isTest) {
+ if (isDev) {
this.menuNormal.Center.push({
label: '新建计划车',
handler: this.addPlanTrain,
diff --git a/src/jmapNew/theme/fuzhou_01/menus/menuSection.vue b/src/jmapNew/theme/fuzhou_01/menus/menuSection.vue
index 8a1f9400d..f890aa92c 100644
--- a/src/jmapNew/theme/fuzhou_01/menus/menuSection.vue
+++ b/src/jmapNew/theme/fuzhou_01/menus/menuSection.vue
@@ -164,8 +164,7 @@ export default {
},
mounted() {
const isDev = process.env.NODE_ENV === 'development';
- const isTest = process.env.NODE_ENV === 'test';
- if (isDev || isTest) {
+ if (isDev) {
this.menuNormal.Center.push({
label: '新建计划车',
handler: this.addPlanTrain,
diff --git a/src/jmapNew/theme/haerbin_01/menus/menuSection.vue b/src/jmapNew/theme/haerbin_01/menus/menuSection.vue
index 3b8ac85f5..54f00512c 100644
--- a/src/jmapNew/theme/haerbin_01/menus/menuSection.vue
+++ b/src/jmapNew/theme/haerbin_01/menus/menuSection.vue
@@ -111,8 +111,7 @@ export default {
},
mounted() {
const isDev = process.env.NODE_ENV === 'development';
- const isTest = process.env.NODE_ENV === 'test';
- if (isDev || isTest) {
+ if (isDev) {
this.menuNormal.Center.push({
label: '新建计划车',
handler: this.createPlanTrain,
diff --git a/src/jmapNew/theme/ningbo_01/menus/menuSection.vue b/src/jmapNew/theme/ningbo_01/menus/menuSection.vue
index db836d290..890c0ce08 100644
--- a/src/jmapNew/theme/ningbo_01/menus/menuSection.vue
+++ b/src/jmapNew/theme/ningbo_01/menus/menuSection.vue
@@ -135,8 +135,7 @@ export default {
},
mounted() {
const isDev = process.env.NODE_ENV === 'development';
- const isTest = process.env.NODE_ENV === 'test';
- if (isDev || isTest) {
+ if (isDev) {
this.menuNormal.Center.push({
label: '新建计划车',
handler: this.addPlanTrain,
diff --git a/src/jmapNew/theme/xian_01/menus/dialog/trainDetail.vue b/src/jmapNew/theme/xian_01/menus/dialog/trainDetail.vue
new file mode 100644
index 000000000..32e9ad06e
--- /dev/null
+++ b/src/jmapNew/theme/xian_01/menus/dialog/trainDetail.vue
@@ -0,0 +1,180 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('global.confirm') }}
+
+
+ {{ $t('global.cancel') }}
+
+
+
+
+
diff --git a/src/jmapNew/theme/xian_01/menus/menuSection.vue b/src/jmapNew/theme/xian_01/menus/menuSection.vue
index 1c6d56ccd..1589964cd 100644
--- a/src/jmapNew/theme/xian_01/menus/menuSection.vue
+++ b/src/jmapNew/theme/xian_01/menus/menuSection.vue
@@ -148,8 +148,7 @@ export default {
},
mounted() {
const isDev = process.env.NODE_ENV === 'development';
- const isTest = process.env.NODE_ENV === 'test';
- if (isDev || isTest) {
+ if (isDev) {
this.menuNormal.Center.push({
label: '新建计划车',
handler: this.addPlanTrain,
diff --git a/src/jmapNew/theme/xian_01/menus/menuTrain.vue b/src/jmapNew/theme/xian_01/menus/menuTrain.vue
index 593d5a3e1..a211af021 100644
--- a/src/jmapNew/theme/xian_01/menus/menuTrain.vue
+++ b/src/jmapNew/theme/xian_01/menus/menuTrain.vue
@@ -52,12 +52,12 @@ export default {
{
label: this.$t('menu.menuTrain.addTrainId'),
handler: this.addTrainId,
- cmdType:CMD.Switch.CMD_SWITCH_SINGLE_LOCK
+ cmdType:''
},
{
label: this.$t('menu.menuTrain.deleteTrainId'),
handler: this.delTrainId,
- cmdType:CMD.Switch.CMD_SWITCH_SINGLE_LOCK
+ cmdType:''
},
{
label: this.$t('menu.menuTrain.editTrainId'),
@@ -67,17 +67,32 @@ export default {
{
label: this.$t('menu.menuTrain.editTrainNo'),
handler: this.editTrainNo,
- cmdType:CMD.Switch.CMD_SWITCH_SINGLE_LOCK
+ cmdType:''
},
{
label: this.$t('menu.menuTrain.moveTrainId'),
handler: this.moveTrainId,
- cmdType:CMD.Switch.CMD_SWITCH_SINGLE_LOCK
+ cmdType:''
},
{
label: this.$t('menu.menuTrain.switchTrainId'),
handler: this.switchTrainId,
- cmdType:CMD.Switch.CMD_SWITCH_REMOVE_FAULT
+ cmdType:''
+ },
+ {
+ label: '标记ATP切除',
+ handler: this.undeveloped(),
+ cmdType: CMD.TrainWindow.CMD_TRAIN_TAG_ATP_CUT
+ },
+ {
+ label: '标记ATP激活',
+ handler: this.undeveloped(),
+ cmdType: CMD.TrainWindow.CMD_TRAIN_TAG_ATP_RECOVER
+ },
+ {
+ label: '查看列车详细运行信息',
+ handler: this.undeveloped(),
+ cmdType: CMD.TrainWindow.CMD_TRAIN_INFO
}
]
},
@@ -139,10 +154,6 @@ export default {
if (this.operatemode === OperateMode.FAULT) {
this.menu = [...this.menuForce, ...this.menuSpeed];
}
-
- // this.menu = this.menuNormal.Center;
- // console.log(this.menu, '222222222222222');
- // this.menu = MenuContextHandler.covert(this.menu);
},
doShow(point) {
this.clickEvent();
@@ -306,6 +317,7 @@ export default {
}
});
},
+ undeveloped() {},
// 交换列车识别号
switchTrainId() {
const step = {
diff --git a/src/jmapNew/theme/xian_02/menus/menuSection.vue b/src/jmapNew/theme/xian_02/menus/menuSection.vue
index 71bbb31aa..db33f9363 100644
--- a/src/jmapNew/theme/xian_02/menus/menuSection.vue
+++ b/src/jmapNew/theme/xian_02/menus/menuSection.vue
@@ -154,8 +154,7 @@ export default {
},
mounted() {
const isDev = process.env.NODE_ENV === 'development';
- const isTest = process.env.NODE_ENV === 'test';
- if (isDev || isTest) {
+ if (isDev) {
this.menuNormal.Center.push({
label: '新建计划车',
handler: this.addPlanTrain,
diff --git a/src/scripts/cmdPlugin/CommandEnum.js b/src/scripts/cmdPlugin/CommandEnum.js
index 2f68c5054..dc911ae3b 100644
--- a/src/scripts/cmdPlugin/CommandEnum.js
+++ b/src/scripts/cmdPlugin/CommandEnum.js
@@ -222,7 +222,29 @@ export default {
},
TrainWindow: {
/** 修改列车识别号 */
- CMD_TRAIN_UPDATE_TYPE: {value: 'Train_Update_Type', label: '修改列车识别号'}
+ CMD_TRAIN_UPDATE_TYPE: {value: 'Train_Update_Type', label: '修改列车识别号'},
+ /** 设置车组号 */
+ CMD_TRAIN_ADD_TRAIN_TRACE: {value: 'Train_Add_Train_Trace', label: '设置车组号'},
+ /** 删除车组号 */
+ CMD_TRAIN_REMOVE_TRAIN_TRACE: {value: 'Train_Remove_Train_Trace', label: '删除车组号'},
+ /** 移动车组号 */
+ CMD_TRAIN_MOVE_TRAIN_TRACE: {value: 'Train_Move_Train_Trace', label: '移动车组号'},
+ /** 设计划车 */
+ CMD_TRAIN_SET_PLAN: {value: 'Train_Set_Plan', label: '设计划车'},
+ /** 设头码车 */
+ CMD_TRAIN_SET_HEAD: {value: 'Train_Set_Head', label: '设头码车'},
+ /** 设人工车 */
+ CMD_TRAIN_SET_MANUAL: {value: 'Train_Set_Manual', label: '设人工车'},
+ /** 设乘务组号 */
+ CMD_TRAIN_SET_CREW_NUMBER: {value:'Train_Set_Crew_Number', label: '设乘务组号'},
+ /** 标记ATP切除 */
+ CMD_TRAIN_TAG_ATP_CUT: {value: 'Train_Tag_Atp_Cut', label: '标记ATP切除'},
+ /** 标记ATP恢复 */
+ CMD_TRAIN_TAG_ATP_RECOVER: {value: 'Train_Tag_Atp_Recover', label: '标记ATP恢复'},
+ /** 放行冲突列车 */
+ CMD_TRAIN_ALLOW_PASS: {value:'Train_Allow_Pass', label: '放行冲突列车'},
+ /** 列车信息 */
+ CMD_TRAIN_INFO: {value: 'Train_Info', label:'列车信息'}
},
Fault: {
CMD_SET_FAULT: {value: 'Set_Fault', label: '设置故障'},
diff --git a/src/scripts/cmdPlugin/CommandHandler.js b/src/scripts/cmdPlugin/CommandHandler.js
index 726d0788b..3846fd5b6 100644
--- a/src/scripts/cmdPlugin/CommandHandler.js
+++ b/src/scripts/cmdPlugin/CommandHandler.js
@@ -17,7 +17,8 @@ class CommandHandle {
Local: {},
Common: {
Set_Fault:{operate: 'Set_Fault', paramList:[{name: 'code'}, {name: 'faultType'}]},
- Cancel_Fault: {operate:'Cancel_Fault', paramList:[{name: 'code'}, {name: 'faultType'}]}
+ Cancel_Fault: {operate:'Cancel_Fault', paramList:[{name: 'code'}, {name: 'faultType'}]},
+ Train_Init_Plan: {operate: 'Train_Init_Plan', paramList: [{name: 'sectionCode'}, {name: 'serviceNumber'}, {name: 'tripNumber'}]}
}
};
(list || []).forEach(definition => {
diff --git a/src/scripts/cmdPlugin/OperationHandler.js b/src/scripts/cmdPlugin/OperationHandler.js
index d25026f94..69bedb83b 100644
--- a/src/scripts/cmdPlugin/OperationHandler.js
+++ b/src/scripts/cmdPlugin/OperationHandler.js
@@ -1954,8 +1954,18 @@ export const OperationEvent = {
operation: '70e4',
domId: '_Tips-Train-createPlanTrain-ChangeTripNumber'
}
+ },
+ // 查看列车详细信息
+ trainDetailInfo: {
+ menu: {
+ operation: '70f',
+ domId: '_Tip-Train_trainDetailInfo-Menu'
+ },
+ confirm: {
+ operation: '70f1',
+ domId: '_Tips-Train-trainDetailInfo-Confirm'
+ }
}
-
},
// 取消全线临时限速
diff --git a/src/views/demonstration/detail/index.vue b/src/views/demonstration/detail/index.vue
index 1ef7878f2..efb22487e 100644
--- a/src/views/demonstration/detail/index.vue
+++ b/src/views/demonstration/detail/index.vue
@@ -155,6 +155,7 @@ export default {
} catch (error) {
if (error.code == 30001) {
const url = localStore.get('orignalTrainingPlatformRoute' + this.$store.state.user.id);
+ localStore.remove();
if (url) {
this.$router.push(url);
}
diff --git a/src/views/newMap/jointTrainingNew/menuDemon.vue b/src/views/newMap/jointTrainingNew/menuDemon.vue
index 2b55fdb33..7a32b40b4 100644
--- a/src/views/newMap/jointTrainingNew/menuDemon.vue
+++ b/src/views/newMap/jointTrainingNew/menuDemon.vue
@@ -13,7 +13,7 @@
结束
- 返回
+ 返回
{{ $t('global.back') }}
diff --git a/src/views/trainRoom/e-role.vue b/src/views/trainRoom/e-role.vue
index 62f7ae5d8..3adb0d796 100644
--- a/src/views/trainRoom/e-role.vue
+++ b/src/views/trainRoom/e-role.vue
@@ -19,7 +19,7 @@
v-model="node.deviceCode"
size="mini"
:placeholder="$t('global.choose')"
- :disabled="isDisable"
+ :disabled="isDisable || starting"
:options="deviceList"
@change="handleUpdUser(node, index)"
/>
@@ -28,8 +28,7 @@
v-model="node.deviceCode"
:placeholder="$t('global.choose')"
size="mini"
- :disabled="isDisable"
- s
+ :disabled="isDisable || starting"
@change="handleUpdUser(node, index)"
>
{ return { id: elem.id, nickName: elem.nickName, userRole: roleType.toUpperCase() }; });
}
- await putUserRolesNew(list, this.group);
+ try {
+ await putUserRolesNew(list, this.group);
+ } catch (error) {
+ this.$message(error.message);
+ }
+
} else {
list = userList.map(elem => { return { id: elem.id, nickName: elem.nickName, userRole: roleType }; });
await putUserRoles(list, this.group);