diff --git a/src/jmapNew/config/skinCode/ningbo_03.js b/src/jmapNew/config/skinCode/ningbo_03.js
index 57517f7cf..ac57e4a03 100644
--- a/src/jmapNew/config/skinCode/ningbo_03.js
+++ b/src/jmapNew/config/skinCode/ningbo_03.js
@@ -241,7 +241,8 @@ class SkinCode extends defaultStyle {
borderColor:'', // 字体边框颜色
textBorderWidth:0, // 字体边框宽度
isSpecialType:true, // 特雷兹特殊类型
- noneModeColor:'#ff0' // 无模式时字体颜色
+ noneModeColor:'#ff0', // 无模式时字体颜色
+ currentModeColor:'#0f0' // 当前被控制时字体颜色
},
kmPostShow: false, // 公里标显示
diff --git a/src/jmapNew/shape/AxleReset/EMouse.js b/src/jmapNew/shape/AxleReset/EMouse.js
index f2547d8c6..fa836611b 100644
--- a/src/jmapNew/shape/AxleReset/EMouse.js
+++ b/src/jmapNew/shape/AxleReset/EMouse.js
@@ -31,10 +31,10 @@ export default class EMouse extends Group {
if (e.target && e.target._subType == 'Text') {
this.text.show();
} else {
- this.device.control.setControlColor(this.device.style.LcControl.mouseOverStyle.arcColor);
- this.device.control.setTextColor(this.device.style.LcControl.mouseOverStyle.textColor);
- this.device.control.setTextBorder(true);
- this.device.control.setArcBorder(true);
+ // this.device.control.setControlColor(this.device.style.LcControl.mouseOverStyle.arcColor);
+ // this.device.control.setTextColor(this.device.style.LcControl.mouseOverStyle.textColor);
+ // this.device.control.setTextBorder(true);
+ // this.device.control.setArcBorder(true);
}
}
@@ -43,10 +43,10 @@ export default class EMouse extends Group {
if (e.target && e.target._subType == 'Text') {
this.text.hide();
} else {
- this.device.control.setControlColor(this.device.style.LcControl.lamp.controlColor);
- this.device.control.setTextColor('#FFFFFF');
- this.device.control.setTextBorder(false);
- this.device.control.setArcBorder(false);
+ // this.device.control.setControlColor(this.device.style.LcControl.lamp.controlColor);
+ // this.device.control.setTextColor('#FFFFFF');
+ // this.device.control.setTextBorder(false);
+ // this.device.control.setArcBorder(false);
}
}
}
diff --git a/src/jmapNew/shape/Station/index.js b/src/jmapNew/shape/Station/index.js
index fd31bf779..9d7e57d6c 100644
--- a/src/jmapNew/shape/Station/index.js
+++ b/src/jmapNew/shape/Station/index.js
@@ -414,9 +414,7 @@ export default class Station extends Group {
this.substationControl && this.substationControl.setColor(this.style.Station.StationControl.lamp.grayColor);
this.centerControl && this.centerControl.setColor(this.style.Station.StationControl.lamp.greenColor);
this.centerControl && this.centerControl.setTextColor(this.style.Station.StationControl.lamp.greenColor); // 文字颜色
- if (this.style.Station.stationText.isSpecialType) {
- // simulationRoleList
- } else {
+ if (!this.style.Station.stationText.isSpecialType) {
this.stationText.setColor('#1fdc1f');
}
@@ -445,9 +443,7 @@ export default class Station extends Group {
// this.subheadText && this.subheadText.setStyle('textFill', '#fff');
// }
// }
- if (this.style.Station.stationText.isSpecialType) {
-
- } else {
+ if (!this.style.Station.stationText.isSpecialType) {
this.stationText.setColor('#fff');
}
}
@@ -465,9 +461,7 @@ export default class Station extends Group {
// this.subheadText && this.subheadText.setStyle('textFill', '#fff');
// }
// }
- if (this.style.Station.stationText.isSpecialType) {
-
- } else {
+ if (!this.style.Station.stationText.isSpecialType) {
this.stationText.setColor('#fff');
}
}
@@ -490,9 +484,6 @@ export default class Station extends Group {
if (this.style.Station.stationText.noneModeFlash) {
this.stationText.setAnimateStyle(this.noneBeforeMode);
}
- if (this.style.Station.stationText.isSpecialType) {
- this.stationText.setColor(this.style.Station.stationText.noneModeColor);
- }
}
recover() {
@@ -508,7 +499,8 @@ export default class Station extends Group {
this.substationArrowsControl && this.substationArrowsControl.setColor(this.style.Station.StationControl.lamp.grayColor);
this.emergencyArrowsControl && this.emergencyArrowsControl.setColor(this.style.Station.StationControl.lamp.grayColor);
if (this.style.Station.stationText.isSpecialType) {
-
+ this.stationText.setColor(this.style.Station.stationText.noneModeColor);
+ // sationEle.controller
} else {
this.stationText && this.stationText.stopAnimate();
}
@@ -519,6 +511,8 @@ export default class Station extends Group {
if (!this.isShowShape) return;
this.recover();
model.controlMode && this['handle' + model.controlMode]();
+ model.controller && this.handleComplexControl(model.controller);
+
if (this.style.Station.syncCentralizeStation && model.controlMode && model.centralized) {
model.chargeStationCodeList.forEach(item => {
const device = store.getters['map/getDeviceByCode'](item);
@@ -537,6 +531,16 @@ export default class Station extends Group {
}
}
+ handleComplexControl(controller) {
+ // debugger;
+ // store.state.user.id
+ // if (controller == ) {
+ // this.stationText.setColor(this.style.Station.stationText.currentModeColor);
+ // } else {
+ // debugger;
+ // }
+ }
+
// setState(model) {
// if (!this.isShowShape) return;
// // // 新版地图使用新版状态变更方式
diff --git a/src/jmapNew/theme/beijing_01/planConvert.js b/src/jmapNew/theme/beijing_01/planConvert.js
index 8b191f6ab..204947410 100644
--- a/src/jmapNew/theme/beijing_01/planConvert.js
+++ b/src/jmapNew/theme/beijing_01/planConvert.js
@@ -152,7 +152,10 @@ export default {
/** 如果是备用车,按车次添加线*/
if (train.backup) {
/** 创建一条完成的服务数据*/
- opt.name += j;
+ // opt.name += j;
+ const length = opt.name.length;
+ const optName = parseInt(opt.name) + j;
+ opt.name = optName.toString().padStart(length, '0');
var model = createSeriesModel(opt, Object.assign({ color: hexColor.toCreate() }, lineStyle));
if (model) {
models.push(model);
diff --git a/src/jmapNew/theme/chengdu_01/planConvert.js b/src/jmapNew/theme/chengdu_01/planConvert.js
index efd829f05..5dc1696f8 100644
--- a/src/jmapNew/theme/chengdu_01/planConvert.js
+++ b/src/jmapNew/theme/chengdu_01/planConvert.js
@@ -152,7 +152,10 @@ export default {
/** 如果是备用车,按车次添加线*/
if (train.backup) {
/** 创建一条完成的服务数据*/
- opt.name += j;
+ // opt.name += j;
+ const length = opt.name.length;
+ const optName = parseInt(opt.name) + j;
+ opt.name = optName.toString().padStart(length, '0');
var model = createSeriesModel(opt, Object.assign({ color: hexColor.toCreate() }, lineStyle));
if (model) {
models.push(model);
diff --git a/src/jmapNew/theme/chengdu_03/planConvert.js b/src/jmapNew/theme/chengdu_03/planConvert.js
index 05c33d047..b401381ac 100644
--- a/src/jmapNew/theme/chengdu_03/planConvert.js
+++ b/src/jmapNew/theme/chengdu_03/planConvert.js
@@ -127,7 +127,10 @@ export default {
/** 如果是备用车,按车次添加线*/
if (train.backup) {
/** 创建一条完成的服务数据*/
- opt.name += j;
+ // opt.name += j;
+ const length = opt.name.length;
+ const optName = parseInt(opt.name) + j;
+ opt.name = optName.toString().padStart(length, '0');
var model = createSeriesModel(opt, Object.assign({ color: hexColor.toCreate() }, lineStyle));
if (model) {
models.push(model);
diff --git a/src/jmapNew/theme/components/utils/menuOperate.js b/src/jmapNew/theme/components/utils/menuOperate.js
index 5f3b7c911..33b4c9793 100644
--- a/src/jmapNew/theme/components/utils/menuOperate.js
+++ b/src/jmapNew/theme/components/utils/menuOperate.js
@@ -421,6 +421,11 @@ export const menuOperate = {
setPreReset: {
operation: OperationEvent.Station.setPreReset.menu.operation,
cmdType: CMD.Station.CMD_STATION_PRE_RESET
+ },
+ // 取消计轴预复位
+ cancelPreReset: {
+ operation: OperationEvent.Station.cancelPreReset.menu.operation,
+ cmdType: CMD.Station.CMD_STATION_PRE_RESET
}
},
// 设置/取消强制点灯
diff --git a/src/jmapNew/theme/foshan_01/planConvert.js b/src/jmapNew/theme/foshan_01/planConvert.js
index 41fa7a3ba..c1645c6b1 100644
--- a/src/jmapNew/theme/foshan_01/planConvert.js
+++ b/src/jmapNew/theme/foshan_01/planConvert.js
@@ -147,7 +147,10 @@ export default {
/** 如果是备用车,按车次添加线*/
if (train.backup) {
/** 创建一条完成的服务数据*/
- opt.name += j;
+ // opt.name += j;
+ const length = opt.name.length;
+ const optName = parseInt(opt.name) + j;
+ opt.name = optName.toString().padStart(length, '0');
var model = createSeriesModel(opt, Object.assign({ color: hexColor.toCreate() }, lineStyle));
if (model) {
models.push(model);
diff --git a/src/jmapNew/theme/fuzhou_01/planConvert.js b/src/jmapNew/theme/fuzhou_01/planConvert.js
index 8121b8f53..885344ca4 100644
--- a/src/jmapNew/theme/fuzhou_01/planConvert.js
+++ b/src/jmapNew/theme/fuzhou_01/planConvert.js
@@ -327,7 +327,10 @@ export default {
/** 如果是备用车,按车次添加线*/
if (train.backup) {
/** 创建一条完成的服务数据*/
- opt.name += j;
+ // opt.name += j;
+ const length = opt.name.length;
+ const optName = parseInt(opt.name) + j;
+ opt.name = optName.toString().padStart(length, '0');
// var model = createSeriesModel(opt, Object.assign({ color: hexColor.toCreate() }, lineStyle));
var model = createSeriesModel(opt, Object.assign({ color: '#000' }, lineStyle));
if (model) {
diff --git a/src/jmapNew/theme/haerbin_01/planConvert.js b/src/jmapNew/theme/haerbin_01/planConvert.js
index 15244247a..8dc000647 100644
--- a/src/jmapNew/theme/haerbin_01/planConvert.js
+++ b/src/jmapNew/theme/haerbin_01/planConvert.js
@@ -209,7 +209,10 @@ export default {
/** 如果是备用车,按车次添加线*/
if (train.backup) {
/** 创建一条完成的服务数据*/
- opt.name += j;
+ // opt.name += j;
+ const length = opt.name.length;
+ const optName = parseInt(opt.name) + j;
+ opt.name = optName.toString().padStart(length, '0');
// var model = createSeriesModel(opt, Object.assign({ color: hexColor.toCreate() }, lineStyle));
var model = createSeriesModel(opt, Object.assign({ color: '#000' }, lineStyle));
if (model) {
diff --git a/src/jmapNew/theme/nanjing_02/planConvert.js b/src/jmapNew/theme/nanjing_02/planConvert.js
index ab805878b..dc9c54f56 100644
--- a/src/jmapNew/theme/nanjing_02/planConvert.js
+++ b/src/jmapNew/theme/nanjing_02/planConvert.js
@@ -217,7 +217,10 @@ export default {
/** 如果是备用车,按车次添加线*/
if (train.backup) {
/** 创建一条完成的服务数据*/
- opt.name += j;
+ // opt.name += j;
+ const length = opt.name.length;
+ const optName = parseInt(opt.name) + j;
+ opt.name = optName.toString().padStart(length, '0');
var model = createSeriesModel(opt, Object.assign({ color: hexColor.toCreate() }, lineStyle));
// var model = createSeriesModel(opt, Object.assign({ color: '#000' }, lineStyle));
if (model) {
diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/buttonDown.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/buttonDown.vue
index 2bfa759e8..9131a79c2 100644
--- a/src/jmapNew/theme/ningbo_01/menus/dialog/buttonDown.vue
+++ b/src/jmapNew/theme/ningbo_01/menus/dialog/buttonDown.vue
@@ -9,44 +9,44 @@
:z-index="2000"
:modal="false"
:close-on-click-modal="false"
- append-to-body
>
-
-
-
- 确定
- 关闭
+ 集中站
+ {{ stationName }}
+
+ 按钮
+ {{ buttonName }}
+
+
+
+ 确定
+
+
+ 关闭
+
+
+