From 5278c2308ace7847a9955c9f1503673983084ead Mon Sep 17 00:00:00 2001
From: ival <610568032@qq.com>
Date: Mon, 1 Mar 2021 18:36:33 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BA=BF=E8=B7=AF=EF=BC=9A=E5=AE=81=E6=B3=A21?=
=?UTF-8?q?=E5=8F=B7=E7=BA=BF=20=E9=97=AE=E9=A2=98=EF=BC=9A=E8=B0=83?=
=?UTF-8?q?=E8=AF=95=20=E5=85=A8=E7=BA=BF=E5=8F=96=E6=B6=88=E9=99=90?=
=?UTF-8?q?=E9=80=9F=E3=80=81=E8=AE=BE=E7=BD=AE=E7=94=B5=E7=81=AF=E5=AE=9E?=
=?UTF-8?q?=E8=AE=AD=E8=BF=87=E7=A8=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/jmapNew/shape/Station/index.js | 14 +++--
.../menus/dialog/routeHandControl.vue | 2 +-
.../theme/components/utils/menuOperate.js | 8 +--
.../menus/dialog/routeHandControl.vue | 4 +-
.../fuzhou_01/menus/dialog/routeSelection.vue | 2 +-
.../fuzhou_01/menus/dialog/standControl.vue | 2 +-
.../dialog/childDialog/buttonConfirm.vue | 51 +++++++++++++------
.../dialog/childDialog/operateConfirm.vue | 4 +-
.../ningbo_01/menus/dialog/passwordInput.vue | 2 +-
.../theme/ningbo_01/menus/menuLimit.vue | 2 +-
.../ningbo_01/menus/menuStationControl.vue | 20 +++-----
.../ningbo_01/menus/menuStationLight.vue | 14 +++--
.../ningbo_01/menus/menuStationPreReset.vue | 14 +++--
.../theme/ningbo_01/operationConfig.js | 17 ++++---
.../xian_01/menus/dialog/routeSelection.vue | 2 +-
.../xian_01/menus/dialog/standControl.vue | 2 +-
src/router/index.js | 7 +++
src/utils/baseUrl.js | 4 +-
.../newMap/mapsystemNew/common/index.vue | 8 +++
19 files changed, 114 insertions(+), 65 deletions(-)
diff --git a/src/jmapNew/shape/Station/index.js b/src/jmapNew/shape/Station/index.js
index aaedb5791..7b0e9a8c8 100644
--- a/src/jmapNew/shape/Station/index.js
+++ b/src/jmapNew/shape/Station/index.js
@@ -270,7 +270,7 @@ export default class Station extends Group {
_subType: 'button',
style: this.style,
zlevel: this.zlevel,
- z: this.z,
+ z: this.z+1,
point: {
x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 3 / 2 + this.style.Station.StationControl.lamp.offset.x,
y: model.controlModePoint.y + this.style.Station.StationControl.lamp.offset.y
@@ -298,7 +298,7 @@ export default class Station extends Group {
_subType: 'light',
style: this.style,
zlevel: this.zlevel,
- z: this.z,
+ z: this.z+1,
point: {
x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 9 / 2 + this.style.Station.StationControl.lamp.offset.x,
y: model.controlModePoint.y + this.style.Station.StationControl.lamp.offset.y
@@ -326,7 +326,7 @@ export default class Station extends Group {
_subType: 'preReset',
style: this.style,
zlevel: this.zlevel,
- z: this.z,
+ z: this.z+1,
point: {
x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 3 + this.style.Station.StationControl.lamp.offset.x,
y: model.controlModePoint.y + this.style.Station.StationControl.lamp.offset.y
@@ -640,13 +640,19 @@ export default class Station extends Group {
case 'interconnected':
rect = this.interconnectedControl.getArcBoundingRect();
break;
+ case 'light':
+ rect = this.controlLight.getBoundingRect();
+ break;
+ case 'preReset':
+ rect = this.controlPreReset.getBoundingRect();
+ break;
default:
rect = this.stationText.getBoundingRect();
break;
}
return {
- x: rect.x + rect.width,
+ x: rect.x + rect.width/2,
y: rect.y
};
}
diff --git a/src/jmapNew/theme/components/menus/dialog/routeHandControl.vue b/src/jmapNew/theme/components/menus/dialog/routeHandControl.vue
index 985bdc006..889f8f7e6 100644
--- a/src/jmapNew/theme/components/menus/dialog/routeHandControl.vue
+++ b/src/jmapNew/theme/components/menus/dialog/routeHandControl.vue
@@ -330,7 +330,7 @@ export default {
this.$refs.noticeInfo.doShow();
});
} else {
- commitOperate(menuOperate.Signal.humanControl, {routeCodeList:this.selection}, 2, val).then(({valid})=>{
+ commitOperate(menuOperate.Signal.humanControl, {routeCodeList:this.selection}, 2, { val }).then(({valid})=>{
this.loading = false;
if (valid) {
this.doClose();
diff --git a/src/jmapNew/theme/components/utils/menuOperate.js b/src/jmapNew/theme/components/utils/menuOperate.js
index 33b4c9793..0722692cd 100644
--- a/src/jmapNew/theme/components/utils/menuOperate.js
+++ b/src/jmapNew/theme/components/utils/menuOperate.js
@@ -479,18 +479,19 @@ export const menuOperate = {
* @param {*} over 0为首次操作,1为中间操作,2为最后操作,3为直接一次性操作
* @param {*} val 教学模式val 校验模式判断
*/
-export function commitOperate(operate, paramList, over, val) {
+export function commitOperate(operate, paramList, over, fillStep={}) {
const step = {
start: true,
operation: operate.operation,
param:{}
};
- if (val) { step.val = val; }
- step.param = paramList;
+
+ step.param = paramList;
if (over == 0 || over == 3) {
const codeList = Object.values(paramList);
step.code = codeList[0];
}
+
if (over != 0 && over != 3) {
delete step.start;
}
@@ -503,6 +504,7 @@ export function commitOperate(operate, paramList, over, val) {
step.code = codeList[0];
}
+ Object.assign(step, fillStep)
return new Promise(function(resolve, reject) {
store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) {
diff --git a/src/jmapNew/theme/fuzhou_01/menus/dialog/routeHandControl.vue b/src/jmapNew/theme/fuzhou_01/menus/dialog/routeHandControl.vue
index 2ae4163c8..722bb37eb 100644
--- a/src/jmapNew/theme/fuzhou_01/menus/dialog/routeHandControl.vue
+++ b/src/jmapNew/theme/fuzhou_01/menus/dialog/routeHandControl.vue
@@ -252,7 +252,7 @@ export default {
// 进路交人工控
humanControl() {
this.loading = true;
- commitOperate(menuOperate.Signal.humanControl, {routeCodeList:this.selection}, 2, `${this.selection[0]}`).then(({valid})=>{
+ commitOperate(menuOperate.Signal.humanControl, {routeCodeList:this.selection}, 2, {val: `${this.selection[0]}`}).then(({valid})=>{
this.loading = false;
if (valid) {
this.doClose();
@@ -266,7 +266,7 @@ export default {
// 进路交自动控
atsAutoControl() {
this.loading = true;
- commitOperate(menuOperate.Signal.atsAutoControl, {routeCodeList:this.selection}, 2, `${this.selection[0]}`).then(({valid})=>{
+ commitOperate(menuOperate.Signal.atsAutoControl, {routeCodeList:this.selection}, 2, {val: `${this.selection[0]}`}).then(({valid})=>{
this.loading = false;
if (valid) {
this.doClose();
diff --git a/src/jmapNew/theme/fuzhou_01/menus/dialog/routeSelection.vue b/src/jmapNew/theme/fuzhou_01/menus/dialog/routeSelection.vue
index 316980494..34c120391 100644
--- a/src/jmapNew/theme/fuzhou_01/menus/dialog/routeSelection.vue
+++ b/src/jmapNew/theme/fuzhou_01/menus/dialog/routeSelection.vue
@@ -222,7 +222,7 @@ export default {
commit() {
if (this.row && this.row.canSetting) {
this.loading = true;
- commitOperate(menuOperate.Signal.arrangementRoute, {routeCode: this.row.code}, 1, `${this.row.code}`).then(({valid, operate})=>{
+ commitOperate(menuOperate.Signal.arrangementRoute, {routeCode: this.row.code}, 1, {val: `${this.row.code}`}).then(({valid, operate})=>{
this.loading = false;
if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
diff --git a/src/jmapNew/theme/fuzhou_01/menus/dialog/standControl.vue b/src/jmapNew/theme/fuzhou_01/menus/dialog/standControl.vue
index 6368ca8e0..b59e2e645 100644
--- a/src/jmapNew/theme/fuzhou_01/menus/dialog/standControl.vue
+++ b/src/jmapNew/theme/fuzhou_01/menus/dialog/standControl.vue
@@ -144,7 +144,7 @@ export default {
},
sendCommand(operate, val) { // 发送指令
this.loading = true;
- commitOperate(operate, {}, 2, val).then(({valid})=>{
+ commitOperate(operate, {}, 2, { val }).then(({valid})=>{
this.loading = false;
if (valid) {
this.doClose();
diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/childDialog/buttonConfirm.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/childDialog/buttonConfirm.vue
index 83814b18a..2c9d6dae1 100644
--- a/src/jmapNew/theme/ningbo_01/menus/dialog/childDialog/buttonConfirm.vue
+++ b/src/jmapNew/theme/ningbo_01/menus/dialog/childDialog/buttonConfirm.vue
@@ -26,7 +26,7 @@
- 确认
+ 确认
@@ -35,7 +35,7 @@
按钮
-
+
- 确认
+ 确认
@@ -92,9 +92,15 @@ export default {
show() {
return this.dialogShow && !this.$store.state.menuOperation.break;
},
- confirmId() {
- return this.operation.domId;
- }
+ configmId1() {
+ return OperationEvent.Command.common.confirm1.domId;
+ },
+ confirmId2() {
+ return OperationEvent.Command.common.confirm2.domId;
+ },
+ selectedId(){
+ return OperationEvent.Command.common.select.domId;
+ }
},
mounted() {
@@ -105,6 +111,7 @@ export default {
this.dialogShow = true;
this.confirmIndex = false;
this.operation = operate.operation;
+ this.value = '';
if (this.operation === OperationEvent.StationLight.SetOrCancelForceLight.confirm1.operation) {
this.value1 = '5';
}
@@ -113,25 +120,37 @@ export default {
this.dialogShow = false;
if (this.timer) { clearInterval(this.timer); }
},
+ onChange(val) {
+ commitOperate({operation: OperationEvent.Command.common.select.operation}, {}, 1, {val}).then(({valid, operate})=>{
+ if (valid) {
+ }
+ });
+ },
confirm1() {
this.status = '发送First request消息成功,请等待服务器!';
- setTimeout(() => {
- this.confirmIndex = true;
- this.time = 30;
- this.status = '收到First request消息!';
- this.timer = setInterval(() => {
- this.time = this.time - 1;
- if (this.time < 0) { this.doClose(); }
- }, 1000);
- }, 1000);
+ commitOperate({operation: OperationEvent.Command.common.confirm1.operation}, {}, 1).then(({valid, operate})=>{
+ if (valid) {
+ setTimeout(() => {
+ this.confirmIndex = true;
+ this.time = 30;
+ this.status = '收到First request消息!';
+ this.timer = setInterval(() => {
+ this.time = this.time - 1;
+ if (this.time < 0) { this.doClose(); }
+ }, 1000);
+ }, 1000);
+ }
+ });
},
confirm2() {
if (this.value1 !== this.value2) {
this.status = '确认操作失败!';
return;
}
+
if (this.operation === OperationEvent.StationLight.SetOrCancelForceLight.confirm1.operation) {
- commitOperate({operate: this.operation, cmdType: CMD.Station.CMD_STATION_SET_OR_CANCEL_FORCE_PHYSICAL_SIGNAL}, {}, 2).then(({valid, operate})=>{
+ commitOperate({operation: OperationEvent.Command.common.confirm2.operation,
+ cmdType: CMD.Station.CMD_STATION_SET_OR_CANCEL_FORCE_PHYSICAL_SIGNAL}, {}, 2).then(({valid, operate})=>{
if (valid) {
this.status = '发送 Second Confirm消息成功,请等待服务器!';
setTimeout(() => {
diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/childDialog/operateConfirm.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/childDialog/operateConfirm.vue
index 2e799b7f8..5cfc1881e 100644
--- a/src/jmapNew/theme/ningbo_01/menus/dialog/childDialog/operateConfirm.vue
+++ b/src/jmapNew/theme/ningbo_01/menus/dialog/childDialog/operateConfirm.vue
@@ -73,8 +73,10 @@ export default {
const title = this.$store.state.map.mapName;
const station = this.$store.getters['map/getDeviceByCode'](this.$store.state.map.showCentralizedStationCode);
+ if (station) {
+ this.title = title + '-' + station.name;
+ }
- this.title = title + '-' + station.name;
this.$nextTick(function () {
setTimeout(e => {
this.$store.dispatch('training/emitTipFresh');
diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/passwordInput.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/passwordInput.vue
index af9e53bba..c53ee69f6 100644
--- a/src/jmapNew/theme/ningbo_01/menus/dialog/passwordInput.vue
+++ b/src/jmapNew/theme/ningbo_01/menus/dialog/passwordInput.vue
@@ -67,7 +67,7 @@ export default {
if ( this.password !== 'root' ) {
this.messageShow = true;
} else {
- commitOperate({operation: OperationEvent.Command.close.password.operation}, {}, 1, this.password).then(({valid, operate}) => {
+ commitOperate({operation: OperationEvent.Command.close.password.operation}, {}, 1, {val: this.password}).then(({valid, operate}) => {
if (valid && this.operation === OperationEvent.StationLight.SetOrCancelForceLight.password.operation) {
this.show = false;
this.$emit('confirm');
diff --git a/src/jmapNew/theme/ningbo_01/menus/menuLimit.vue b/src/jmapNew/theme/ningbo_01/menus/menuLimit.vue
index d574ef2b6..5514d12cd 100644
--- a/src/jmapNew/theme/ningbo_01/menus/menuLimit.vue
+++ b/src/jmapNew/theme/ningbo_01/menus/menuLimit.vue
@@ -93,7 +93,7 @@ export default {
},
// 取消速度
cancelSpeed() {
- commitOperate(menuOperate.LimitControl.cancelSpeed, {}, 0).then(({valid, operate})=>{
+ commitOperate(menuOperate.LimitControl.cancelSpeed, {}, 0, {code: this.selected.code}).then(({valid, operate})=>{
if (valid) {
this.$refs.cancelAllLimit.doShow(operate, this.selected);
}
diff --git a/src/jmapNew/theme/ningbo_01/menus/menuStationControl.vue b/src/jmapNew/theme/ningbo_01/menus/menuStationControl.vue
index 1a5a9ceee..a8afbd204 100644
--- a/src/jmapNew/theme/ningbo_01/menus/menuStationControl.vue
+++ b/src/jmapNew/theme/ningbo_01/menus/menuStationControl.vue
@@ -20,14 +20,14 @@ export default {
PopMenu,
StationControl
},
- // props: {
- // selected: {
- // type: Object,
- // default() {
- // return null;
- // }
- // }
- // },
+ props: {
+ selected: {
+ type: Object,
+ default() {
+ return null;
+ }
+ }
+ },
data() {
return {
menu: [],
@@ -103,7 +103,6 @@ export default {
if (this.operatemode === OperateMode.FAULT) {
this.menu = this.menuForce;
}
- this.getCurrentStateObject();
},
doShow(point) {
this.clickEvent();
@@ -117,9 +116,6 @@ export default {
this.$refs.popMenu.close();
}
},
- getCurrentStateObject() {
- this.selected = this.$store.getters['menuOperation/selected'];
- },
setCenterControl() {
// 请求中控(遥控)
commitOperate(menuOperate.StationControl.requestCentralControl, {stationCode:this.selected.code}, 0).then(({valid, operate})=>{
diff --git a/src/jmapNew/theme/ningbo_01/menus/menuStationLight.vue b/src/jmapNew/theme/ningbo_01/menus/menuStationLight.vue
index 689e94abd..43b9927a4 100644
--- a/src/jmapNew/theme/ningbo_01/menus/menuStationLight.vue
+++ b/src/jmapNew/theme/ningbo_01/menus/menuStationLight.vue
@@ -27,6 +27,14 @@ export default {
OperateConfirm,
ButtonConfirm
},
+ props: {
+ selected: {
+ type: Object,
+ default() {
+ return null;
+ }
+ }
+ },
data() {
return {
menu: [],
@@ -81,7 +89,6 @@ export default {
if (this.$store.state.training.mode === TrainingMode.NORMAL) {
const memberData = this.$store.state.training.memberData;
const userId = this.$store.state.user.id;
- this.getCurrentStateObject();
if (!this.selected.controller || !memberData[this.selected.controller] || memberData[this.selected.controller].userId != userId) {
this.menu.forEach(item => {
item.disabled = true;
@@ -105,12 +112,9 @@ export default {
this.$refs.popMenu.close();
}
},
- getCurrentStateObject() {
- this.selected = this.$store.getters['menuOperation/selected'];
- },
setOrCancelForceLight() {
// 请求中控(遥控)
- commitOperate(menuOperate.StationLight.setOrCancelForceLight, {stationCode:this.selected.code}, 0).then(({valid, operate})=>{
+ commitOperate(menuOperate.StationLight.setOrCancelForceLight.operation, {stationCode:this.selected.code}, 0, {code: this.selected.code, subType: 'light'}).then(({valid, operate})=>{
if (valid) {
const nextOperate = {
operation: OperationEvent.StationLight.SetOrCancelForceLight.password.operation
diff --git a/src/jmapNew/theme/ningbo_01/menus/menuStationPreReset.vue b/src/jmapNew/theme/ningbo_01/menus/menuStationPreReset.vue
index b6ef04548..74304ccea 100644
--- a/src/jmapNew/theme/ningbo_01/menus/menuStationPreReset.vue
+++ b/src/jmapNew/theme/ningbo_01/menus/menuStationPreReset.vue
@@ -20,6 +20,14 @@ export default {
components: {
PopMenu,
ButtonDown
+ },
+ props: {
+ selected: {
+ type: Object,
+ default() {
+ return null;
+ }
+ }
},
data() {
return {
@@ -82,7 +90,6 @@ export default {
initMenu() {
// 编辑模式菜单列表
this.menu = MenuContextHandler.covert(this.menuNormal);
- this.getCurrentStateObject();
if (this.$store.state.training.mode === TrainingMode.NORMAL) {
const memberData = this.$store.state.training.memberData;
const userId = this.$store.state.user.id;
@@ -109,9 +116,6 @@ export default {
this.$refs.popMenu.close();
}
},
- getCurrentStateObject() {
- this.selected = this.$store.getters['menuOperation/selected'];
- },
setPreReset() {
// 计轴复位
commitOperate(menuOperate.Station.setPreReset, {stationCode:this.selected.code}, 0).then(({valid, operate})=>{
@@ -125,7 +129,7 @@ export default {
},
cancelPreReset() {
// 取消计轴复位
- commitOperate(menuOperate.Station.cancelPreReset, {stationCode:this.selected.code}, 0).then(({valid, operate})=>{
+ commitOperate(menuOperate.Station.cancelPreReset.operation, {stationCode:this.selected.code}, 0, {code: this.selected.code, subType: 'light'}).then(({valid, operate})=>{
if (valid) {
const nextOperate = {
operation: OperationEvent.Station.cancelPreReset.confirm.operation
diff --git a/src/jmapNew/theme/ningbo_01/operationConfig.js b/src/jmapNew/theme/ningbo_01/operationConfig.js
index b0cb56681..844908cac 100644
--- a/src/jmapNew/theme/ningbo_01/operationConfig.js
+++ b/src/jmapNew/theme/ningbo_01/operationConfig.js
@@ -303,7 +303,7 @@ export default {
{ deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确认】按钮' },
{ deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' },
{ deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮', val: '5' },
- { deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
+ { deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' },
]
},
{
@@ -322,7 +322,7 @@ export default {
{ deviceType: '03', orderNum: 3, operateCode: '4082', tip: '鼠标左键点击【确认】按钮' },
{ deviceType: '03', orderNum: 4, operateCode: '4083', tip: '鼠标左键点击【确认1】按钮' },
{ deviceType: '03', orderNum: 5, operateCode: '4084', tip: '鼠标左键点击【确认2】按钮', val: '0' },
- { deviceType: '03', orderNum: 6, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
+ { deviceType: '03', orderNum: 6, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' },
]
},
{
@@ -913,12 +913,12 @@ export default {
trainingType: 'Station',
productTypes: ['01', '02'],
stepVOList: [
- { deviceType: '05', orderNum: 1, operateCode: '1100', tip: '鼠标右键菜单选择【设置/取消强制点灯】', codeType: 'BUTTON'},
- { deviceType: '05', orderNum: 2, operateCode: '11001', tip: '请输入密码"root",点击【确认】按钮', val: 'root' },
- { deviceType: '05', orderNum: 3, operateCode: '11004', tip: '鼠标左键点击【是】按钮' },
- { deviceType: '05', orderNum: 4, operateCode: '11002', tip: '鼠标左键点击【确定】按钮' },
- { deviceType: '05', orderNum: 5, operateCode: '11006', tip: '鼠标左键选择({8}{9})区段', val: '{19}' },
- { deviceType: '05', orderNum: 6, operateCode: '11003', tip: '鼠标左键点击【确定】按钮' }
+ { deviceType: '05', orderNum: 1, operateCode: '1100', tip: '鼠标右键菜单选择【设置/取消强制点灯】', subType: 'light'},
+ { deviceType: '05', orderNum: 2, operateCode: '0011', tip: '请输入密码"root",点击【确认】按钮', val: 'root' },
+ { deviceType: '05', orderNum: 3, operateCode: '11002', tip: '鼠标左键点击【是】按钮' },
+ { deviceType: '05', orderNum: 4, operateCode: 'com08', tip: '鼠标左键点击【确定】按钮' },
+ { deviceType: '05', orderNum: 5, operateCode: 'com02', tip: '请选择【强制点灯】选项', val: '5' },
+ { deviceType: '05', orderNum: 6, operateCode: 'com13', tip: '鼠标左键点击【确定】按钮' },
],
config:{tbStrategyBT:true}
},
@@ -997,6 +997,7 @@ export default {
{ deviceType: '05', orderNum: 3, operateCode: '8003', tip: '鼠标左键点击【确定】按钮' },
{ deviceType: '05', orderNum: 4, operateCode: '8004', tip: '鼠标左键点击【确定】按钮' },
{ deviceType: '05', orderNum: 5, operateCode: '8005', tip: '鼠标左键点击【关闭】按钮' },
+ { deviceType: '05', orderNum: 6, operateCode: '8006', tip: '鼠标左键点击【确定】按钮' },
]
},
{
diff --git a/src/jmapNew/theme/xian_01/menus/dialog/routeSelection.vue b/src/jmapNew/theme/xian_01/menus/dialog/routeSelection.vue
index e3d7351be..a6d0887ba 100644
--- a/src/jmapNew/theme/xian_01/menus/dialog/routeSelection.vue
+++ b/src/jmapNew/theme/xian_01/menus/dialog/routeSelection.vue
@@ -225,7 +225,7 @@ export default {
commit() {
if (this.row && this.row.canSetting) {
this.loading = true;
- commitOperate(menuOperate.Signal.arrangementRoute, {routeCode: this.row.code}, 2, `${this.row.code}`).then(({valid})=>{
+ commitOperate(menuOperate.Signal.arrangementRoute, {routeCode: this.row.code}, 2, {val: `${this.row.code}`}).then(({valid})=>{
this.loading = false;
if (valid) {
this.doClose();
diff --git a/src/jmapNew/theme/xian_01/menus/dialog/standControl.vue b/src/jmapNew/theme/xian_01/menus/dialog/standControl.vue
index a1697de87..09db2ca0a 100644
--- a/src/jmapNew/theme/xian_01/menus/dialog/standControl.vue
+++ b/src/jmapNew/theme/xian_01/menus/dialog/standControl.vue
@@ -143,7 +143,7 @@ export default {
},
sendCommand(operate, val) { // 发送指令
this.loading = true;
- commitOperate(operate, {}, 2, val).then(({valid})=>{
+ commitOperate(operate, {}, 2, { val }).then(({valid})=>{
this.loading = false;
if (valid) {
this.doClose();
diff --git a/src/router/index.js b/src/router/index.js
index 00215f28f..8022a4619 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -88,6 +88,7 @@ const ExamCourseDetail = () => import('@/views/exam/detail/courseDetail');
const DemonstrationDetail = () => import('@/views/demonstration/detail/index');
const PlanMonitorEditTool = () => import('@/views/planMonitor/editTool/index');
+const PlanMonitorEditToolTJ = () => import('@/views/planMonitor/editToolTJ/index');
const PlanMonitorNewEditTool = () => import('@/views/planMonitor/newEditTool/index');
const PlanMonitorEditAUSTool = () => import('@/views/planMonitor/editToolAUS/tool/index');
const PlanMonitorEditAUSLine = () => import('@/views/planMonitor/editToolAUS/line/index');
@@ -371,6 +372,12 @@ export const publicAsyncRoute = [
component: PlanMonitorEditTool,
hidden: true
},
+ // 同济大学运行图编辑
+ {
+ path: '/plan/toolTJ',
+ component: PlanMonitorEditToolTJ,
+ hidden: true
+ },
{ // 哈尔滨运行图编辑
path: '/plan/newTool',
component: PlanMonitorNewEditTool,
diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js
index 51ddbe296..1310fdfc7 100644
--- a/src/utils/baseUrl.js
+++ b/src/utils/baseUrl.js
@@ -2,11 +2,11 @@ export function getBaseUrl() {
let BASE_API;
if (process.env.NODE_ENV === 'development') {
// BASE_API = 'https://api.joylink.club/jlcloud';
- BASE_API = 'https://test.joylink.club/jlcloud';
+ // BASE_API = 'https://test.joylink.club/jlcloud';
// BASE_API = 'http://192.168.8.107:9000'; // 袁琪
// BASE_API = 'http://192.168.8.129:9000'; // 旭强
// BASE_API = 'http://192.168.8.119:9000'; // 张赛
- // BASE_API = 'http://192.168.8.140:9000'; // 杜康
+ BASE_API = 'http://192.168.8.140:9000'; // 杜康
// BASE_API = 'http://b29z135112.zicp.vip';
// BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康
// BASE_API = 'http://2i38984j47.qicp.vip'; // 张赛
diff --git a/src/views/newMap/mapsystemNew/common/index.vue b/src/views/newMap/mapsystemNew/common/index.vue
index 3850584d7..e475d081c 100644
--- a/src/views/newMap/mapsystemNew/common/index.vue
+++ b/src/views/newMap/mapsystemNew/common/index.vue
@@ -135,6 +135,8 @@ export default {
menu = getDeviceMenuByDeviceType('StationControl');
this.$store.dispatch('menuOperation/setPopMenu', { position: point, menu: menu });
this.$store.dispatch('training/emitTipFresh');
+ device = this.getDeviceByEm(em);
+ this.selected = { ...device, _event: MouseEvent.Right};
return;
} else if (em.subType == 'light' && em.deviceType == 'Station') { // 宁波一号线右键显示强制点灯
const equipment = this.getDeviceByEm(em);
@@ -142,6 +144,8 @@ export default {
menu = getDeviceMenuByDeviceType('StationLight');
this.$store.dispatch('menuOperation/setPopMenu', { position: point, menu: menu });
this.$store.dispatch('training/emitTipFresh');
+ device = this.getDeviceByEm(em);
+ this.selected = { ...device, _event: MouseEvent.Right};
return;
} else if (em.subType == 'preReset' && em.deviceType == 'Station') { // 宁波一号线右键显示计轴复位
const equipment = this.getDeviceByEm(em);
@@ -149,6 +153,8 @@ export default {
menu = getDeviceMenuByDeviceType('StationPreReset');
this.$store.dispatch('menuOperation/setPopMenu', { position: point, menu: menu });
this.$store.dispatch('training/emitTipFresh');
+ device = this.getDeviceByEm(em);
+ this.selected = { ...device, _event: MouseEvent.Right};
return;
} else if (em.subType == 'enabled' && em.deviceType == 'Switch') {
menu = getDeviceMenuByDeviceType('Enabled');
@@ -164,7 +170,9 @@ export default {
return;
} else if (em.deviceCode && !this.isScreen) {
device = this.getDeviceByEm(em);
+ this.selected = { ...device, _event: MouseEvent.Right};
}
+
if (device) {
device = this.getSelectedByLineCode(device);
this.selected = { ...device, _event: MouseEvent.Right};