From 6fbfa0dc1a6c56f7c9944870271c1f4ce5fdf6c3 Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Tue, 3 Nov 2020 16:06:11 +0800
Subject: [PATCH 01/43] =?UTF-8?q?=E5=90=84=E7=BA=BF=E8=B7=AF=E7=AB=99?=
=?UTF-8?q?=E5=8F=B0=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E6=89=A3=E8=BD=A6?=
=?UTF-8?q?=E5=8F=82=E6=95=B0=E8=B0=83=E6=95=B4=20=E5=93=88=E5=B0=94?=
=?UTF-8?q?=E6=BB=A8=E7=BA=BF=E8=B7=AF=20=E7=AB=99=E5=8F=B0=20=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=20=E6=89=A3=E8=BD=A6/=E8=B6=8A=E7=AB=99=20=E8=AE=BE?=
=?UTF-8?q?=E7=BD=AE=E6=8C=89=E9=92=AE=20=E7=AB=9E=E8=B5=9B=E5=AE=9E?=
=?UTF-8?q?=E6=93=8D=20=E5=9C=BA=E6=99=AF=E6=8E=92=E5=BA=8F=20=E7=AB=9E?=
=?UTF-8?q?=E8=B5=9B=E9=A1=B5=E9=9D=A2=20=E6=B7=BB=E5=8A=A0=E5=9C=BA?=
=?UTF-8?q?=E6=99=AF11=20=E6=93=8D=E4=BD=9C=E6=8C=89=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/jmapNew/config/skinCode/bejing_01.js | 3 +-
src/jmapNew/config/skinCode/chengdu_01.js | 3 +-
src/jmapNew/config/skinCode/chengdu_03.js | 3 +-
src/jmapNew/config/skinCode/foshan_01.js | 3 +-
src/jmapNew/config/skinCode/fuzhou_01.js | 3 +-
src/jmapNew/config/skinCode/haerbin_01.js | 13 ++++-
src/jmapNew/config/skinCode/ningbo_01.js | 3 +-
src/jmapNew/config/skinCode/race_01.js | 3 +-
src/jmapNew/config/skinCode/xian_01.js | 3 +-
.../shape/StationStand/ETrainSetButton.js | 54 +++++++++++++++++++
.../shape/StationStand/detain/EDetain.js | 5 +-
.../StationStand/detain/EDetainHollow.js | 5 +-
src/jmapNew/shape/StationStand/index.js | 13 ++++-
.../theme/haerbin_01/operationConfig.js | 12 +++--
src/scripts/ConstConfig.js | 3 +-
.../displayNew/dispatherContest/sceneList.vue | 9 ++--
16 files changed, 115 insertions(+), 23 deletions(-)
create mode 100644 src/jmapNew/shape/StationStand/ETrainSetButton.js
diff --git a/src/jmapNew/config/skinCode/bejing_01.js b/src/jmapNew/config/skinCode/bejing_01.js
index 9a699baa8..f40879aaa 100644
--- a/src/jmapNew/config/skinCode/bejing_01.js
+++ b/src/jmapNew/config/skinCode/bejing_01.js
@@ -321,7 +321,8 @@ class SkinCode extends defaultStyle {
z:0,
position: -1, // 扣车标识在站台上显示方向
text: 'H', // 扣车显示内容
- offset: { x: -8, y: 13 }, // 扣车偏移量
+ insideOffset: { x: -8, y: 13 }, // 内站台扣车偏移量
+ outsideOffset: { x: -8, y: 13 }, // 外站台扣车偏移量
centerTrainColor: '#FFFFFF', // 中心扣车颜色
andCenterTrainColor: '#F61107', // 车站+中心扣车颜色
detainTrainTextColor: '#E4EF50', // 车站扣除文字颜色
diff --git a/src/jmapNew/config/skinCode/chengdu_01.js b/src/jmapNew/config/skinCode/chengdu_01.js
index aabdf1139..8a69318ad 100644
--- a/src/jmapNew/config/skinCode/chengdu_01.js
+++ b/src/jmapNew/config/skinCode/chengdu_01.js
@@ -238,7 +238,8 @@ class SkinCode extends defaultStyle {
z:0,
position: -1, // 扣车标识在站台上显示方向
text: 'H', // 扣车显示内容
- offset: { x: -8, y: 13 }, // 扣车偏移量
+ insideOffset: { x: -8, y: 13 }, // 内站台扣车偏移量
+ outsideOffset:{ x: -8, y: 13 }, // 外站台扣车偏移量
centerTrainColor: 'white', // 中心扣车颜色
andCenterTrainColor: 'red', // 车站+中心扣车颜色
detainTrainTextColor: '#E4EF50', // 车站扣除文字颜色
diff --git a/src/jmapNew/config/skinCode/chengdu_03.js b/src/jmapNew/config/skinCode/chengdu_03.js
index e19e18cff..171d3313f 100644
--- a/src/jmapNew/config/skinCode/chengdu_03.js
+++ b/src/jmapNew/config/skinCode/chengdu_03.js
@@ -259,7 +259,8 @@ class SkinCode extends defaultStyle {
z:0,
position: -1, // 扣车标识在站台上显示方向
text: '扣', // 扣车显示内容
- offset: {x: -8, y: 20}, // 扣车偏移量
+ insideOffset: {x: -8, y: 20}, // 内站台扣车偏移量
+ outsideOffset: {x: -8, y: 20}, // 外站台扣车偏移量
centerTrainColor: '#C0C0C0', // 中心扣车颜色
andCenterTrainColor: '#C0C0C0', // 车站+中心扣车颜色
detainTrainTextColor: '#E4EF50', // 车站扣除文字颜色
diff --git a/src/jmapNew/config/skinCode/foshan_01.js b/src/jmapNew/config/skinCode/foshan_01.js
index 8aed3e042..08ba7fc49 100644
--- a/src/jmapNew/config/skinCode/foshan_01.js
+++ b/src/jmapNew/config/skinCode/foshan_01.js
@@ -229,7 +229,8 @@ class SkinCode extends defaultStyle {
z:0,
position: 1, // 扣车标识在站台上显示方向
text: 'H', // 扣车显示内容
- offset: {x: -8, y: 17}, // 扣车偏移量
+ insideOffset: {x: -8, y: 17}, // 内站台扣车偏移量
+ outsideOffset: {x: -8, y: 17}, // 外站台扣车偏移量
centerTrainColor: '#FFFFFF', // 中心扣车颜色
andCenterTrainColor: '#F61107', // 车站+中心扣车颜色
detainTrainTextColor: '#E4EF50', // 车站扣除文字颜色
diff --git a/src/jmapNew/config/skinCode/fuzhou_01.js b/src/jmapNew/config/skinCode/fuzhou_01.js
index 707fcedcf..669521a8a 100644
--- a/src/jmapNew/config/skinCode/fuzhou_01.js
+++ b/src/jmapNew/config/skinCode/fuzhou_01.js
@@ -228,7 +228,8 @@ class SkinCode extends defaultStyle {
z:0,
position: 1, // 扣车标识在站台上显示方向
text: 'H', // 扣车显示内容
- offset: {x: -8, y: 25}, // 扣车偏移量
+ insideOffset: {x: -8, y: 25}, // 内站台扣车偏移量
+ outsideOffset: {x: -8, y: 25}, // 外站台扣车偏移量
centerTrainColor: '#FFFFFF', // 中心扣车颜色
andCenterTrainColor: '#F61107', // 车站+中心扣车颜色
detainTrainTextColor: '#E4EF50', // 车站扣除文字颜色
diff --git a/src/jmapNew/config/skinCode/haerbin_01.js b/src/jmapNew/config/skinCode/haerbin_01.js
index deeef91c9..58921660f 100644
--- a/src/jmapNew/config/skinCode/haerbin_01.js
+++ b/src/jmapNew/config/skinCode/haerbin_01.js
@@ -216,7 +216,7 @@ class SkinCode extends defaultStyle {
this[deviceType.StationStand] = {
// 哈尔滨一号线站台元素 站台 站台紧急关闭 扣车元素 停站时间 运行等级 跳停
- elemnetType:['gapStand', 'emergentArrow', 'detainNormal', 'level', 'jump', 'trainStop', 'trainDepart'],
+ elemnetType:['gapStand', 'emergentArrow', 'detainNormal', 'level', 'jump', 'trainStop', 'trainDepart', 'trainSetButton'],
// 站台
gapStand:{
// 层级
@@ -245,7 +245,8 @@ class SkinCode extends defaultStyle {
z:0,
position: 1, // 扣车标识在站台上显示方向
text: 'H', // 扣车显示内容
- offset: { x: 60, y: -18 }, // 扣车偏移量
+ insideOffset: { x: 60, y: -18 }, // 内站台扣车偏移量
+ outsideOffset: { x: 60, y: 25 }, // 外站台扣车偏移量
centerTrainColor: '#F61107', // 中心扣车颜色
andCenterTrainColor: '#F61107', // 车站+中心扣车颜色
detainTrainTextColor: '#E4EF50', // 车站扣除文字颜色
@@ -288,8 +289,16 @@ class SkinCode extends defaultStyle {
textBorderColor: '#00FF00', // 文字边框颜色
fontSize: 10 // 字体大小
},
+ // 站台 扣车/取消扣车,越站/取消越站 设置按钮
+ trainSetButton:{
+ z:1,
+ offset: { x: 80, y:10}, // 按钮偏移
+ textFontSize: 13, // 按钮字体大小
+ textColor:'#00FF00'
+ },
common: { // 通用属性
+ bgShow: true, // 是否被选中
textFontSize: 11, // 站台默认字体大小
functionButtonShow: '03' // 功能灯按钮显示条件(01所有模式下显示 02 行调显示 03现地显示)
},
diff --git a/src/jmapNew/config/skinCode/ningbo_01.js b/src/jmapNew/config/skinCode/ningbo_01.js
index 545004532..4f4dfccaf 100644
--- a/src/jmapNew/config/skinCode/ningbo_01.js
+++ b/src/jmapNew/config/skinCode/ningbo_01.js
@@ -354,7 +354,8 @@ class SkinCode extends defaultStyle {
z:0,
position: 1, // 扣车标识在站台上显示方向
text: 'H', // 扣车显示内容
- offset: { x: -8, y: 10 }, // 扣车偏移量
+ insideOffset: { x: -8, y: 10 }, // 内站台扣车偏移量
+ outsideOffset: { x: -8, y: 10 }, // 外站台扣车偏移量
centerTrainColor: 'white', // 中心扣车颜色
andCenterTrainColor: 'red', // 车站+中心扣车颜色
detainTrainTextColor: '#E4EF50', // 车站扣除文字颜色
diff --git a/src/jmapNew/config/skinCode/race_01.js b/src/jmapNew/config/skinCode/race_01.js
index 21919afe6..3900899d6 100644
--- a/src/jmapNew/config/skinCode/race_01.js
+++ b/src/jmapNew/config/skinCode/race_01.js
@@ -337,7 +337,8 @@ class SkinCode extends defaultStyle {
z:0,
position: -1, // 扣车标识在站台上显示方向
text: 'H', // 扣车显示内容
- offset: { x: -8, y: 13 }, // 扣车偏移量
+ insideOffset: { x: -8, y: 13 }, // 内站台扣车偏移量
+ outsideOffset: { x: -8, y: 13 }, // 外站台扣车偏移量
centerTrainColor: '#00FF00', // 中心扣车颜色
andCenterTrainColor: '#00FF00', // 车站+中心扣车颜色
detainTrainTextColor: '#00FF00', // 车站扣车文字颜色
diff --git a/src/jmapNew/config/skinCode/xian_01.js b/src/jmapNew/config/skinCode/xian_01.js
index 39f4aa916..dedc4203f 100644
--- a/src/jmapNew/config/skinCode/xian_01.js
+++ b/src/jmapNew/config/skinCode/xian_01.js
@@ -237,7 +237,8 @@ class SkinCode extends defaultStyle {
z:0,
position: 1, // 扣车标识在站台上显示方向
text: 'H', // 扣车显示内容
- offset: {x: -8, y: -6}, // 扣车偏移量
+ insideOffset: {x: -8, y: -6}, // 内站台扣车偏移量
+ outsideOffset: {x: -8, y: 16}, // 外站台扣车偏移量
trainColor: '#E4EF50', // 车站扣车颜色
centerTrainColor: '#FFFFFF', // 中心扣车颜色
andCenterTrainColor: '#F61107', // 车站+中心扣车颜色
diff --git a/src/jmapNew/shape/StationStand/ETrainSetButton.js b/src/jmapNew/shape/StationStand/ETrainSetButton.js
new file mode 100644
index 000000000..5e874dff2
--- /dev/null
+++ b/src/jmapNew/shape/StationStand/ETrainSetButton.js
@@ -0,0 +1,54 @@
+import Group from 'zrender/src/container/Group';
+import Text from 'zrender/src/graphic/Text';
+
+class ETime extends Group {
+ constructor(model) {
+ super();
+ this.model = model;
+ this.create();
+ }
+
+ create() {
+ const model = this.model.modelData;
+ const style = this.model.style;
+
+ const buttonD = model.right ? 1 : -1;
+ const buttonX = model.position.x - buttonD * (style.StationStand.trainSetButton.offset.x - model.width / 2);
+ const buttonY = model.position.y + buttonD * (style.StationStand.trainSetButton.offset.y - model.height / 2);
+
+ this.trainSetButton = new Text({
+ zlevel: this.model.zlevel,
+ z: this.model.z,
+ position: [0, 0],
+ _subType: 'trainSetButton',
+ style: {
+ x: buttonX,
+ y: buttonY,
+ fontWeight: style.textStyle.fontWeight,
+ fontSize: style.StationStand.trainSetButton.textFontSize,
+ fontFamily: style.fontFamily,
+ text: 'E',
+ textFill: style.StationStand.trainSetButton.textColor,
+ textAlign: style.textStyle.textAlign,
+ textVerticalAlign: style.textStyle.textVerticalAlign
+ }
+ });
+ this.add(this.trainSetButton);
+ }
+
+ hideMode() {
+ this.trainSetButton && this.trainSetButton.hide();
+ }
+
+ showMode() {
+ this.trainSetButton && this.trainSetButton.show();
+ }
+
+ recover() {
+ }
+
+ setState(model) {
+ }
+}
+
+export default ETime;
diff --git a/src/jmapNew/shape/StationStand/detain/EDetain.js b/src/jmapNew/shape/StationStand/detain/EDetain.js
index 9e152d560..8fcf623ef 100644
--- a/src/jmapNew/shape/StationStand/detain/EDetain.js
+++ b/src/jmapNew/shape/StationStand/detain/EDetain.js
@@ -16,9 +16,10 @@ class EDetain extends Group {
this.isNew = true;
/** 站台扣车*/
+ const detainOffset = model.inside ? deviceParam.insideOffset : deviceParam.outsideOffset;
const detainD = model.right ? 1 : -1;
- const detainX = model.position.x - detainD * (deviceParam.offset.x - model.width / 2);
- const detainY = model.position.y + detainD * (deviceParam.offset.y - model.height / 2);
+ const detainX = model.position.x - detainD * (detainOffset.x - model.width / 2);
+ const detainY = model.position.y + detainD * (detainOffset.y - model.height / 2);
this.detain = new Text({
zlevel: this.model.zlevel,
diff --git a/src/jmapNew/shape/StationStand/detain/EDetainHollow.js b/src/jmapNew/shape/StationStand/detain/EDetainHollow.js
index e23a9bc8a..2617a3a85 100644
--- a/src/jmapNew/shape/StationStand/detain/EDetainHollow.js
+++ b/src/jmapNew/shape/StationStand/detain/EDetainHollow.js
@@ -12,9 +12,10 @@ class EDetainHollow extends EDetain {
const model = this.model.modelData;
const style = this.model.style;
/** 站台扣车*/
+ const detainOffset = model.inside ? style.StationStand.detainHollow.insideOffset : style.StationStand.detainHollow.outsideOffset;
const detainD = model.right ? 1 : -1;
- const detainX = model.position.x - detainD * (style.StationStand.detainHollow.offset.x - model.width / 2);
- const detainY = model.position.y + detainD * (style.StationStand.detainHollow.offset.y - model.height / 2);
+ const detainX = model.position.x - detainD * (detainOffset.x - model.width / 2);
+ const detainY = model.position.y + detainD * (detainOffset.y - model.height / 2);
if (!this.isNew) {
super.create(style.StationStand.detainHollow);
const offsetX = model.right ? 8 : -8;
diff --git a/src/jmapNew/shape/StationStand/index.js b/src/jmapNew/shape/StationStand/index.js
index 8f92346e6..540cdfc97 100644
--- a/src/jmapNew/shape/StationStand/index.js
+++ b/src/jmapNew/shape/StationStand/index.js
@@ -33,6 +33,8 @@ import ECancelStopJumpLamp from './functionButton/ECancelStopJumpLamp';
import EUpDetainLamp from './functionButton/EUpDetainLamp';
import EDownDetainLamp from './functionButton/EDownDetainLamp';
+import ETrainSetButton from './ETrainSetButton';
+
import {isShowThePrdType} from '../../utils/handlePath';
import {traverseLineElements, traverseStatusElements} from '../utils/ShapeStatusCovert';
@@ -85,7 +87,8 @@ class StationStand extends Group {
'reentry':EReentry, // 站台折返策略
'trainStop':ETrainStop, // 列车停车点标识 哈尔滨一号线
- 'trainDepart':ETrainDepart// 列车停站时间 哈尔滨一号线
+ 'trainDepart':ETrainDepart, // 列车停站时间 哈尔滨一号线
+ 'trainSetButton':ETrainSetButton // 站台 扣车/取消扣车,越站/取消越站 设置按钮 哈尔滨一号线
};
// 遍历当前线路下的绘图元素 组合模式
traverseLineElements(style.StationStand, elementTypeList, model, style, this);
@@ -117,6 +120,10 @@ class StationStand extends Group {
this.on('mouseout', (e) => { this.mouseEvent.mouseout(e); });
this.on('mouseover', (e) => { this.mouseEvent.mouseover(e); });
}
+ if (this.style.StationStand.common.bgShow) {
+ this.highlight = new EHighlight(this);
+ this.add(this.highlight);
+ }
}
}
@@ -180,6 +187,10 @@ class StationStand extends Group {
rect = this.downDetainLamp.getBoundingRect();
break;
}
+ case 'trainSetButton': {
+ rect = this.trainSetButton.getBoundingRect();
+ break;
+ }
default: {
rect = this.getBoundingRect();
break;
diff --git a/src/jmapNew/theme/haerbin_01/operationConfig.js b/src/jmapNew/theme/haerbin_01/operationConfig.js
index cd02cf65a..f7d241703 100644
--- a/src/jmapNew/theme/haerbin_01/operationConfig.js
+++ b/src/jmapNew/theme/haerbin_01/operationConfig.js
@@ -876,7 +876,8 @@ export default {
trainingType: 'Stand',
productTypes: ['02'],
stepVOList: [
- { deviceType: '04', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该站台' },
+ // { deviceType: '04', orderNum: 1, tip: '鼠标左键点击选择该站台' },
+ { deviceType: 'trainSetButton', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该站台', codeType:'STAND'},
{ deviceType: '04', orderNum: 2, operateCode: '5041', tip: '鼠标左键点击【扣车】按钮' },
{ deviceType: '04', orderNum: 3, operateCode: '008', tip: '鼠标左键点击【执行】按钮' }
]
@@ -891,7 +892,8 @@ export default {
trainingType: 'Stand',
productTypes: ['02'],
stepVOList: [
- { deviceType: '04', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该站台' },
+ // { deviceType: '04', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该站台' },
+ { deviceType: 'trainSetButton', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该站台', codeType:'STAND'},
{ deviceType: '04', orderNum: 2, operateCode: '5052', tip: '鼠标左键点击【取消扣车】按钮' },
{ deviceType: '04', orderNum: 3, operateCode: '008', tip: '鼠标左键点击【执行】按钮' }
]
@@ -906,7 +908,8 @@ export default {
trainingType: 'Stand',
productTypes: ['02'],
stepVOList: [
- { deviceType: '04', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该站台' },
+ // { deviceType: '04', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该站台' },
+ { deviceType: 'trainSetButton', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该站台', codeType:'STAND'},
{ deviceType: '04', orderNum: 2, operateCode: '5025', tip: '鼠标左键点击【越站】按钮' },
{ deviceType: '04', orderNum: 3, operateCode: '008', tip: '鼠标左键点击【执行】按钮' }
]
@@ -921,7 +924,8 @@ export default {
trainingType: 'Stand',
productTypes: ['02'],
stepVOList: [
- { deviceType: '04', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该站台' },
+ // { deviceType: '04', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该站台' },
+ { deviceType: 'trainSetButton', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该站台', codeType:'STAND'},
{ deviceType: '04', orderNum: 2, operateCode: '5035', tip: '鼠标左键点击【取消越站】按钮' },
{ deviceType: '04', orderNum: 3, operateCode: '008', tip: '鼠标左键点击【执行】按钮' }
]
diff --git a/src/scripts/ConstConfig.js b/src/scripts/ConstConfig.js
index 97e7798bc..197f6c4b5 100644
--- a/src/scripts/ConstConfig.js
+++ b/src/scripts/ConstConfig.js
@@ -212,7 +212,8 @@ export default {
ControlConvertMenu: {enlabel: 'Control mode training', label:'控制模式实训'},
LimitControl: {enlabel: 'Control mode limit', label:'全线限速实训'},
TrainWindow: {enlabel: 'TrainWindow training', label:'车次窗实训'},
- Driver:{enlabel: 'Driver training', label:'司机实训'}
+ Driver:{enlabel: 'Driver training', label:'司机实训'},
+ DirectionRod:{enlabel: 'Direction rod training', label:'方向杆实训'}
},
interfaceErrorConfig: {
'500000': { type: '权限错误:', message: '您尚未有该操作权限!'},
diff --git a/src/views/newMap/displayNew/dispatherContest/sceneList.vue b/src/views/newMap/displayNew/dispatherContest/sceneList.vue
index 677990346..9e9e88b22 100644
--- a/src/views/newMap/displayNew/dispatherContest/sceneList.vue
+++ b/src/views/newMap/displayNew/dispatherContest/sceneList.vue
@@ -77,13 +77,16 @@ export default {
mounted() {
getCompetitionPracticalScene({pageSize:100, pageNum:1}).then(res=>{
if (res.data.list && res.data.list.length > 0) {
- res.data.list.forEach(each=>{
+ const list = res.data.list.sort((a, b) => {
+ return parseInt(a.name.replace('场景', '')) - parseInt(b.name.replace('场景', ''));
+ });
+ list.forEach(each=>{
if (each.name == '场景1' || each.name == '场景2' || each.name == '场景3' || each.name == '场景7') {
this.mainSceneData[1].result.push({id:each.id, name:each.name});
} else if (each.name == '场景4') {
this.mainSceneData[0].result.push({id:each.id, name:'场景4'});
- } else if (each.name == '场景5') {
- this.mainSceneData[4].result.push({id:each.id, name:'场景5'});
+ } else if (each.name == '场景5' || each.name == '场景11') {
+ this.mainSceneData[4].result.push({id:each.id, name:each.name});
} else if (each.name == '场景9') {
this.mainSceneData[6].result.push({id:each.id, name:'场景9'});
} else if (each.name == '场景8') {
From 4c00fa1a903c18e23929c986aad139b44c53bfc6 Mon Sep 17 00:00:00 2001
From: zyy <1787816799@qq.com>
Date: Tue, 3 Nov 2020 16:18:15 +0800
Subject: [PATCH 02/43] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=9B=BD=E8=B5=9B?=
=?UTF-8?q?=E8=BF=90=E8=A1=8C=E5=9B=BE=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/jmapNew/theme/race_01/planConvert.js | 4 ++--
src/utils/runPlan.js | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/jmapNew/theme/race_01/planConvert.js b/src/jmapNew/theme/race_01/planConvert.js
index 48b2e1f55..636f13f68 100644
--- a/src/jmapNew/theme/race_01/planConvert.js
+++ b/src/jmapNew/theme/race_01/planConvert.js
@@ -113,7 +113,7 @@ export default {
// pointdata.name = `${service.serviceNumber}${train.directionCode}${train.tripNumber}`;
pointdata.name = `${service.serviceNumber}${train.tripNumber}`;
pointdata.color = '#000' || lineStyle.color;
- pointdata.directionCode = train.directionCode;
+ pointdata.directionCode = train.right ? '2' : '1';
pointdata.coord = [train.stationTimeList[1].secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, train.stationTimeList[1], train.right, false)];
/** 给服务对象添加服务名称和标记点*/
@@ -212,7 +212,7 @@ export default {
const result = serie.markPoint.data.some(ele => ele.name == `(${elem.groupNumber})${elem.serviceNumber}${elem.tripNumber}`);
if (!result) {
serie.markPoint.data.push(createMartPoint({
- directionCode: elem.directionCode,
+ directionCode: elem.right ? '2' : '1',
coord: [parseInt(elem.secondTime), this.getCoordYByElem(stations, kmRangeCoordMap, elem, false)],
name: `(${elem.groupNumber})${elem.serviceNumber}${elem.tripNumber}`,
color: lineStyle.color || '#000'
diff --git a/src/utils/runPlan.js b/src/utils/runPlan.js
index a3e0f9b80..5fea77427 100644
--- a/src/utils/runPlan.js
+++ b/src/utils/runPlan.js
@@ -69,8 +69,8 @@ export function createMarkLineModels(stations, computedYaxis) {
markLineModel.markLine.silent = true;
markLineModel.markLine.data = [];
markLineModel.markLine.lineStyle = { color: '#B0C4DE', width: 0.5 };
- markLineModel.markLine.symbol = 'none';
- markLineModel.elements = []
+ markLineModel.markLine.symbol = 'none';
+ markLineModel.elements = [];
stations.forEach((elem, index) => {
markLineModel.markLine.data.push(
{
From b9f71f75d9f2a72495a7716825c7c359408c1c9a Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Tue, 3 Nov 2020 16:37:47 +0800
Subject: [PATCH 03/43] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=89=A7=E6=9C=AC?=
=?UTF-8?q?=E5=88=A0=E9=99=A4=E5=8A=A8=E4=BD=9C=E6=8E=A5=E5=8F=A3=20?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=89=A7=E6=9C=AC=E7=BC=96=E5=88=B6=E6=A0=B7?=
=?UTF-8?q?=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/script.js | 8 ++++++++
src/jmapNew/theme/haerbin_01/menus/menuButton.vue | 10 +++++++++-
src/views/scriptManage/allScriptRole.vue | 7 +++++--
src/views/scriptManage/getAction.vue | 14 +++++++++++++-
src/views/scriptManage/tipScriptRecord.vue | 8 +++++++-
5 files changed, 42 insertions(+), 5 deletions(-)
diff --git a/src/api/script.js b/src/api/script.js
index dfff747cf..f316ea3d9 100644
--- a/src/api/script.js
+++ b/src/api/script.js
@@ -118,3 +118,11 @@ export function getScriptExport(id) {
method: 'get'
});
}
+
+/** 删除会话动作(新版)*/
+export function deleteScriptAction(group, actionId) {
+ return request({
+ url: `/api/scriptSimulation/${group}/${actionId}/delete`,
+ method: 'delete'
+ });
+}
diff --git a/src/jmapNew/theme/haerbin_01/menus/menuButton.vue b/src/jmapNew/theme/haerbin_01/menus/menuButton.vue
index 4c499bd83..8048deb70 100644
--- a/src/jmapNew/theme/haerbin_01/menus/menuButton.vue
+++ b/src/jmapNew/theme/haerbin_01/menus/menuButton.vue
@@ -152,7 +152,9 @@ export default {
this.oldDevice = this.selectedObj;
break;
case 'StationStand':
- this.handleStandMenu();
+ if (this.$store.state.menuOperation.subType == 'trainSetButton') {
+ this.handleStandMenu();
+ }
break;
case 'DirectionRod':
this.handleDirectionRodMenu();
@@ -432,10 +434,16 @@ export default {
},
handleStandMenu() {
this.clearAllMenuShow();
+ if (this.$store.state.training.prdType === '02') {
+ this.deviceHighLight(this.oldDevice, false);
+ this.deviceHighLight(this.selectedObj, true);
+ this.oldDevice = this.selectedObj;
+ }
this.centralizedStationList = new Array(15).fill({});
this.standParamList.forEach((stand, index) => {
this.centralizedStationList[index] = stand;
});
+
this.tempData = [];
const data = Object.assign(this.selectedObj);
const station = this.$store.getters['map/getDeviceByCode'](this.selectedObj.stationCode);
diff --git a/src/views/scriptManage/allScriptRole.vue b/src/views/scriptManage/allScriptRole.vue
index 0cf6ae66c..f32d3ea3f 100644
--- a/src/views/scriptManage/allScriptRole.vue
+++ b/src/views/scriptManage/allScriptRole.vue
@@ -116,11 +116,14 @@ export default {
.settingBtn{
color: #409eff;
cursor: pointer;
- padding: 5px 10px;
+ padding: 2px 10px;
border-radius: 4px;
+ border: 1px #409eff solid;
}
.hasSetted{
-
+ width: 50px;
+ text-align: center;
+ display: inline-block;
}
From 22192206c465e6ee588e2ab81ff543d33a9581e8 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Tue, 3 Nov 2020 16:39:24 +0800
Subject: [PATCH 04/43] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=A4=B4=E7=A0=81?=
=?UTF-8?q?=E8=BD=A6=E8=B0=83=E6=95=B4=E5=8F=82=E6=95=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../theme/race_01/menus/dialog/trainSetHead.vue | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/jmapNew/theme/race_01/menus/dialog/trainSetHead.vue b/src/jmapNew/theme/race_01/menus/dialog/trainSetHead.vue
index 2104b5fc2..fe8f7c0ca 100644
--- a/src/jmapNew/theme/race_01/menus/dialog/trainSetHead.vue
+++ b/src/jmapNew/theme/race_01/menus/dialog/trainSetHead.vue
@@ -12,14 +12,14 @@
>
车组号
- 服务号
+ 车次号
-
+
{{ messageTip1 }}
@@ -63,7 +63,7 @@ export default {
addModel: {
groupNumber: '',
destinationCode: '',
- serviceNumber: ''
+ tripNumber: ''
},
messageTip1:'',
messageTip2:'',
@@ -110,7 +110,7 @@ export default {
// 如果不是断点激活,则需要对初始值进行初始化
if (!this.dialogShow) {
this.addModel.groupNumber = selected.groupNumber;
- this.addModel.serviceNumber = selected.serviceNumber;
+ this.addModel.tripNumber = selected.tripNumber;
}
this.dialogShow = true;
this.$nextTick(function () {
@@ -125,8 +125,8 @@ export default {
mouseCancelState(this.selected);
},
commit() {
- if (!this.addModel.serviceNumber) {
- this.messageTip1 = '请输入服务号';
+ if (!this.addModel.tripNumber) {
+ this.messageTip1 = '请输入车次号';
return;
}
if (!this.addModel.destinationCode) {
@@ -137,7 +137,7 @@ export default {
const params = {
groupNumber: this.addModel.groupNumber,
destinationCode: this.addModel.destinationCode,
- serviceNumber: this.addModel.serviceNumber
+ tripNumber: this.addModel.tripNumber
};
this.messageTip1 = '';
this.messageTip2 = '';
From 5bf5c3bac341209af6b3317d823447ee828e831e Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Tue, 3 Nov 2020 17:13:49 +0800
Subject: [PATCH 05/43] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/scriptManage/getAction.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/scriptManage/getAction.vue b/src/views/scriptManage/getAction.vue
index 566ed8989..dcdff645e 100644
--- a/src/views/scriptManage/getAction.vue
+++ b/src/views/scriptManage/getAction.vue
@@ -46,7 +46,7 @@
{{ $t('scriptRecord.modifyConversitionButton') }}
确定
取消
- 删除
+ 删除
From 0603e45a0742251b8ce7a661e47b9dc87d13c454 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Tue, 3 Nov 2020 18:23:30 +0800
Subject: [PATCH 06/43] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=A4=B4=E7=A0=81?=
=?UTF-8?q?=E8=BD=A6=E8=B0=83=E6=95=B4=E5=8F=82=E6=95=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../displayNew/scriptDisplay/component/covertOperation.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/newMap/displayNew/scriptDisplay/component/covertOperation.js b/src/views/newMap/displayNew/scriptDisplay/component/covertOperation.js
index 84c4c0ef3..cf9d6903c 100644
--- a/src/views/newMap/displayNew/scriptDisplay/component/covertOperation.js
+++ b/src/views/newMap/displayNew/scriptDisplay/component/covertOperation.js
@@ -188,8 +188,8 @@ export const operateEnum = {
isList:true,
params:[
{
- code:'serviceNumber',
- name:'服务号'
+ code:'tripNumber',
+ name:'车次号'
},
{
code:'destinationCode',
From 6684ffd729c39a6bb485e8e08bf382bad364bada Mon Sep 17 00:00:00 2001
From: zyy <1787816799@qq.com>
Date: Tue, 3 Nov 2020 18:48:02 +0800
Subject: [PATCH 07/43] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=BB=BC=E5=90=88?=
=?UTF-8?q?=E7=9B=91=E6=8E=A7=E6=95=85=E9=9A=9C=E6=B5=81=E7=A8=8B=E6=98=BE?=
=?UTF-8?q?=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../iscs/iscsDraw/icscComponents/line.vue | 18 +++++--
.../stationConfig/canvas/iscsCanvas.vue | 8 +--
.../stationConfig/dialog/malfunction.vue | 54 +++++++++++++++----
.../iscsSystem/stationConfig/dialog/valve.vue | 8 +--
4 files changed, 69 insertions(+), 19 deletions(-)
diff --git a/src/views/iscs/iscsDraw/icscComponents/line.vue b/src/views/iscs/iscsDraw/icscComponents/line.vue
index 3b362403e..a904dbc47 100644
--- a/src/views/iscs/iscsDraw/icscComponents/line.vue
+++ b/src/views/iscs/iscsDraw/icscComponents/line.vue
@@ -135,6 +135,7 @@ export default {
buttonText: '立即创建',
showDeleteButton: false,
field: '',
+ groupMode: null,
form: {
classify:'solid',
code: '',
@@ -230,12 +231,15 @@ export default {
if (this.form.isGradual) {
if (this.form.modelList.length) {
this.$emit('createDataModel', lineModel);
+ this.groupMode && this.$emit('createDataModel', this.groupMode);
this.initPage();
} else {
this.$message.error('渐变列表不能为空');
}
} else {
this.$emit('createDataModel', lineModel);
+ console.log(this.groupMode, '====');
+ this.groupMode && this.$emit('createDataModel', this.groupMode);
this.initPage();
}
} else {
@@ -285,9 +289,17 @@ export default {
},
addChildElement(model) {
this.form.controlCode = model.code;
- const groupMode = this.$iscs.iscsDevice[model.code].model;
- groupMode['lineCode'] = this.form.code;
- this.$emit('createDataModel', groupMode);
+ this.groupMode = JSON.parse(JSON.stringify(this.$iscs.iscsDevice[model.code].model));
+ if (typeof this.groupMode['lineCode'] == 'string') {
+ this.groupMode['lineCode'] = [];
+ }
+ if (!this.groupMode['lineCode']) {
+ this.groupMode['lineCode'] = [this.form.code];
+ } else {
+ if (!this.groupMode['lineCode'].includes(this.form.code)) {
+ this.groupMode['lineCode'].push(this.form.code);
+ }
+ }
},
addModelList() {
const param = {
diff --git a/src/views/iscs/iscsSystem/stationConfig/canvas/iscsCanvas.vue b/src/views/iscs/iscsSystem/stationConfig/canvas/iscsCanvas.vue
index e840d4c04..61465ea86 100644
--- a/src/views/iscs/iscsSystem/stationConfig/canvas/iscsCanvas.vue
+++ b/src/views/iscs/iscsSystem/stationConfig/canvas/iscsCanvas.vue
@@ -152,9 +152,11 @@ export default {
}));
if (model.lineCode) {
// 关联接触网 颜色处理
- arr.push({
- code: model.lineCode,
- strokeColor: model.valve ? '#00FF1E' : '#FF0000'
+ model.lineCode.forEach(item => {
+ arr.push({
+ code: item,
+ strokeColor: model.valve ? '#00FF1E' : '#FF0000'
+ });
});
}
// 改变元素状态
diff --git a/src/views/iscs/iscsSystem/stationConfig/dialog/malfunction.vue b/src/views/iscs/iscsSystem/stationConfig/dialog/malfunction.vue
index 86731a678..a0c69d4ce 100644
--- a/src/views/iscs/iscsSystem/stationConfig/dialog/malfunction.vue
+++ b/src/views/iscs/iscsSystem/stationConfig/dialog/malfunction.vue
@@ -64,7 +64,8 @@ export default {
],
list: {
valve: ['控分', '控合']
- }
+ },
+ farmed: ''
};
},
computed: {
@@ -87,6 +88,7 @@ export default {
commit() {
this.$refs['form'].validate((valid) => {
if (valid) {
+ this.farmed = '';
if (this.formModel.value == 'frame_group') {
this.setMalfunction();
} else {
@@ -155,7 +157,7 @@ export default {
}, time);
},
// 执行操作
- handleModel(model, judge = false) {
+ handleModel(model, judge = true) {
const arr = [];
model.statusList.forEach(item => {
if (item.key == 'valve' && item.value == model.valve) {
@@ -177,9 +179,12 @@ export default {
return device.model;
}));
if (model.lineCode) {
- arr.push({
- code: model.lineCode,
- strokeColor: model.valve ? '#00FF1E' : '#FF0000'
+ // 关联接触网 颜色处理
+ model.lineCode.forEach(item => {
+ arr.push({
+ code: item,
+ strokeColor: model.valve ? '#00FF1E' : '#FF0000'
+ });
});
}
// 改变元素状态
@@ -199,7 +204,7 @@ export default {
// 报警时间 开关
if (judge) {
const params = {
- name: model.name,
+ name: model.name + this.farmed,
times: this.filterTime(),
station: this.$route.query.stationName,
key: 'valve',
@@ -243,6 +248,7 @@ export default {
this.$iscs.iscsDevice['group_43'].model['valve'] = true;
this.$iscs.iscsDevice['group_47'].model['valve'] = true;
this.$iscs.iscsDevice['group_48'].model['valve'] = true;
+ this.farmed = '';
this.handleModel(this.$iscs.iscsDevice['group_11'].model);
const promise1 = new Promise((resolve) => {
@@ -305,11 +311,39 @@ export default {
]);
Promise.all([promise1, promise2]).then(() => {
this.$message.success('105/106/201/202/211/212/213/214开关因为框架电流保护动作跳闸,分位');
- const params = {
- name: '框架电流保护动作跳闸',
+ this.handleAlarm();
+ });
+ },
+ handleAlarm() {
+ const list = [
+ {
+ name: '211断路器',
times: this.filterTime(),
- station: this.$route.query.stationName,
- key: 'frame'
+ station: '象峰站'
+ },
+ {
+ name: '212断路器',
+ times: this.filterTime(),
+ station: '象峰站'
+ },
+ {
+ name: '211断路器',
+ times: this.filterTime(),
+ station: '树兜站'
+ },
+ {
+ name: '212断路器',
+ times: this.filterTime(),
+ station: '树兜站'
+ }
+ ];
+ list.forEach(item => {
+ const params = {
+ name: item.name,
+ times: item.times,
+ station: item.station,
+ key: 'valve',
+ valve: true
};
this.$store.dispatch('iscs/setAddAlarmList', params); // 报警
this.$store.dispatch('iscs/setAddIncidentList', params); // 事件
diff --git a/src/views/iscs/iscsSystem/stationConfig/dialog/valve.vue b/src/views/iscs/iscsSystem/stationConfig/dialog/valve.vue
index bb0578aa8..808c454fd 100644
--- a/src/views/iscs/iscsSystem/stationConfig/dialog/valve.vue
+++ b/src/views/iscs/iscsSystem/stationConfig/dialog/valve.vue
@@ -238,9 +238,11 @@ export default {
}));
if (model.lineCode) {
// 关联接触网 颜色处理
- arr.push({
- code: model.lineCode,
- strokeColor: model.valve ? '#00FF1E' : '#FF0000'
+ model.lineCode.forEach(item => {
+ arr.push({
+ code: item,
+ strokeColor: model.valve ? '#00FF1E' : '#FF0000'
+ });
});
}
// 改变元素状态
From a1be6dbfb9a5bae6f46ed09fe068cc4f39b026d3 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Tue, 3 Nov 2020 18:52:33 +0800
Subject: [PATCH 08/43] =?UTF-8?q?=E6=9A=82=E6=8F=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/scripts/ConstConfig.js | 3 ++-
src/views/newMap/chatView/chatBox.vue | 1 +
.../displayNew/scriptDisplay/scriptRecord/index.vue | 2 +-
src/views/scriptManage/tipScriptRecord.vue | 10 ++++++++++
4 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/src/scripts/ConstConfig.js b/src/scripts/ConstConfig.js
index 197f6c4b5..c76ef2c24 100644
--- a/src/scripts/ConstConfig.js
+++ b/src/scripts/ConstConfig.js
@@ -97,7 +97,8 @@ export default {
{label: '车辆段调度', value: 'DEPOT_DISPATCHER', enLabel: 'Depot dispatcher '},
{label: '电力调度', value: 'ELECTRIC_DISPATCHER', enLabel: 'Electric dispatcher'},
{label: '行调', value: 'DISPATCHER', enLabel: 'Dispatcher '},
- {label: '上级部门', value: 'PARENT_DEPARTMENT', enLabel: 'Parent department'}
+ {label: '上级部门', value: 'PARENT_DEPARTMENT', enLabel: 'Parent department'},
+ {label: '停车场信号楼', value: 'PARKING_LOT_SIGNAL_BUILDING', enLabel: 'Parking Signal Building'}
],
SimulationType: [
diff --git a/src/views/newMap/chatView/chatBox.vue b/src/views/newMap/chatView/chatBox.vue
index e792a0945..757db63f6 100644
--- a/src/views/newMap/chatView/chatBox.vue
+++ b/src/views/newMap/chatView/chatBox.vue
@@ -406,6 +406,7 @@ export default {
this.memberData[item.id].label = '上级部门' + (item.name || '');
this.memberData[item.id].labelName = '上级部门' + (item.name || '');
parentDepartmentList[item.id] = this.memberData[item.id];
+ // case ''
}
});
// { label: '全部集中站', value: 'allConcentrateStation', active: false, sign: 'DEVICE_STATION' },
diff --git a/src/views/newMap/displayNew/scriptDisplay/scriptRecord/index.vue b/src/views/newMap/displayNew/scriptDisplay/scriptRecord/index.vue
index 733773e31..35c504996 100644
--- a/src/views/newMap/displayNew/scriptDisplay/scriptRecord/index.vue
+++ b/src/views/newMap/displayNew/scriptDisplay/scriptRecord/index.vue
@@ -133,7 +133,7 @@ export default {
return mem.userId != '' && mem.userId != undefined;
});
if (member) {
- const memberType = ['STATION_SUPERVISOR', 'DISPATCHER', 'DRIVER', 'MAINTAINER', 'DEPOT_DISPATCHER', 'PARENT_DEPARTMENT', 'ELECTRIC_DISPATCHER'];
+ const memberType = ['STATION_SUPERVISOR', 'DISPATCHER', 'DRIVER', 'MAINTAINER', 'DEPOT_DISPATCHER', 'PARENT_DEPARTMENT', 'ELECTRIC_DISPATCHER', 'PARKING_LOT_SIGNAL_BUILDING'];
const prdTypeList = ['01', '02', '04', '', '05', '', ''];
const index = memberType.indexOf(member.type);
let prdType;
diff --git a/src/views/scriptManage/tipScriptRecord.vue b/src/views/scriptManage/tipScriptRecord.vue
index b8adeb897..c9a077c92 100644
--- a/src/views/scriptManage/tipScriptRecord.vue
+++ b/src/views/scriptManage/tipScriptRecord.vue
@@ -192,6 +192,12 @@ export default {
id: 'electricDispatcher',
type: 'role',
children: result.deviceListData[6]
+ },
+ {
+ label: '停车场信号楼',
+ id: 'parkingLotSignalBuilding',
+ type: 'role',
+ children: result.deviceListData[7]
}
// PARENT_DEPARTMENT
];
@@ -465,6 +471,10 @@ export default {
prdType = '';
role.type = 'ELECTRIC_DISPATCHER';
this.$store.dispatch('training/setRoles', 'ELECTRIC_DISPATCHER');
+ } else if (role.type == '停车场信号楼') {
+ prdType = '';
+ role.type = 'PARKING_LOT_SIGNAL_BUILDING';
+ this.$store.dispatch('training/setRoles', 'PARKING_LOT_SIGNAL_BUILDING');
} else {
prdType = '';
}
From 9aeb3d295cd6a44a79728495a47e1bd2d9f6fab0 Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Tue, 3 Nov 2020 19:02:02 +0800
Subject: [PATCH 09/43] =?UTF-8?q?=E5=89=A7=E6=9C=AC=E4=BB=A3=E7=A0=81?=
=?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/newMap/chatView/chatBox.vue | 49 +++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/src/views/newMap/chatView/chatBox.vue b/src/views/newMap/chatView/chatBox.vue
index e792a0945..0f125904b 100644
--- a/src/views/newMap/chatView/chatBox.vue
+++ b/src/views/newMap/chatView/chatBox.vue
@@ -478,6 +478,55 @@ export default {
},
'$store.state.scriptRecord.audioPlay':function(val) {
this.audioPlay = val;
+ },
+ '$store.state.scriptRecord.updateRoleId':function(val) {
+ // val
+ if (this.conversitionStateMap[val]) {
+ this.treeData.forEach(item => {
+ if (item.children) {
+ const memberList = Object.values(item.children);
+ memberList.forEach(data =>{
+ const member = this.conversitionStateMap[val];
+ // && privateMem.connect;
+ const memberInfo = member.privateMemberList.find(privateMem=>{ return privateMem.memberId == data.id; });
+ // member.connect
+ if (member && data.id != val && memberInfo) {
+ data.isConnect = true;
+ data.active = true;
+ this.connectSuccess = true;
+ } else {
+ data.active = false;
+ data.isConnect = false;
+ this.connectSuccess = false;
+ }
+ data.loading = false;
+ data.disabled = false;
+ data.isInviting = false;
+ });
+ }
+ });
+ if (!this.connect) {
+ this.memberIdList = [];
+ this.memberObject = '';
+ }
+ } else {
+ this.memberIdList = [];
+ this.memberObject = '';
+ this.connectSuccess = false;
+ this.treeData.forEach(item => {
+ if (item.children) {
+ const memberList = Object.values(item.children);
+ memberList.forEach(data =>{
+ data.active = false;
+ data.isConnect = false;
+ data.loading = false;
+ data.disabled = false;
+ data.isInviting = false;
+ });
+ }
+ });
+ }
+
}
},
beforeDestroy() {
From b312371a640603de8368bae9e17c3ebd033494b9 Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Wed, 4 Nov 2020 09:19:13 +0800
Subject: [PATCH 10/43] =?UTF-8?q?=E7=BB=98=E5=9B=BE---=E8=BD=A6=E7=AB=99--?=
=?UTF-8?q?-=E6=8C=89=E5=9B=BE=E6=8A=98=E8=BF=94=E5=AD=97=E6=AE=B5?=
=?UTF-8?q?=E5=88=A0=E9=99=A4=20=E7=BB=98=E5=9B=BE---=E5=8C=BA=E6=AE=B5---?=
=?UTF-8?q?=E5=85=AC=E9=87=8C=E6=A0=87=E5=AD=97=E6=AE=B5=E5=88=A0=E9=99=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/newMap/newMapdraft/mapoperate/models.js | 8 ++++----
.../newMap/newMapdraft/mapoperate/section/index.vue | 6 +++---
src/views/newMap/newMapdraft/mapoperate/station.vue | 10 +++++-----
3 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/src/views/newMap/newMapdraft/mapoperate/models.js b/src/views/newMap/newMapdraft/mapoperate/models.js
index da00299ca..bd6b9a4d0 100644
--- a/src/views/newMap/newMapdraft/mapoperate/models.js
+++ b/src/views/newMap/newMapdraft/mapoperate/models.js
@@ -15,8 +15,8 @@ class Model {
this.destinationCode = ''; // 目的地码
this.destinationCodePoint = { x: 0, y: 0 }; // 目的地码坐标
this.namePosition = { x: 0, y: 0 };
- this.kmRangeRight = 0;
- this.kmRangeLeft = 0;
+ // this.kmRangeRight = 0;
+ // this.kmRangeLeft = 0;
this.region = '';
this.logicSectionCodeList = [];
this.logicSectionShow = false; // 是否显示逻辑区段
@@ -135,8 +135,8 @@ class Model {
this.position = { x: 0, y: 0 };
this.kilometerPosition = { x: 0, y: 0 }; // 公里标偏移坐标
this.createControlMode = false;
- this.createTurnBack = false;
- this.turnBackPoint = {x: 0, y: 0}; // 按图折返坐标
+ // this.createTurnBack = false;
+ // this.turnBackPoint = {x: 0, y: 0}; // 按图折返坐标
this.controlModePoint = { x: 0, y: 0 }; // 控制模式坐标
}
StationStandModel() {
diff --git a/src/views/newMap/newMapdraft/mapoperate/section/index.vue b/src/views/newMap/newMapdraft/mapoperate/section/index.vue
index c5915e111..2315198ea 100644
--- a/src/views/newMap/newMapdraft/mapoperate/section/index.vue
+++ b/src/views/newMap/newMapdraft/mapoperate/section/index.vue
@@ -203,9 +203,9 @@ export default {
{ prop: 'leftStopPointOffset', label: this.$t('map.leftStopPointOffset'), type: 'number', min: 0, max: this.maxLengthFact, isHidden: !this.isStopPointOffset }, // 左向停车点偏移量
{ prop: 'rightStopPointOffset', label: this.$t('map.rightStopPointOffset'), type: 'number', min: 0, max: this.maxLengthFact, isHidden: !this.isStopPointOffset }, // 右向停车点偏移量
{ prop: 'region', label: this.$t('map.sectionColon'), type: 'select', optionLabel: 'label', optionValue: 'value', options: this.regionList, isHidden: !this.sectionColonShow },
- { prop: 'trainWindowCode', label: '关联车次窗', type: 'input', disabled: true, isHidden: !this.isSwitchSectionShow },
- { prop: 'kmRangeLeft', label: this.$t('map.leftKilometerMark'), type: 'number', min: 0, placeholder: this.$t('map.meter') },
- { prop: 'kmRangeRight', label: this.$t('map.rightKilometerMark'), type: 'number', min: 0, placeholder: this.$t('map.meter') }
+ { prop: 'trainWindowCode', label: '关联车次窗', type: 'input', disabled: true, isHidden: !this.isSwitchSectionShow }
+ // { prop: 'kmRangeLeft', label: this.$t('map.leftKilometerMark'), type: 'number', min: 0, placeholder: this.$t('map.meter') },
+ // { prop: 'kmRangeRight', label: this.$t('map.rightKilometerMark'), type: 'number', min: 0, placeholder: this.$t('map.meter') }
]
}
}
diff --git a/src/views/newMap/newMapdraft/mapoperate/station.vue b/src/views/newMap/newMapdraft/mapoperate/station.vue
index 2f86c8252..ba2741374 100644
--- a/src/views/newMap/newMapdraft/mapoperate/station.vue
+++ b/src/views/newMap/newMapdraft/mapoperate/station.vue
@@ -198,12 +198,12 @@ export default {
{ prop: 'controlModePoint', label: this.$t('map.stationControlPosition'), type: 'coordinate', width: '120px', isHidden:!this.editModel.createControlMode, children: [
{ prop: 'controlModePoint.x', firstLevel: 'controlModePoint', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '25px'},
{ prop: 'controlModePoint.y', firstLevel: 'controlModePoint', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '25px'}
- ] },
- { prop: 'createTurnBack', label: '按图折返:', type: 'checkbox' },
- { prop: 'turnBackPoint', label: '按图折返坐标:', type: 'coordinate', width: '120px', isHidden: !this.isPointsShow, children: [
- { prop: 'turnBackPoint.x', firstLevel: 'turnBackPoint', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '25px' },
- { prop: 'turnBackPoint.y', firstLevel: 'turnBackPoint', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '25px' }
] }
+ // { prop: 'createTurnBack', label: '按图折返:', type: 'checkbox' },
+ // { prop: 'turnBackPoint', label: '按图折返坐标:', type: 'coordinate', width: '120px', isHidden: !this.isPointsShow, children: [
+ // { prop: 'turnBackPoint.x', firstLevel: 'turnBackPoint', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '25px' },
+ // { prop: 'turnBackPoint.y', firstLevel: 'turnBackPoint', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '25px' }
+ // ] }
]
},
map: {
From 55dda9ca10f83a7cf66f3578a97288aa7297a7bd Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Wed, 4 Nov 2020 09:26:22 +0800
Subject: [PATCH 11/43] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=81=9C=E8=BD=A6?=
=?UTF-8?q?=E5=9C=BA=E4=BF=A1=E5=8F=B7=E6=A5=BC=E8=A7=92=E8=89=B2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/newMap/chatView/chatBox.vue | 14 ++++++++++++--
.../displayNew/dispatherContest/sceneList.vue | 3 +++
.../scriptPreview/scriptButtonGroup.vue | 6 ++++++
src/views/newMap/displayNew/utils.js | 4 ++--
src/views/scriptManage/tipScriptRecord.vue | 5 +++--
5 files changed, 26 insertions(+), 6 deletions(-)
diff --git a/src/views/newMap/chatView/chatBox.vue b/src/views/newMap/chatView/chatBox.vue
index 757db63f6..7f40cb1de 100644
--- a/src/views/newMap/chatView/chatBox.vue
+++ b/src/views/newMap/chatView/chatBox.vue
@@ -363,6 +363,7 @@ export default {
const driverList = {};
const maintainerList = {};
const parentDepartmentList = {};
+ const parkingLotSignalBuilding = {};
val.forEach(item => {
const device = this.$store.getters['map/getDeviceByCode'](item.deviceCode);
this.memberData[item.id]['active'] = false;
@@ -399,14 +400,18 @@ export default {
case 'MAINTAINER':
this.memberData[item.id].label = '通号' + (item.name || '');
this.memberData[item.id].labelName = '通号' + (item.name || '');
- // this.memberData[item.id].label = item.name || '';
maintainerList[item.id] = this.memberData[item.id];
break;
case 'PARENT_DEPARTMENT':
this.memberData[item.id].label = '上级部门' + (item.name || '');
this.memberData[item.id].labelName = '上级部门' + (item.name || '');
parentDepartmentList[item.id] = this.memberData[item.id];
- // case ''
+ break;
+ case 'PARKING_LOT_SIGNAL_BUILDING':
+ this.memberData[item.id].label = '停车场信号机' + (item.name || '');
+ this.memberData[item.id].labelName = '停车场信号机' + (item.name || '');
+ parkingLotSignalBuilding[item.id] = this.memberData[item.id];
+ break;
}
});
// { label: '全部集中站', value: 'allConcentrateStation', active: false, sign: 'DEVICE_STATION' },
@@ -447,6 +452,11 @@ export default {
id: 'electricDispatcher',
type: 'role',
children: electricDispatcherList
+ }, {
+ label: '停车场信号楼',
+ id: 'parkingLotSignalBuilding',
+ type: 'role',
+ children: parkingLotSignalBuilding
}];
this.initCommonMemberList();
this.filterNode();
diff --git a/src/views/newMap/displayNew/dispatherContest/sceneList.vue b/src/views/newMap/displayNew/dispatherContest/sceneList.vue
index 9e9e88b22..8212872df 100644
--- a/src/views/newMap/displayNew/dispatherContest/sceneList.vue
+++ b/src/views/newMap/displayNew/dispatherContest/sceneList.vue
@@ -177,6 +177,9 @@ export default {
member.label = '电力调度' + (member.name ? member.name : '');
break;
}
+ case 'PARKING_LOT_SIGNAL_BUILDING': {
+ member.label = '停车场信号机' + (member.name ? member.name : '');
+ }
}
// if (member.type === 'DISPATCHER') {
// this.memberId = member.id;
diff --git a/src/views/newMap/displayNew/scriptDisplay/scriptPreview/scriptButtonGroup.vue b/src/views/newMap/displayNew/scriptDisplay/scriptPreview/scriptButtonGroup.vue
index 8e0669a54..90068e9ad 100644
--- a/src/views/newMap/displayNew/scriptDisplay/scriptPreview/scriptButtonGroup.vue
+++ b/src/views/newMap/displayNew/scriptDisplay/scriptPreview/scriptButtonGroup.vue
@@ -228,6 +228,12 @@ export default {
id: 'electricDispatcher',
type: 'role',
children: result.deviceListData[6]
+ },
+ {
+ label: '停车场信号楼',
+ id: 'parkingLotSignalBuilding',
+ type: 'role',
+ children: result.deviceListData[7]
}];
const lastMemberList = result.lastMemberList;
this.$emit('setTreeData', treeData);
diff --git a/src/views/newMap/displayNew/utils.js b/src/views/newMap/displayNew/utils.js
index 08fd61ee4..83a6b9966 100644
--- a/src/views/newMap/displayNew/utils.js
+++ b/src/views/newMap/displayNew/utils.js
@@ -15,7 +15,7 @@ export function covertMemberData (activeTrainList, resp) {
lastData = JSON.parse(lastData);
const lastMemberList = [];
// const electricDispatcherList = [];
- const deviceListData = [[], [], [], [], [], [], []];
+ const deviceListData = [[], [], [], [], [], [], [], []];
const driverList = [];
lastData.forEach((member, index)=>{
if (member.userId && member.userId == store.state.user.id) {
@@ -37,7 +37,7 @@ export function covertMemberData (activeTrainList, resp) {
member.label = member.type + name + userName;
member.normalName = member.type + name;
}
- const deviceType = ['行调', '通号', '行值', '司机', '车辆段调度', '上级部门', '电力调度'];
+ const deviceType = ['行调', '通号', '行值', '司机', '车辆段调度', '上级部门', '电力调度', '停车场信号楼'];
const deviceTypeIndex = deviceType.indexOf(member.type);
if (deviceTypeIndex >= 0) {
if (deviceTypeIndex == 3) {
diff --git a/src/views/scriptManage/tipScriptRecord.vue b/src/views/scriptManage/tipScriptRecord.vue
index c9a077c92..e7113041f 100644
--- a/src/views/scriptManage/tipScriptRecord.vue
+++ b/src/views/scriptManage/tipScriptRecord.vue
@@ -256,7 +256,7 @@ export default {
const covertmember = this.covert(lastData, ConstConfig.ConstSelect.roleTypeNew);
const newMember = covertmember[0];
this.memberList.push(newMember);
- const deviceTypeList = ['行调', '行值', '司机', '通号', '车辆段调度', '上级部门', '电力调度'];
+ const deviceTypeList = ['行调', '行值', '司机', '通号', '车辆段调度', '上级部门', '电力调度', '停车场信号楼'];
const index = deviceTypeList.indexOf(newMember.type);
if (index >= 0) {
const treeDataIn = this.treeData[index];
@@ -502,7 +502,8 @@ export default {
'MAINTAINER':'通号',
'DEPOT_DISPATCHER':'车辆段调度',
'PARENT_DEPARTMENT':'上级部门',
- 'ELECTRIC_DISPATCHER':'电力调度'
+ 'ELECTRIC_DISPATCHER':'电力调度',
+ 'PARKING_LOT_SIGNAL_BUILDING':'停车场信号楼'
};
newRole.type = roleTypeEnumMap[newRole.type];
this.quickChangeMember.list.push(newRole);
From 109511d02bd8db3eef6e66b51796c8125c4b8e93 Mon Sep 17 00:00:00 2001
From: zyy <1787816799@qq.com>
Date: Wed, 4 Nov 2020 10:14:54 +0800
Subject: [PATCH 12/43] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8A=A5=E8=AD=A6?=
=?UTF-8?q?=E7=AA=97=E5=8F=A3=E6=A0=B7=E5=BC=8F=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../iscsSystem/stationConfig/dialog/alarm.vue | 79 +++++++++++++++----
src/views/iscs/iscsSystem/stationNav.vue | 11 +--
2 files changed, 70 insertions(+), 20 deletions(-)
diff --git a/src/views/iscs/iscsSystem/stationConfig/dialog/alarm.vue b/src/views/iscs/iscsSystem/stationConfig/dialog/alarm.vue
index 5c2beb188..65713ca5a 100644
--- a/src/views/iscs/iscsSystem/stationConfig/dialog/alarm.vue
+++ b/src/views/iscs/iscsSystem/stationConfig/dialog/alarm.vue
@@ -1,6 +1,10 @@
-
-
+
+
+
-
-
- 确定
-
-
-
+
+
+
+
{{ item.station }} {{ item.name }}
+
{{ item.station }} {{ item.name }} 执行了 {{ item[item.key] ? 'XX保护动作' : '' }} {{ item[item.key] ? list[item.key][0] : list[item.key][1] }}操作
+
+
+
+
+ 确定
+
+
+
+
+
@@ -65,5 +78,41 @@ export default {
diff --git a/src/views/iscs/iscsSystem/stationNav.vue b/src/views/iscs/iscsSystem/stationNav.vue
index 9e6fc95f7..898f7d5be 100644
--- a/src/views/iscs/iscsSystem/stationNav.vue
+++ b/src/views/iscs/iscsSystem/stationNav.vue
@@ -57,9 +57,10 @@
返回
-
+
+
报警
-
+
事件
故障设置
@@ -410,9 +411,9 @@ export default {
},
// 获取报警信息
handleAlarmInfo() {
- if (!this.alarmInfo) {
- this.$refs.alarmConfig.doShow();
- }
+ // if (!this.alarmInfo) {
+ this.$refs.alarmConfig.doShow();
+ // }
},
// 设置故障
handleMalfunction() {
From 8158eb77734b2cdd2a8154993b5a1d3877567a23 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Wed, 4 Nov 2020 10:18:29 +0800
Subject: [PATCH 13/43] =?UTF-8?q?=E5=89=A7=E6=9C=AC=E6=9D=A1=E4=BB=B6?=
=?UTF-8?q?=E6=9A=82=E6=8F=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/script.js | 8 +++
src/views/scriptManage/conditionManage.vue | 70 ++++++++++++++++++++++
src/views/scriptManage/getAction.vue | 4 ++
3 files changed, 82 insertions(+)
create mode 100644 src/views/scriptManage/conditionManage.vue
diff --git a/src/api/script.js b/src/api/script.js
index f316ea3d9..326131774 100644
--- a/src/api/script.js
+++ b/src/api/script.js
@@ -126,3 +126,11 @@ export function deleteScriptAction(group, actionId) {
method: 'delete'
});
}
+/** 修改剧本活动条件 */
+export function updateActionCondition(group, actionId, data) {
+ return request({
+ url: `/api/scriptSimulation/${group}/${actionId}/updateCondition`,
+ method: 'put',
+ data
+ });
+}
diff --git a/src/views/scriptManage/conditionManage.vue b/src/views/scriptManage/conditionManage.vue
new file mode 100644
index 000000000..b05d0754f
--- /dev/null
+++ b/src/views/scriptManage/conditionManage.vue
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/scriptManage/getAction.vue b/src/views/scriptManage/getAction.vue
index dcdff645e..afce8c0e2 100644
--- a/src/views/scriptManage/getAction.vue
+++ b/src/views/scriptManage/getAction.vue
@@ -43,6 +43,7 @@
+ 触发条件
{{ $t('scriptRecord.modifyConversitionButton') }}
确定
取消
@@ -107,6 +108,9 @@ export default {
methods: {
loadInitData() {
this.loadOtherData(this.$route.query);
+ },
+ handleCondition(actionId) {
+
},
covertData(memberList, element) {
const member = memberList.find(elem=>{ return elem.id == element.memberId; });
From 0f3c1e9ab88126889efdda32f9397683e7f390ad Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Wed, 4 Nov 2020 10:46:55 +0800
Subject: [PATCH 14/43] =?UTF-8?q?=E8=BF=90=E8=A1=8C=E5=9B=BE=E4=BB=A3?=
=?UTF-8?q?=E7=A0=81=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/planMonitor/editTool/menus/addTask.vue | 14 ++++++++++----
src/views/planMonitor/editTool/schedule.vue | 7 ++++++-
2 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/src/views/planMonitor/editTool/menus/addTask.vue b/src/views/planMonitor/editTool/menus/addTask.vue
index b0a4fd131..4d4d2ba41 100644
--- a/src/views/planMonitor/editTool/menus/addTask.vue
+++ b/src/views/planMonitor/editTool/menus/addTask.vue
@@ -133,14 +133,14 @@
-
+
{{ scope.row.speedLevel }}
-
+
@@ -387,8 +387,14 @@ export default {
},
handleClick(row, column, event) {
const arriveConfigList = [];
- row.parkSectionCodeList.forEach(parkSectionCode=>{
- arriveConfigList.push({arriveTime:'', departureTime:'', sectionCode:parkSectionCode.sectionCode, stationCode:parkSectionCode.stationCode});
+ row.parkSectionCodeList.forEach((parkSectionCode, index)=>{
+ // const length = row.parkSectionCodeList.length - 1;
+ // if ((index == 0 && parkSectionCode.stationCode == row.parkSectionCodeList[1].stationCode) ||
+ // (index == length && parkSectionCode.stationCode == row.parkSectionCodeList[length].stationCode)) {
+ // arriveConfigList.push({arriveTime:'', departureTime:'', sectionCode:parkSectionCode.sectionCode, stationCode:parkSectionCode.stationCode, isDisabled:true});
+ // } else {
+ arriveConfigList.push({arriveTime:'', departureTime:'', sectionCode:parkSectionCode.sectionCode, stationCode:parkSectionCode.stationCode, isDisabled:false});
+ // }
});
this.$set(this.addModel, 'arriveConfigList', arriveConfigList);
this.addModel.startStationCode = row.startStationCode;
diff --git a/src/views/planMonitor/editTool/schedule.vue b/src/views/planMonitor/editTool/schedule.vue
index f23d41005..8503c7cd1 100644
--- a/src/views/planMonitor/editTool/schedule.vue
+++ b/src/views/planMonitor/editTool/schedule.vue
@@ -293,9 +293,11 @@ export default {
const op = this.myChart.getOption();
op.series.forEach((item, index) => {
item.lineStyle.color = '#000';
+ item.lineStyle.width = 0.5;
switch (item.name) {
case serviceNumber: {
item.lineStyle.color = 'red';
+ item.lineStyle.width = 1;
break;
}
case 'trainLabel': {
@@ -327,6 +329,8 @@ export default {
data.push(nor);
}
});
+ // item.lineStyle.color = '#000';
+ item.lineStyle.width = 0.5;
break;
}
case 'trainLabel': {
@@ -339,7 +343,8 @@ export default {
op.series.push({
name: 'trainLabel',
lineStyle: {
- color: 'green'
+ color: 'green',
+ width:2
},
type: 'line',
data: data
From 7c9f69e5d858d78dfee0d6d17c5db974712a1db8 Mon Sep 17 00:00:00 2001
From: zyy <1787816799@qq.com>
Date: Wed, 4 Nov 2020 13:21:02 +0800
Subject: [PATCH 15/43] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8A=A5=E9=94=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/iscs/shape/group.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/iscs/shape/group.js b/src/iscs/shape/group.js
index 984be25f6..f7413cfad 100644
--- a/src/iscs/shape/group.js
+++ b/src/iscs/shape/group.js
@@ -21,7 +21,7 @@ export default class rect extends Group {
create() {
let rect = null;
for (const key in this.model.elemMap) {
- if (Vue.prototype.$iscs.iscsDevice[key].instance) {
+ if (Vue.prototype.$iscs.iscsDevice[key] && Vue.prototype.$iscs.iscsDevice[key].instance) {
if (!rect) {
rect = Vue.prototype.$iscs.iscsDevice[key].instance.getBoundingRect();
} else {
From 872a71c7b566b9db54b0e0c0dcaa3ced279cdceb Mon Sep 17 00:00:00 2001
From: lVAL
Date: Wed, 4 Nov 2020 14:42:48 +0800
Subject: [PATCH 16/43] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E6=9B=BF=E6=8D=A2?=
=?UTF-8?q?=E8=83=8C=E6=99=AF=E7=9A=84=E6=93=8D=E4=BD=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/simulation.js | 24 +++++
src/i18n/langs/en/scriptRecord.js | 7 +-
src/i18n/langs/zh/scriptRecord.js | 6 +-
src/utils/baseUrl.js | 2 +-
src/views/newMap/chatView/chatBox.vue | 34 +++++++-
.../scriptDisplay/scriptRecord/index.vue | 17 ++--
src/views/scriptManage/tipScriptRecord.vue | 87 +++++++++++++++----
7 files changed, 152 insertions(+), 25 deletions(-)
diff --git a/src/api/simulation.js b/src/api/simulation.js
index c6efd75d2..bb59c7f2a 100644
--- a/src/api/simulation.js
+++ b/src/api/simulation.js
@@ -147,6 +147,30 @@ export function modifyScriptActionNew(group, data) {
});
}
+/** 开始替换 */
+export function startReplaceBg(group) {
+ return request({
+ url: `/api/scriptSimulation/${group}/replace/start`,
+ method: 'put'
+ });
+}
+
+/** 确认替换 */
+export function confirmReplaceBg(group) {
+ return request({
+ url: `/api/scriptSimulation/${group}/replace/confirm`,
+ method: 'put'
+ });
+}
+
+/** 放弃替换 */
+export function cancelReplaceBg(group) {
+ return request({
+ url: `/api/scriptSimulation/${group}/replace/cancel`,
+ method: 'put'
+ });
+}
+
/** 分页查询存在的仿真 */
export function getExistingSimulation(params) {
return request({
diff --git a/src/i18n/langs/en/scriptRecord.js b/src/i18n/langs/en/scriptRecord.js
index 8e7618762..6751f9f16 100644
--- a/src/i18n/langs/en/scriptRecord.js
+++ b/src/i18n/langs/en/scriptRecord.js
@@ -109,5 +109,10 @@ export default {
revokeScriptTip: 'This action will undo release script, whether to continue?',
inputScriptName: 'Please input script name',
selectMap: 'Please select map',
- inputScriptDescription: 'Please input script description'
+ inputScriptDescription: 'Please input script description',
+
+
+ startReplaceBg: '替换背景',
+ confirmReplaceBg: '确认替换',
+ cancelReplaceBg: '放弃替换'
};
diff --git a/src/i18n/langs/zh/scriptRecord.js b/src/i18n/langs/zh/scriptRecord.js
index d6a29074d..34edb58f5 100644
--- a/src/i18n/langs/zh/scriptRecord.js
+++ b/src/i18n/langs/zh/scriptRecord.js
@@ -110,5 +110,9 @@ export default {
revokeScriptTip: '此操作将撤销发布剧本申请, 是否继续?',
inputScriptName: '请输入剧本名称',
selectMap: '请选择地图',
- inputScriptDescription: '请输入剧本描述'
+ inputScriptDescription: '请输入剧本描述',
+
+ startReplaceBg: '替换背景',
+ confirmReplaceBg: '确认替换',
+ cancelReplaceBg: '放弃替换'
};
diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js
index 89ce9ee58..165ac701e 100644
--- a/src/utils/baseUrl.js
+++ b/src/utils/baseUrl.js
@@ -5,7 +5,7 @@ export function getBaseUrl() {
BASE_API = 'https://test.joylink.club/jlcloud';
// BASE_API = 'http://192.168.8.107:9000'; // 袁琪
// BASE_API = 'http://192.168.8.114:9000'; // 旭强
- // BASE_API = 'http://192.168.3.175:9000'; // 张赛
+ BASE_API = 'http://192.168.8.109:9000'; // 张赛
// BASE_API = 'http://192.168.8.110:9000'; // 杜康
// BASE_API = 'http://b29z135112.zicp.vip';
// BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康
diff --git a/src/views/newMap/chatView/chatBox.vue b/src/views/newMap/chatView/chatBox.vue
index 4663ce5c7..dcb163285 100644
--- a/src/views/newMap/chatView/chatBox.vue
+++ b/src/views/newMap/chatView/chatBox.vue
@@ -138,6 +138,7 @@
+
@@ -166,7 +167,11 @@ export default {
userRole: {
type: String,
required: true
- }
+ },
+ isReplaceBg: {
+ type: Boolean,
+ default: false
+ }
},
data() {
return {
@@ -217,7 +222,10 @@ export default {
},
IsAnswering() {
return !(this.$route.path.includes('refereeJsxtDisplay'));
- },
+ },
+ maskShow() {
+ return this.isReplaceBg;
+ },
userId() {
return this.$store.state.user.id;
},
@@ -1309,6 +1317,28 @@ export default {
-webkit-animation: isInviting infinite 1s; /* Safari 和 Chrome */
-o-animation: isInviting infinite 1s; /* Opera */
}
+
+.mask {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ background: #000;
+ opacity: 0.7;
+ z-index: 2000;
+ &::before{
+ content: '';
+ position: absolute;
+ top:0;
+ right:0;
+ bottom:0;
+ left:0;
+ background: #aaa;
+ filter: blur(20px);
+ }
+}
+
#teleName{
background: #6BBE16;
position: absolute;
diff --git a/src/views/newMap/displayNew/scriptDisplay/scriptRecord/index.vue b/src/views/newMap/displayNew/scriptDisplay/scriptRecord/index.vue
index 35c504996..08ce72a83 100644
--- a/src/views/newMap/displayNew/scriptDisplay/scriptRecord/index.vue
+++ b/src/views/newMap/displayNew/scriptDisplay/scriptRecord/index.vue
@@ -2,9 +2,9 @@
- {{ $t('scriptRecord.drivingByPlan') }}
- 初始化
- {{ $t('scriptRecord.scriptBack') }}
+ {{ $t('scriptRecord.drivingByPlan') }}
+ 初始化
+ {{ $t('scriptRecord.scriptBack') }}
@@ -96,7 +99,8 @@ export default {
data() {
return {
isDisable: false,
- isScriptCommand:false,
+ isScriptCommand:false,
+ isReplaceBg: false,
userRole:''
};
},
@@ -234,7 +238,10 @@ export default {
},
resetChat() {
// this.$refs.chatbox.resetCoversition();
- }
+ },
+ setReplace(isRp) {
+ this.isReplaceBg = isRp
+ }
}
};
diff --git a/src/views/scriptManage/tipScriptRecord.vue b/src/views/scriptManage/tipScriptRecord.vue
index e7113041f..3820bd7f9 100644
--- a/src/views/scriptManage/tipScriptRecord.vue
+++ b/src/views/scriptManage/tipScriptRecord.vue
@@ -1,5 +1,5 @@
-
+
-
- {{ $t('scriptRecord.drivingPause') }}
- 恢复
- {{ $t('scriptRecord.resetScript') }}
- {{ $t('scriptRecord.saveBackground') }}
- {{ $t('scriptRecord.saveData') }}
+
+ {{ $t('scriptRecord.drivingPause') }}
+ 恢复
+ {{ $t('scriptRecord.resetScript') }}
+ {{ $t('scriptRecord.startReplaceBg') }}
+ {{ $t('scriptRecord.saveBackground') }}
+ {{ $t('scriptRecord.saveData') }}
@@ -50,10 +51,15 @@
-
-
- {{ $t('scriptRecord.scriptRecordTitle') }}
-
+
+
+ {{ $t('scriptRecord.confirmReplaceBg') }}
+ {{ $t('scriptRecord.cancelReplaceBg') }}
+
+
+
+ {{ $t('scriptRecord.scriptRecordTitle') }}
+
@@ -68,7 +74,7 @@ import {covertMemberData} from '@/views/newMap/displayNew/utils';
import GetActionNew from './getAction';
import AllScriptRole from './allScriptRole';
import { getToken } from '@/utils/auth';
-import {executeScriptNew, dumpScriptDataNew, saveScriptDataNew, saveScriptScenesNew, updateMapLocationNew, simulationPause} from '@/api/simulation';
+import {executeScriptNew, dumpScriptDataNew, saveScriptDataNew, saveScriptScenesNew, updateMapLocationNew, simulationPause, startReplaceBg, confirmReplaceBg, cancelReplaceBg} from '@/api/simulation';
export default {
name:'TipScriptRecord',
components: {
@@ -88,7 +94,11 @@ export default {
offset:{
type: Number,
required: true
- }
+ },
+ isReplaceBg: {
+ type: Boolean,
+ default: false
+ }
},
data() {
return {
@@ -123,7 +133,10 @@ export default {
},
orignalUserRoleId() {
return this.$store.state.training.orignalUserRoleId;
- }
+ },
+ maskShow() {
+ return this.isReplaceBg;
+ }
},
watch:{
'$store.state.map.mapViewLoadedCount': function (val) {
@@ -518,7 +531,29 @@ export default {
);
this.oldMember = Object.assign({}, role);
this.$refs.allScriptRole.updateLoading();
- }
+ },
+ startReplaceBg() {
+ startReplaceBg(this.group).then(resp => {
+ this.$emit('setReplace', true);
+ }).catch(error => {
+ this.$messageBox(error.message);
+ })
+ },
+ confirmReplaceBg() {
+ confirmReplaceBg(this.group).then(resp => {
+ this.$message.success('替换成功');
+ this.$emit('setReplace', false);
+ }).catch(error => {
+ this.$messageBox(error.message);
+ })
+ },
+ cancelReplaceBg() {
+ cancelReplaceBg(this.group).then(resp => {
+ this.$emit('setReplace', false);
+ }).catch(error => {
+ this.$messageBox(error.message);
+ })
+ }
}
};
@@ -529,6 +564,7 @@ export default {
.button-group{
position: absolute;
bottom: 0;
+ z-index: 5;
}
.eachScriptPanel{
height: 300px;
@@ -609,5 +645,26 @@ export default {
text-align: center;
display: inline-block;
}
+
+.mask {
+ position: absolute;
+ top: 28px;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ background: #000;
+ opacity: 0.5;
+ z-index: 2;
+ &::before {
+ content: '';
+ position: absolute;
+ top:0;
+ right:0;
+ bottom:0;
+ left:0;
+ background: #aaa;
+ filter: blur(20px);
+ }
+}
From 6993ad8d8e4e3ed27e9d93baaa23bfe9f73321d7 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Wed, 4 Nov 2020 14:48:36 +0800
Subject: [PATCH 17/43] =?UTF-8?q?=E5=89=A7=E6=9C=AC=E6=9D=A1=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/directive/quickMenuDrag/quickMenuDrag.js | 2 -
src/utils/baseUrl.js | 4 +-
src/views/newMap/chatView/chatBox.vue | 4 +-
.../displayNew/dispatherContest/sceneList.vue | 2 +-
src/views/scriptManage/conditionManage.vue | 261 +++++++++++++++---
src/views/scriptManage/getAction.vue | 6 +-
src/views/scriptManage/tipScriptRecord.vue | 10 +-
7 files changed, 234 insertions(+), 55 deletions(-)
diff --git a/src/directive/quickMenuDrag/quickMenuDrag.js b/src/directive/quickMenuDrag/quickMenuDrag.js
index c9f4d3aaa..e9d7b051f 100644
--- a/src/directive/quickMenuDrag/quickMenuDrag.js
+++ b/src/directive/quickMenuDrag/quickMenuDrag.js
@@ -28,8 +28,6 @@ export default {
const l = e.clientX - disX;
const t = e.clientY - disY;
- console.log(l, l + styL, dragDom.style.left);
-
/** 移动当前元素*/
if (l + styL < 0) {
dragDom.style.left = `0px`;
diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js
index 89ce9ee58..e0fc56a01 100644
--- a/src/utils/baseUrl.js
+++ b/src/utils/baseUrl.js
@@ -2,10 +2,10 @@ 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.8.107:9000'; // 袁琪
// BASE_API = 'http://192.168.8.114:9000'; // 旭强
- // BASE_API = 'http://192.168.3.175:9000'; // 张赛
+ BASE_API = 'http://192.168.8.109:9000'; // 张赛
// BASE_API = 'http://192.168.8.110:9000'; // 杜康
// BASE_API = 'http://b29z135112.zicp.vip';
// BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康
diff --git a/src/views/newMap/chatView/chatBox.vue b/src/views/newMap/chatView/chatBox.vue
index 4663ce5c7..53dc6245c 100644
--- a/src/views/newMap/chatView/chatBox.vue
+++ b/src/views/newMap/chatView/chatBox.vue
@@ -408,8 +408,8 @@ export default {
parentDepartmentList[item.id] = this.memberData[item.id];
break;
case 'PARKING_LOT_SIGNAL_BUILDING':
- this.memberData[item.id].label = '停车场信号机' + (item.name || '');
- this.memberData[item.id].labelName = '停车场信号机' + (item.name || '');
+ this.memberData[item.id].label = '停车场信号楼' + (item.name || '');
+ this.memberData[item.id].labelName = '停车场信号楼' + (item.name || '');
parkingLotSignalBuilding[item.id] = this.memberData[item.id];
break;
}
diff --git a/src/views/newMap/displayNew/dispatherContest/sceneList.vue b/src/views/newMap/displayNew/dispatherContest/sceneList.vue
index 8212872df..90a22551a 100644
--- a/src/views/newMap/displayNew/dispatherContest/sceneList.vue
+++ b/src/views/newMap/displayNew/dispatherContest/sceneList.vue
@@ -178,7 +178,7 @@ export default {
break;
}
case 'PARKING_LOT_SIGNAL_BUILDING': {
- member.label = '停车场信号机' + (member.name ? member.name : '');
+ member.label = '停车场信号楼' + (member.name ? member.name : '');
}
}
// if (member.type === 'DISPATCHER') {
diff --git a/src/views/scriptManage/conditionManage.vue b/src/views/scriptManage/conditionManage.vue
index b05d0754f..bd75ca886 100644
--- a/src/views/scriptManage/conditionManage.vue
+++ b/src/views/scriptManage/conditionManage.vue
@@ -1,70 +1,245 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
条件管理
+
+
+
+
+
+
+
+
+ {{ getSectionName(scope.row.physicalCode) }}
+
+
+
+
+ {{ scope.row.stop?'是':'否' }}
+
+
+
+
+ 编辑
+ 删除
+
+
+
+
+
+
+
+
+ {{ $t('map.activate') }}
+
+
+
+
+
+ {{ $t('map.activate') }}
+
+
+
+
+
+
+
+ 添加
+ 修改
+ 取消
+
+
+
+
+
+
+
+
+
diff --git a/src/views/scriptManage/getAction.vue b/src/views/scriptManage/getAction.vue
index afce8c0e2..9a3268016 100644
--- a/src/views/scriptManage/getAction.vue
+++ b/src/views/scriptManage/getAction.vue
@@ -43,7 +43,7 @@
- 触发条件
+ 触发条件
{{ $t('scriptRecord.modifyConversitionButton') }}
确定
取消
@@ -109,8 +109,8 @@ export default {
loadInitData() {
this.loadOtherData(this.$route.query);
},
- handleCondition(actionId) {
-
+ handleCondition(actionInfo) {
+ this.$emit('showConditionManage', actionInfo);
},
covertData(memberList, element) {
const member = memberList.find(elem=>{ return elem.id == element.memberId; });
diff --git a/src/views/scriptManage/tipScriptRecord.vue b/src/views/scriptManage/tipScriptRecord.vue
index e7113041f..5577e73f0 100644
--- a/src/views/scriptManage/tipScriptRecord.vue
+++ b/src/views/scriptManage/tipScriptRecord.vue
@@ -33,7 +33,7 @@
-
+
@@ -56,6 +56,7 @@
+
diff --git a/src/views/newMap/jointTrainingNew/menuDemon.vue b/src/views/newMap/jointTrainingNew/menuDemon.vue
index 13e431c95..6d45b0a21 100644
--- a/src/views/newMap/jointTrainingNew/menuDemon.vue
+++ b/src/views/newMap/jointTrainingNew/menuDemon.vue
@@ -289,12 +289,10 @@ export default {
time: model.initTime
};
ranAsPlan(data, this.group).then(res => {
- // this.$store.dispatch('training/simulationStart').then(() => {
if (this.project == 'jsxt') {
this.jsStart = false;
}
this.$store.dispatch('training/setInitTime', +new Date(`${new Date().toLocaleDateString()} ${model.initTime}`));
- // });
}).catch((error) => {
this.isDisable = false;
if (error.code == '5001') {
From 56888289d66aa2a45112881934096c3699193497 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Wed, 4 Nov 2020 18:10:48 +0800
Subject: [PATCH 28/43] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BE=9B=E7=94=B5?=
=?UTF-8?q?=E7=BA=BFtype=E5=88=A4=E6=96=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../displayNew/scriptDisplay/component/covertOperation.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/newMap/displayNew/scriptDisplay/component/covertOperation.js b/src/views/newMap/displayNew/scriptDisplay/component/covertOperation.js
index ab90f516c..e63271e3b 100644
--- a/src/views/newMap/displayNew/scriptDisplay/component/covertOperation.js
+++ b/src/views/newMap/displayNew/scriptDisplay/component/covertOperation.js
@@ -209,7 +209,7 @@ export function covertOperate(operationType, operationParamMap) {
const station = store.getters['map/getDeviceByCode'](device.stationCode);
deviceName += '【车站-' + station.name + '】 / ' + deviceType[device._type] + device.name;
} else {
- if (device._type == 'DirectionRod') {
+ if (device._type == 'Power') {
deviceName = '供电线(' + device.code + ')';
} else {
deviceName = '' + device.name;
From a6a91bfcff68df71346f0cd5940b3cc6a35a35f3 Mon Sep 17 00:00:00 2001
From: zyy <1787816799@qq.com>
Date: Wed, 4 Nov 2020 18:27:24 +0800
Subject: [PATCH 29/43] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=89=A7=E6=9C=AC?=
=?UTF-8?q?=E5=86=85=E5=AE=B9=E5=88=A4=E6=96=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/scriptManage/getAction.vue | 57 ++++++-----
src/views/scriptManage/tipScriptRecord.vue | 104 ++++++++++-----------
2 files changed, 87 insertions(+), 74 deletions(-)
diff --git a/src/views/scriptManage/getAction.vue b/src/views/scriptManage/getAction.vue
index f1864335a..f5916281a 100644
--- a/src/views/scriptManage/getAction.vue
+++ b/src/views/scriptManage/getAction.vue
@@ -159,29 +159,42 @@ export default {
// const command = CommandHandler.getScriptDefinition(element.operationType);
const commandName = element.operationType;
if (commandName != 'Set_Fault' && commandName != 'Cancel_Fault' ) {
- const list = ['Train_Update_Type',
- 'Train_Add_Train_Trace',
- 'Train_Remove_Train_Trace',
- 'Train_Move_Train_Trace',
- 'Train_Set_Plan',
- 'Train_Set_Head',
- 'Train_Set_Manual',
- 'Train_Set_Crew_Number',
- 'Train_Tag_Atp_Cut',
- 'Train_Tag_Atp_Recover',
- 'Train_Allow_Pass',
- 'Train_Info'];
- let operateType = commandName.split('_')[0];
- if (list.includes(commandName)) {
- operateType = 'TrainWindow';
+ // const list = ['Train_Update_Type',
+ // 'Train_Add_Train_Trace',
+ // 'Train_Remove_Train_Trace',
+ // 'Train_Move_Train_Trace',
+ // 'Train_Set_Plan',
+ // 'Train_Set_Head',
+ // 'Train_Set_Manual',
+ // 'Train_Set_Crew_Number',
+ // 'Train_Tag_Atp_Cut',
+ // 'Train_Tag_Atp_Recover',
+ // 'Train_Allow_Pass',
+ // 'Train_Info'];
+ // let operateType = commandName.split('_')[0];
+ // if (list.includes(commandName)) {
+ // operateType = 'TrainWindow';
+ // }
+ // if (operateType == 'CM') {
+ // operateType = 'ControlConvertMenu';
+ // }
+ let operateName = null;
+ let operateType = '';
+ Object.keys(CMD).forEach(key => {
+ Object.values(CMD[key]).forEach(el => {
+ if (el.value == commandName) {
+ operateType = key;
+ operateName = el;
+ return;
+ }
+ });
+ });
+ // const operateName = Object.values(CMD[operateType]).find(res=>{ return res.value == commandName; });
+ if (operateName) {
+ const deviceTypeList = {Section:'区段', Switch:'道岔', Signal:'信号机', Stand:'站台', Station:'车站', TrainWindow:'车次窗', ControlConvertMenu:'控制模式', Driver:'司机', Train:'列车'};
+ const operateTypeName = deviceTypeList[operateType];
+ this.actionInfoList.push({id: element.id, isOperation: true, memberName: memberName, command: operateTypeName + '(' + operateName.label + ')', row: element, visible: false});
}
- if (operateType == 'CM') {
- operateType = 'ControlConvertMenu';
- }
- const operateName = Object.values(CMD[operateType]).find(res=>{ return res.value == commandName; });
- const deviceTypeList = {Section:'区段', Switch:'道岔', Signal:'信号机', Stand:'站台', Station:'车站', TrainWindow:'车次窗', ControlConvertMenu:'控制模式', Driver:'司机', Train:'列车'};
- const operateTypeName = deviceTypeList[operateType];
- this.actionInfoList.push({id: element.id, isOperation: true, memberName: memberName, command: operateTypeName + '(' + operateName.label + ')', row: element, visible: false});
} else {
// deviceFaultType
// element.operationParamMap.faultType;
diff --git a/src/views/scriptManage/tipScriptRecord.vue b/src/views/scriptManage/tipScriptRecord.vue
index 474ae7996..c46217fa7 100644
--- a/src/views/scriptManage/tipScriptRecord.vue
+++ b/src/views/scriptManage/tipScriptRecord.vue
@@ -24,28 +24,28 @@
-
- {{ $t('scriptRecord.drivingPause') }}
- 恢复
- {{ $t('scriptRecord.resetScript') }}
- {{ $t('scriptRecord.startReplaceBg') }}
- {{ $t('scriptRecord.saveBackground') }}
- {{ $t('scriptRecord.saveData') }}
-
+
+ {{ $t('scriptRecord.drivingPause') }}
+ 恢复
+ {{ $t('scriptRecord.resetScript') }}
+ {{ $t('scriptRecord.startReplaceBg') }}
+ {{ $t('scriptRecord.saveBackground') }}
+ {{ $t('scriptRecord.saveData') }}
+
-
-
-
- {{ $t('scriptRecord.drivingPause') }}
- 恢复
- {{ $t('scriptRecord.confirmReplaceBg') }}
- {{ $t('scriptRecord.cancelReplaceBg') }}
-
-
+
+
+
+ {{ $t('scriptRecord.drivingPause') }}
+ 恢复
+ {{ $t('scriptRecord.confirmReplaceBg') }}
+ {{ $t('scriptRecord.cancelReplaceBg') }}
+
+
@@ -60,10 +60,10 @@
-
-
- {{ $t('scriptRecord.scriptRecordTitle') }}
-
+
+
+ {{ $t('scriptRecord.scriptRecordTitle') }}
+
@@ -102,10 +102,10 @@ export default {
type: Number,
required: true
},
- isReplaceBg: {
- type: Boolean,
- default: false
- }
+ isReplaceBg: {
+ type: Boolean,
+ default: false
+ }
},
data() {
return {
@@ -140,7 +140,7 @@ export default {
},
orignalUserRoleId() {
return this.$store.state.training.orignalUserRoleId;
- }
+ }
},
watch:{
'$store.state.map.mapViewLoadedCount': function (val) {
@@ -535,32 +535,32 @@ export default {
);
this.oldMember = Object.assign({}, role);
this.$refs.allScriptRole.updateLoading();
- },
- startReplaceBg() {
- startReplaceBg(this.group).then(resp => {
- this.$emit('setReplace', true);
- }).catch(error => {
- this.$messageBox(error.message);
- })
- },
- confirmReplaceBg() {
- confirmReplaceBg(this.group).then(resp => {
- this.$message.success('替换成功');
- this.$emit('setReplace', false);
- }).catch(error => {
- this.$messageBox(error.message);
- })
- },
- cancelReplaceBg() {
- cancelReplaceBg(this.group).then(resp => {
- this.$emit('setReplace', false);
- }).catch(error => {
- this.$messageBox(error.message);
- })
- },
- showConditionManage(actionInfo) {
- this.$refs.conditionManage.doShow(actionInfo);
- }
+ },
+ startReplaceBg() {
+ startReplaceBg(this.group).then(resp => {
+ this.$emit('setReplace', true);
+ }).catch(error => {
+ this.$messageBox(error.message);
+ });
+ },
+ confirmReplaceBg() {
+ confirmReplaceBg(this.group).then(resp => {
+ this.$message.success('替换成功');
+ this.$emit('setReplace', false);
+ }).catch(error => {
+ this.$messageBox(error.message);
+ });
+ },
+ cancelReplaceBg() {
+ cancelReplaceBg(this.group).then(resp => {
+ this.$emit('setReplace', false);
+ }).catch(error => {
+ this.$messageBox(error.message);
+ });
+ },
+ showConditionManage(actionInfo) {
+ this.$refs.conditionManage.doShow(actionInfo);
+ }
}
};
From fc46f0b55ece866e6de410adae7c6ab8d72792c0 Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Wed, 4 Nov 2020 18:35:27 +0800
Subject: [PATCH 30/43] =?UTF-8?q?=E8=BF=90=E8=A1=8C=E5=9B=BE=20=E8=BD=A6?=
=?UTF-8?q?=E6=AC=A1=E5=8F=B7=E6=96=B9=E5=90=91=E4=BB=A3=E7=A0=81=E8=B0=83?=
=?UTF-8?q?=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/jmapNew/theme/foshan_01/planConvert.js | 14 +++++++++++---
src/jmapNew/theme/fuzhou_01/planConvert.js | 14 +++++++++++---
src/jmapNew/theme/haerbin_01/planConvert.js | 14 +++++++++++---
src/jmapNew/theme/ningbo_01/planConvert.js | 14 +++++++++++---
src/jmapNew/theme/race_01/planConvert.js | 12 ++++++++++--
src/jmapNew/theme/xian_01/planConvert.js | 14 +++++++++++---
src/jmapNew/theme/xian_02/planConvert.js | 13 +++++++++++--
src/utils/runPlan.js | 1 +
.../scriptDisplay/component/scriptTip.vue | 3 ++-
9 files changed, 79 insertions(+), 20 deletions(-)
diff --git a/src/jmapNew/theme/foshan_01/planConvert.js b/src/jmapNew/theme/foshan_01/planConvert.js
index 2d381de1f..4362d2c07 100644
--- a/src/jmapNew/theme/foshan_01/planConvert.js
+++ b/src/jmapNew/theme/foshan_01/planConvert.js
@@ -1,5 +1,5 @@
import { createMartPointReverse, createSeriesModel, createMarkLineModels, hexColor, convertSheetToList, prefixTime } from '@/utils/runPlan';
-
+import store from '@/store/index_APP_TARGET';
export default {
/** 边缘高度*/
EdgeHeight: 600,
@@ -110,7 +110,11 @@ export default {
// pointdata.name = `${service.serviceNumber}${train.directionCode}${train.tripNumber}`;
pointdata.name = `${service.serviceNumber}${train.tripNumber}`;
pointdata.color = '#000' || lineStyle.color;
- pointdata.directionCode = train.directionCode;
+ // pointdata.directionCode = train.directionCode;
+ pointdata.directionCode = train.right ? '2' : '1';
+ if (!store.state.map.mapConfig.upRight) {
+ pointdata.directionCode = train.right ? '1' : '2';
+ }
pointdata.coord = [train.stationTimeList[1].secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, train.stationTimeList[1], train.directionCode, false)];
/** 给服务对象添加服务名称和标记点*/
@@ -203,8 +207,12 @@ export default {
if (runPlanData[elem.serviceNumber][elem.tripNumber].length <= 1) {
const result = serie.markPoint.data.some(ele => ele.name == `(${elem.groupNumber})${elem.serviceNumber}${elem.tripNumber}`);
if (!result) {
+ let directionCode = elem.right ? '2' : '1';
+ if (!store.state.map.mapConfig.upRight) {
+ directionCode = elem.right ? '1' : '2';
+ }
serie.markPoint.data.push(createMartPointReverse({
- directionCode: elem.directionCode,
+ directionCode: directionCode,
coord: [parseInt(elem.secondTime), this.getCoordYByElem(stations, kmRangeCoordMap, elem, false)],
name: `(${elem.groupNumber})${elem.serviceNumber}${elem.tripNumber}`,
color: lineStyle.color || '#000'
diff --git a/src/jmapNew/theme/fuzhou_01/planConvert.js b/src/jmapNew/theme/fuzhou_01/planConvert.js
index 0163d7a31..b9e9580e6 100644
--- a/src/jmapNew/theme/fuzhou_01/planConvert.js
+++ b/src/jmapNew/theme/fuzhou_01/planConvert.js
@@ -1,5 +1,5 @@
import { createMartPoint, createSeriesModel, createMarkLineModels, hexColor, prefixTime, convertSheetToList } from '@/utils/runPlan';
-
+import store from '@/store/index_APP_TARGET';
export default {
/** 边缘高度*/
EdgeHeight: 3,
@@ -297,7 +297,11 @@ export default {
// pointdata.name = `${service.serviceNumber}${train.directionCode}${train.tripNumber}`;
pointdata.name = `${service.serviceNumber}${train.tripNumber}`;
pointdata.color = '#000' || lineStyle.color;
- pointdata.directionCode = train.directionCode;
+ // pointdata.directionCode = train.directionCode;
+ pointdata.directionCode = train.right ? '2' : '1';
+ if (!store.state.map.mapConfig.upRight) {
+ pointdata.directionCode = train.right ? '1' : '2';
+ }
pointdata.coord = [train.stationTimeList[0].secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, train.stationTimeList[0], train.directionCode, false)];
/** 给服务对象添加服务名称和标记点*/
@@ -388,8 +392,12 @@ export default {
if (runPlanData[elem.serviceNumber][elem.tripNumber].length <= 1) {
const result = serie.markPoint.data.some(ele => ele.name == `(${elem.groupNumber})${elem.serviceNumber}${elem.tripNumber}`);
if (!result) {
+ let directionCode = elem.right ? '2' : '1';
+ if (!store.state.map.mapConfig.upRight) {
+ directionCode = elem.right ? '1' : '2';
+ }
serie.markPoint.data.push(createMartPoint({
- directionCode: elem.directionCode,
+ directionCode: directionCode,
coord: [parseInt(elem.secondTime), this.getCoordYByElem(stations, kmRangeCoordMap, elem)],
name: `(${elem.groupNumber})${elem.serviceNumber}${elem.tripNumber}`,
color: lineStyle.color || '#000'
diff --git a/src/jmapNew/theme/haerbin_01/planConvert.js b/src/jmapNew/theme/haerbin_01/planConvert.js
index be09d33f1..40ea90ee9 100644
--- a/src/jmapNew/theme/haerbin_01/planConvert.js
+++ b/src/jmapNew/theme/haerbin_01/planConvert.js
@@ -1,5 +1,5 @@
import { createMartPoint, createSeriesModel, createMarkLineModels, hexColor, prefixTime, convertSheetToList } from '@/utils/runPlan';
-
+import store from '@/store/index_APP_TARGET';
export default {
/** 边缘高度*/
EdgeHeight: 3,
@@ -168,6 +168,7 @@ export default {
var isBackup = true;
var opt = { name: '', markPointData: [], data: [] };
if (service.tripNumberDataList && service.tripNumberDataList.length) {
+ debugger;
service.tripNumberDataList.forEach((train, j) => {
var pointdata = {};
var idx = 0;
@@ -178,7 +179,10 @@ export default {
// pointdata.name = `${service.serviceNumber}${train.directionCode}${train.tripNumber}`;
pointdata.name = `${service.serviceNumber}${train.tripNumber}`;
pointdata.color = '#000' || lineStyle.color;
- pointdata.directionCode = train.directionCode;
+ pointdata.directionCode = train.right ? '2' : '1';
+ if (!store.state.map.mapConfig.upRight) {
+ pointdata.directionCode = train.right ? '1' : '2';
+ }
pointdata.coord = [train.stationTimeList[0].secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, train.stationTimeList[0], train.directionCode, false)];
/** 给服务对象添加服务名称和标记点*/
@@ -271,8 +275,12 @@ export default {
if (runPlanData[elem.serviceNumber][elem.tripNumber].length <= 1) {
const result = serie.markPoint.data.some(ele => ele.name == `(${elem.groupNumber})${elem.serviceNumber}${elem.tripNumber}`);
if (!result) {
+ let directionCode = elem.right ? '2' : '1';
+ if (!store.state.map.mapConfig.upRight) {
+ directionCode = elem.right ? '1' : '2';
+ }
serie.markPoint.data.push(createMartPoint({
- directionCode: elem.directionCode,
+ directionCode: directionCode,
coord: [parseInt(elem.secondTime), this.getCoordYByElem(stations, kmRangeCoordMap, elem)],
name: `(${elem.groupNumber})${elem.serviceNumber}${elem.tripNumber}`,
color: lineStyle.color || '#000'
diff --git a/src/jmapNew/theme/ningbo_01/planConvert.js b/src/jmapNew/theme/ningbo_01/planConvert.js
index 5e73b8dc2..0a10d4565 100644
--- a/src/jmapNew/theme/ningbo_01/planConvert.js
+++ b/src/jmapNew/theme/ningbo_01/planConvert.js
@@ -1,5 +1,5 @@
import { createMartPoint, createSeriesModel, createMarkLineModels, hexColor, convertSheetToList, prefixTime } from '@/utils/runPlan';
-
+import store from '@/store/index_APP_TARGET';
export default {
/** 边缘高度*/
EdgeHeight: 600,
@@ -137,7 +137,11 @@ export default {
// pointdata.name = `${service.serviceNumber}${train.tripNumber}${train.destinationCode || ''}`;
pointdata.name = `${service.serviceNumber}${train.tripNumber}`;
pointdata.color = '#000' || lineStyle.color;
- pointdata.directionCode = train.directionCode;
+ // pointdata.directionCode = train.directionCode;
+ pointdata.directionCode = train.right ? '2' : '1';
+ if (!store.state.map.mapConfig.upRight) {
+ pointdata.directionCode = train.right ? '1' : '2';
+ }
pointdata.coord = [train.stationTimeList[1].secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, train.stationTimeList[1], train.directionCode, false)];
/** 给服务对象添加服务名称和标记点*/
@@ -230,8 +234,12 @@ export default {
if (runPlanData[elem.serviceNumber][elem.tripNumber].length <= 1) {
const result = serie.markPoint.data.some(ele => ele.name == `(${elem.groupNumber})${elem.serviceNumber}${elem.tripNumber}`);
if (!result) {
+ let directionCode = elem.right ? '2' : '1';
+ if (!store.state.map.mapConfig.upRight) {
+ directionCode = elem.right ? '1' : '2';
+ }
serie.markPoint.data.push(createMartPoint({
- directionCode: elem.directionCode,
+ directionCode: directionCode,
coord: [parseInt(elem.secondTime), this.getCoordYByElem(stations, kmRangeCoordMap, elem, false)],
name: `(${elem.groupNumber})${elem.serviceNumber}${elem.tripNumber}`,
color: lineStyle.color || '#000'
diff --git a/src/jmapNew/theme/race_01/planConvert.js b/src/jmapNew/theme/race_01/planConvert.js
index 636f13f68..12786dd2c 100644
--- a/src/jmapNew/theme/race_01/planConvert.js
+++ b/src/jmapNew/theme/race_01/planConvert.js
@@ -1,5 +1,5 @@
import { createMartPoint, createSeriesModel, createMarkLineModels, hexColor, convertSheetToList } from '@/utils/runPlan';
-
+import store from '@/store/index_APP_TARGET';
export default {
/** 边缘高度*/
EdgeHeight: 600,
@@ -114,6 +114,9 @@ export default {
pointdata.name = `${service.serviceNumber}${train.tripNumber}`;
pointdata.color = '#000' || lineStyle.color;
pointdata.directionCode = train.right ? '2' : '1';
+ if (!store.state.map.mapConfig.upRight) {
+ pointdata.directionCode = train.right ? '1' : '2';
+ }
pointdata.coord = [train.stationTimeList[1].secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, train.stationTimeList[1], train.right, false)];
/** 给服务对象添加服务名称和标记点*/
@@ -211,8 +214,13 @@ export default {
if (runPlanData[elem.serviceNumber][elem.tripNumber].length <= 1) {
const result = serie.markPoint.data.some(ele => ele.name == `(${elem.groupNumber})${elem.serviceNumber}${elem.tripNumber}`);
if (!result) {
+ let directionCode = elem.right ? '2' : '1';
+ if (!store.state.map.mapConfig.upRight) {
+ directionCode = elem.right ? '1' : '2';
+ }
+ // console.log(elem.right, 'elem.right');
serie.markPoint.data.push(createMartPoint({
- directionCode: elem.right ? '2' : '1',
+ directionCode: directionCode,
coord: [parseInt(elem.secondTime), this.getCoordYByElem(stations, kmRangeCoordMap, elem, false)],
name: `(${elem.groupNumber})${elem.serviceNumber}${elem.tripNumber}`,
color: lineStyle.color || '#000'
diff --git a/src/jmapNew/theme/xian_01/planConvert.js b/src/jmapNew/theme/xian_01/planConvert.js
index 1cf586631..c535838a3 100644
--- a/src/jmapNew/theme/xian_01/planConvert.js
+++ b/src/jmapNew/theme/xian_01/planConvert.js
@@ -1,5 +1,5 @@
import { createMartPoint, createSeriesModel, createMarkLineModels, hexColor, convertSheetToList, prefixTime } from '@/utils/runPlan';
-
+import store from '@/store/index_APP_TARGET';
export default {
/** 边缘高度*/
EdgeHeight: 600,
@@ -123,7 +123,11 @@ export default {
// pointdata.name = `${service.serviceNumber}${train.directionCode}${train.tripNumber}`;
pointdata.name = `${service.serviceNumber}${train.tripNumber}`;
pointdata.color = '#000' || lineStyle.color;
- pointdata.directionCode = train.directionCode;
+ // pointdata.directionCode = train.directionCode;
+ pointdata.directionCode = train.right ? '2' : '1';
+ if (!store.state.map.mapConfig.upRight) {
+ pointdata.directionCode = train.right ? '1' : '2';
+ }
pointdata.coord = [train.stationTimeList[1].secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, train.stationTimeList[1], train.directionCode, false)];
/** 给服务对象添加服务名称和标记点*/
@@ -221,8 +225,12 @@ export default {
if (runPlanData[elem.serviceNumber][elem.tripNumber].length <= 1) {
const result = serie.markPoint.data.some(ele => ele.name == `(${elem.groupNumber})${elem.serviceNumber}${elem.tripNumber}`);
if (!result) {
+ let directionCode = elem.right ? '2' : '1';
+ if (!store.state.map.mapConfig.upRight) {
+ directionCode = elem.right ? '1' : '2';
+ }
serie.markPoint.data.push(createMartPoint({
- directionCode: elem.directionCode,
+ directionCode: directionCode,
coord: [parseInt(elem.secondTime), this.getCoordYByElem(stations, kmRangeCoordMap, elem, false)],
name: `(${elem.groupNumber})${elem.serviceNumber}${elem.tripNumber}`,
color: lineStyle.color || '#000'
diff --git a/src/jmapNew/theme/xian_02/planConvert.js b/src/jmapNew/theme/xian_02/planConvert.js
index 2bce84025..526870390 100644
--- a/src/jmapNew/theme/xian_02/planConvert.js
+++ b/src/jmapNew/theme/xian_02/planConvert.js
@@ -1,4 +1,5 @@
import { createMartPoint, createSeriesModel, createMarkLineModels, hexColor, convertSheetToList } from '@/utils/runPlan';
+import store from '@/store/index_APP_TARGET';
const StationMap = {
YARD1: '潏河停车场',
YARD2: '潏河停车场',
@@ -176,7 +177,11 @@ export default {
/** 创建标记点名称和坐标*/
pointdata.name = `${service.serviceNumber}${train.tripNumber}`;
pointdata.color = '#000' || lineStyle.color;
- pointdata.directionCode = train.directionCode;
+ // pointdata.directionCode = train.directionCode;
+ pointdata.directionCode = train.right ? '2' : '1';
+ if (!store.state.map.mapConfig.upRight) {
+ pointdata.directionCode = train.right ? '1' : '2';
+ }
pointdata.coord = [train.stationTimeList[1].secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, train.stationTimeList[1], train.directionCode, false)];
/** 给服务对象添加服务名称和标记点*/
@@ -275,8 +280,12 @@ export default {
if (runPlanData[elem.serviceNumber][elem.tripNumber].length <= 1) {
const result = serie.markPoint.data.some(ele => ele.name == `(${elem.groupNumber})${elem.serviceNumber}${elem.tripNumber}`);
if (!result) {
+ let directionCode = elem.right ? '2' : '1';
+ if (!store.state.map.mapConfig.upRight) {
+ directionCode = elem.right ? '1' : '2';
+ }
serie.markPoint.data.push(createMartPoint({
- directionCode: elem.directionCode,
+ directionCode: directionCode,
coord: [parseInt(time), this.getCoordYByElem(stations, kmRangeCoordMap, elem, false)],
name: `(${elem.groupNumber})${elem.serviceNumber}${elem.tripNumber}`,
color: lineStyle.color || '#000'
diff --git a/src/utils/runPlan.js b/src/utils/runPlan.js
index 5fea77427..4626244e5 100644
--- a/src/utils/runPlan.js
+++ b/src/utils/runPlan.js
@@ -22,6 +22,7 @@ export function createMartPoint(opt) {
/** 创建一个车次数据点*/
export function createMartPointReverse(opt) {
+ debugger;
const rotate = opt.directionCode == '1' ? 45 : (opt.directionCode == '2' ? -45 : 0);
const position = opt.type ? 'insideBottomLeft' : 'insideTopLeft';
return {
diff --git a/src/views/newMap/displayNew/scriptDisplay/component/scriptTip.vue b/src/views/newMap/displayNew/scriptDisplay/component/scriptTip.vue
index fa2dceb35..ace5b1c54 100644
--- a/src/views/newMap/displayNew/scriptDisplay/component/scriptTip.vue
+++ b/src/views/newMap/displayNew/scriptDisplay/component/scriptTip.vue
@@ -119,7 +119,8 @@ export default {
transform: translateX(-50%);
color: #000;
line-height: 180%;
- z-index: 1501;
+ // z-index: 1501;
+ z-index: 15;
font-size: 14px;
}
From 61ed5e3411ff428380482b6ec6f4a6519efc618c Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Thu, 5 Nov 2020 09:32:44 +0800
Subject: [PATCH 31/43] =?UTF-8?q?=E5=89=A7=E6=9C=AC=E5=8A=A8=E4=BD=9C?=
=?UTF-8?q?=E8=A7=A6=E5=8F=91=E6=9D=A1=E4=BB=B6=E5=8F=82=E6=95=B0delay?=
=?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/scriptManage/conditionManage.vue | 29 +++++++++++++++-------
1 file changed, 20 insertions(+), 9 deletions(-)
diff --git a/src/views/scriptManage/conditionManage.vue b/src/views/scriptManage/conditionManage.vue
index b2d3bd4a3..6ce89986d 100644
--- a/src/views/scriptManage/conditionManage.vue
+++ b/src/views/scriptManage/conditionManage.vue
@@ -178,7 +178,11 @@ export default {
handleDelete(index, row) {
const data = [...this.tableData];
data.splice(index, 1);
- updateActionCondition(this.$route.query.group, this.actionId, {trainStatuses: data, delay: this.delay * 1000}).then(resp => {
+ const param = { trainStatuses: data };
+ if (this.delay) {
+ param.delay = this.delay * 1000;
+ }
+ updateActionCondition(this.$route.query.group, this.actionId, param).then(resp => {
this.tableData = data;
this.initData();
this.$message.success('删除条件成功');
@@ -191,7 +195,11 @@ export default {
if (valid) {
const data = [...this.tableData];
data[this.updateIndex] = {code: this.formModel.code, physicalCode: this.formModel.physicalCode, stop: this.formModel.stop};
- updateActionCondition(this.$route.query.group, this.actionId, {trainStatuses: data, delay: this.delay * 1000}).then(resp => {
+ const param = { trainStatuses: data };
+ if (this.delay) {
+ param.delay = this.delay * 1000;
+ }
+ updateActionCondition(this.$route.query.group, this.actionId, param).then(resp => {
this.tableData = data;
this.initData();
this.$message.success('修改条件成功');
@@ -202,7 +210,11 @@ export default {
});
},
onUpdateDelay() {
- updateActionCondition(this.$route.query.group, this.actionId, {trainStatuses: this.tableData, delay: this.delay * 1000}).then(resp => {
+ const param = { trainStatuses: this.tableData };
+ if (this.delay) {
+ param.delay = this.delay * 1000;
+ }
+ updateActionCondition(this.$route.query.group, this.actionId, param).then(resp => {
this.initData();
this.$message.success('修改条件成功');
}).catch(()=>{
@@ -210,11 +222,6 @@ export default {
});
},
initData() {
- // this.formModel = {
- // code: '',
- // physicalCode: '',
- // stop: ''
- // };
this.update = false;
this.updateIndex = '';
this.$refs.form && this.$refs.form.resetFields();
@@ -224,7 +231,11 @@ export default {
if (valid) {
const data = [...this.tableData];
data.push({code: this.formModel.code, physicalCode: this.formModel.physicalCode, stop: this.formModel.stop});
- updateActionCondition(this.$route.query.group, this.actionId, {trainStatuses: data, delay: this.delay * 1000}).then(resp => {
+ const param = { trainStatuses: data };
+ if (this.delay) {
+ param.delay = this.delay * 1000;
+ }
+ updateActionCondition(this.$route.query.group, this.actionId, param).then(resp => {
this.tableData = data;
this.initData();
this.$message.success('添加条件成功');
From 192ca672578389e019df9a473b7e9c0c1e60ca6b Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Thu, 5 Nov 2020 09:38:50 +0800
Subject: [PATCH 32/43] =?UTF-8?q?=E5=89=A7=E6=9C=AC=E5=8A=A8=E4=BD=9C?=
=?UTF-8?q?=E8=A7=A6=E5=8F=91=E6=9D=A1=E4=BB=B6=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/scriptManage/conditionManage.vue | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/views/scriptManage/conditionManage.vue b/src/views/scriptManage/conditionManage.vue
index 6ce89986d..b0b879917 100644
--- a/src/views/scriptManage/conditionManage.vue
+++ b/src/views/scriptManage/conditionManage.vue
@@ -140,12 +140,13 @@ export default {
methods:{
doShow(actionInfo) {
this.tableData = [];
- this.tableData = (actionInfo.condition || {}).trainStatuses || [];
- this.delay = ((actionInfo.condition || {}).delay || 0) / 1000;
+ this.delay = 0;
this.actionId = actionInfo.id;
getActionCondition(this.$route.query.group, this.actionId).then(resp => {
- this.tableData = resp.data.trainStatuses;
- this.delay = (resp.data.delay || 0) / 1000;
+ if (resp.data) {
+ this.tableData = resp.data.trainStatuses;
+ this.delay = (resp.data.delay || 0) / 1000;
+ }
}).catch(()=> {
this.$message.error('获取条件失败');
});
From 38f3f82e18eacfe7de70afa5e997da226fffd079 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Thu, 5 Nov 2020 13:17:40 +0800
Subject: [PATCH 33/43] =?UTF-8?q?=E5=89=A7=E6=9C=AC=E5=BD=95=E5=88=B6?=
=?UTF-8?q?=E4=BC=9A=E8=AF=9D=E6=96=87=E5=AD=97=E5=8F=91=E9=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/chat.js | 7 +++++++
src/views/newMap/chatView/chatBox.vue | 23 ++++++++++++++++++++---
src/views/newMap/displayNew/index.vue | 2 +-
src/views/scriptManage/home.vue | 2 +-
4 files changed, 29 insertions(+), 5 deletions(-)
diff --git a/src/api/chat.js b/src/api/chat.js
index 0cf5433f3..7d58593cc 100644
--- a/src/api/chat.js
+++ b/src/api/chat.js
@@ -53,3 +53,10 @@ export function overConversationMessage(group, conversationMessageId) {
method: 'put'
});
}
+/** 发送会话文字 */
+export function sendConversationText (group, id, content) {
+ return request({
+ url: `/api/simulation/${group}/conversation/${id}/chat/text?content=${content}`,
+ method: 'post'
+ });
+}
diff --git a/src/views/newMap/chatView/chatBox.vue b/src/views/newMap/chatView/chatBox.vue
index 7d21ef66e..7ab2b4daf 100644
--- a/src/views/newMap/chatView/chatBox.vue
+++ b/src/views/newMap/chatView/chatBox.vue
@@ -88,6 +88,8 @@
+
+
@@ -138,7 +140,7 @@
-
+
@@ -150,7 +152,7 @@ import ChatSetting from './chatSetting';
import ChatContent from './chatContent';
import ChatMemberList from './chatMemberList';
import RecordRTC from 'recordrtc';
-import {sendSimulationConversition, startConversition, overSimulationConversition, getAllConversition, acceptConversitionInvite} from '@/api/chat';
+import {sendSimulationConversition, startConversition, overSimulationConversition, getAllConversition, acceptConversitionInvite, sendConversationText} from '@/api/chat';
import { getSessionStorage } from '@/utils/auth';
export default {
name: 'ChatBox',
@@ -210,13 +212,17 @@ export default {
commonMessageList: [],
conversitionStateMap:{},
myMemberId: '',
- audioPlay:false
+ audioPlay:false,
+ textContent: ''
};
},
computed:{
isButtonShow() {
return this.userRole != 'AUDIENCE';
},
+ contentSend() {
+ return !this.textContent;
+ },
project() {
return getSessionStorage('project');
},
@@ -241,6 +247,9 @@ export default {
},
privateMessageList() {
return (this.conversitionStateMap[this.myMemberId] || {privateMessageList: []}).privateMessageList;
+ },
+ isRecord() {
+ return !!this.$route.query.record;
}
},
watch:{
@@ -764,6 +773,7 @@ export default {
fd.append('file', blob);
sendSimulationConversition(that.group, that.conversitionId, fd)
.then((data) => {
+ that.textContent = '';
})
.catch(error => {
console.log(error);
@@ -777,6 +787,13 @@ export default {
}
});
},
+ sendnText() {
+ sendConversationText(this.group, this.conversitionId, this.textContent).then(resp => {
+ this.textContent = '';
+ }).catch(() => {
+ this.$message.error('发送会话文字失败');
+ });
+ },
handleSetting() {
this.$refs.chatSetting.doShow();
},
diff --git a/src/views/newMap/displayNew/index.vue b/src/views/newMap/displayNew/index.vue
index 3c6b59f50..0d0158e1e 100644
--- a/src/views/newMap/displayNew/index.vue
+++ b/src/views/newMap/displayNew/index.vue
@@ -181,7 +181,7 @@ export default {
setCenter(code) {
this.$jlmap.setCenter(code);
},
- // 设置 各个按钮的定位
+ // 设置各个按钮的定位
setPosition() {
this.$nextTick(() => {
this.offset = 10;
diff --git a/src/views/scriptManage/home.vue b/src/views/scriptManage/home.vue
index 2a099a1bb..0e8672105 100644
--- a/src/views/scriptManage/home.vue
+++ b/src/views/scriptManage/home.vue
@@ -145,7 +145,7 @@ export default {
},
drawUp(index, row) {
scriptRecordNotifyNew(row.id).then(resp => {
- const query = { mapId: row.mapId, group: resp.data, scriptId: row.id, lang:row.lang, lineCode:this.$route.query.lineCode};
+ const query = { mapId: row.mapId, group: resp.data, scriptId: row.id, lang:row.lang, lineCode:this.$route.query.lineCode, record: true};
this.$router.push({ path: `${UrlConfig.scriptDisplayNew}/script`, query });
launchFullscreen();
}).catch(error => {
From 3639cc32e6b86217786497dfbbaef777bb93b535 Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Thu, 5 Nov 2020 13:33:38 +0800
Subject: [PATCH 34/43] =?UTF-8?q?=E5=89=A7=E6=9C=AC=E5=8A=A8=E4=BD=9C=20?=
=?UTF-8?q?=E8=BD=AC=E6=8D=A2=E5=87=BD=E6=95=B0=E4=BB=A3=E7=A0=81=E8=B0=83?=
=?UTF-8?q?=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/newMap/chatView/chatBox.vue | 4 +--
.../component/covertOperation.js | 35 ++++++++++++++++++-
2 files changed, 36 insertions(+), 3 deletions(-)
diff --git a/src/views/newMap/chatView/chatBox.vue b/src/views/newMap/chatView/chatBox.vue
index 7d21ef66e..fef395ce4 100644
--- a/src/views/newMap/chatView/chatBox.vue
+++ b/src/views/newMap/chatView/chatBox.vue
@@ -138,7 +138,7 @@
-
+
@@ -767,7 +767,7 @@ export default {
})
.catch(error => {
console.log(error);
- this.$message.error('语音发送失败: ' + error.message);
+ that.$message.error('语音发送失败: ' + error.message);
});
if (that.microphone) {
that.microphone.stop();
diff --git a/src/views/newMap/displayNew/scriptDisplay/component/covertOperation.js b/src/views/newMap/displayNew/scriptDisplay/component/covertOperation.js
index e63271e3b..58ce5f82a 100644
--- a/src/views/newMap/displayNew/scriptDisplay/component/covertOperation.js
+++ b/src/views/newMap/displayNew/scriptDisplay/component/covertOperation.js
@@ -51,6 +51,24 @@ export const operateEnum = {
Section_Set_Limit_Speed:{
code:'speedLimitValue',
name:'限速值为'
+ },
+ Train_Load_Spare_Train:{
+ isList:true,
+ params:[
+ {
+ code:'groupNumber',
+ name:'车组号'
+ },
+ {
+ code:'right',
+ name:'方向',
+ function:judgeUpDown
+ // result:[
+ // {data:true, name:'右行', judge:'='},
+ // {data:false, name:'左行', judge:'='}
+ // ]
+ }
+ ]
}
// Section_Cancel_Limit_Speed:{
// code:'speedLimitValue',
@@ -234,6 +252,9 @@ export function covertOperate(operationType, operationParamMap) {
if (device == 'CM') {
device = 'ControlConvertMenu';
}
+ if (operationType == 'Train_Load_Spare_Train') {
+ device = 'Section';
+ }
const list = ['Train_Update_Type',
'Train_Add_Train_Trace',
'Train_Remove_Train_Trace',
@@ -363,7 +384,11 @@ function covertOperation(deviceType, operationParamMap, operationType) {
}
});
} else {
- paramName += ',值为' + data;
+ if (param.function) {
+ paramName += covertFunction(param.function, data);
+ } else {
+ paramName += ',值为' + data;
+ }
}
if (index != params.length - 1) {
@@ -403,3 +428,11 @@ function getStationResultById(stationResult) {
return station.name + ' ' + param;
}
+function judgeUpDown(right) {
+ if (store.state.map.mapConfig.upRight) {
+ return right ? '上行' : '下行';
+ } else {
+ return right ? '下行' : '上行';
+ }
+}
+
From af42284fefda0d9d146404a71a8e0095b1f28a51 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Thu, 5 Nov 2020 13:54:20 +0800
Subject: [PATCH 35/43] =?UTF-8?q?=E4=BC=9A=E8=AF=9D=E9=97=AE=E9=A2=98?=
=?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/newMap/chatView/chatBox.vue | 16 ++++++----------
src/views/newMap/chatView/chatContent.vue | 1 -
2 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/src/views/newMap/chatView/chatBox.vue b/src/views/newMap/chatView/chatBox.vue
index 7ab2b4daf..8a19390ba 100644
--- a/src/views/newMap/chatView/chatBox.vue
+++ b/src/views/newMap/chatView/chatBox.vue
@@ -236,7 +236,6 @@ export default {
return this.$store.state.user.id;
},
conversitionId() {
- // console.log(this.conversitionStateMap, this.myMemberId, this.conversitionStateMap[this.myMemberId], (this.conversitionStateMap[this.myMemberId] || {conversitionId:''}));
return (this.conversitionStateMap[this.myMemberId] || {conversitionId:''}).conversitionId;
},
connect() {
@@ -327,9 +326,6 @@ export default {
if (activeTrainList.length <= 0) {
this.resetCoversition();
}
- // if (this.$refs.tree) {
- // this.$refs.tree.filter(this.queryMember);
- // }
},
'$store.state.training.simulationUserList': {
handler(val, o) {
@@ -486,7 +482,10 @@ export default {
},
'$store.state.socket.simulationReset': function () { // 仿真重置
this.conversitionStateMap = {};
- document.querySelector('#teleName').classList.remove('flash');
+ const teleName = document.querySelector('#teleName');
+ if (teleName) {
+ teleName.classList.remove('flash');
+ }
document.querySelector('#teleRing').pause();
},
'$store.state.socket.acceptConversionInvite':function(val) {
@@ -1002,15 +1001,11 @@ export default {
},
changeMessageList(data) {
this.commonMessageList.push(data.message);
- // if (this.conversitionStateMap[data.message.memberId]) {
- // this.conversitionStateMap[data.message.memberId].privateMessageList.push(data.message);
- // }
if (this.conversitionStateMap[data.message.memberId]) {
(this.conversitionStateMap[data.message.memberId].privateMemberList || []).forEach(member => {
this.conversitionStateMap[member.memberId] && this.conversitionStateMap[member.memberId].privateMessageList.push(data.message);
});
}
- // console.log(this.commonConversation, this.conversitionId, data.id, this.myMemberId, this.conversitionId === data.id, this.conversitionStateMap, '/////////////////////////');
if (this.commonConversation) {
this.messageList.push(data.message);
} else if (!this.commonConversation && this.conversitionId === data.id) {
@@ -1046,8 +1041,9 @@ export default {
resetCoversition() {
this.commonMessageList = [];
this.conversitionStateMap = {};
- this.messageList = this.commonMessageList;
+ this.messageList = [];
this.connectSuccess = false;
+ this.$store.dispatch('scriptRecord/updateAudioPlay', false);
this.treeData.forEach(item => {
if (item.children) {
const memberList = Object.values(item.children);
diff --git a/src/views/newMap/chatView/chatContent.vue b/src/views/newMap/chatView/chatContent.vue
index 6134057c4..93c57e983 100644
--- a/src/views/newMap/chatView/chatContent.vue
+++ b/src/views/newMap/chatView/chatContent.vue
@@ -96,7 +96,6 @@ export default {
this.isPlay = true;
this.$store.dispatch('scriptRecord/updateAudioPlay', true);
this.playAllAudio();
- //
}
}
this.scrollTop();
From d5371da85cc8c82ec7c2d85cb7a9e879cc3fb3d8 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Thu, 5 Nov 2020 14:40:08 +0800
Subject: [PATCH 36/43] =?UTF-8?q?=E4=BC=9A=E8=AF=9D=E6=96=87=E5=AD=97?=
=?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/chat.js | 7 ++++---
src/views/newMap/chatView/chatBox.vue | 8 ++++----
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/src/api/chat.js b/src/api/chat.js
index 7d58593cc..81cedad06 100644
--- a/src/api/chat.js
+++ b/src/api/chat.js
@@ -54,9 +54,10 @@ export function overConversationMessage(group, conversationMessageId) {
});
}
/** 发送会话文字 */
-export function sendConversationText (group, id, content) {
+export function sendConversationText (group, id, data) {
return request({
- url: `/api/simulation/${group}/conversation/${id}/chat/text?content=${content}`,
- method: 'post'
+ url: `/api/simulation/${group}/conversation/${id}/chat/text?`,
+ method: 'post',
+ data
});
}
diff --git a/src/views/newMap/chatView/chatBox.vue b/src/views/newMap/chatView/chatBox.vue
index d3114946b..b4e84590a 100644
--- a/src/views/newMap/chatView/chatBox.vue
+++ b/src/views/newMap/chatView/chatBox.vue
@@ -89,7 +89,7 @@
-
+
@@ -786,8 +786,8 @@ export default {
}
});
},
- sendnText() {
- sendConversationText(this.group, this.conversitionId, this.textContent).then(resp => {
+ sendText() {
+ sendConversationText(this.group, this.conversitionId, {content: this.textContent}).then(resp => {
this.textContent = '';
}).catch(() => {
this.$message.error('发送会话文字失败');
@@ -1043,7 +1043,7 @@ export default {
this.conversitionStateMap = {};
this.messageList = [];
this.connectSuccess = false;
- this.$store.dispatch('scriptRecord/updateAudioPlay', false);
+ this.$store.dispatch('scriptRecord/updateAudioPlay', false);
this.treeData.forEach(item => {
if (item.children) {
const memberList = Object.values(item.children);
From 582aa76b4d79f8810210c5d05dea57cec3541189 Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Thu, 5 Nov 2020 15:24:41 +0800
Subject: [PATCH 37/43] =?UTF-8?q?=E8=BF=90=E8=A1=8C=E5=9B=BE=E7=BC=96?=
=?UTF-8?q?=E8=BE=91=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../planMonitor/editTool/menus/modifyingTask.vue | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/src/views/planMonitor/editTool/menus/modifyingTask.vue b/src/views/planMonitor/editTool/menus/modifyingTask.vue
index 8db9d6158..360411ab5 100644
--- a/src/views/planMonitor/editTool/menus/modifyingTask.vue
+++ b/src/views/planMonitor/editTool/menus/modifyingTask.vue
@@ -190,7 +190,7 @@
- {{ $t('planMonitor.modifying.detail') }}
+ {{ '经停转换轨 / 站台轨:' }}
@@ -406,17 +406,24 @@ export default {
planId: this.$route.query.planId || this.loadRunPlanId,
SDTNumber: `${this.serviceNumber}${this.tripNumber}`
};
- this.editModel.routingList = [];
+ this.routingList = [];
getRoutingBySDTNumber(model).then(resp => { // 根据车次号查询交路
// const routingObj = resp.data;
const editData = this.$store.state.runPlan.editData[this.serviceNumber];
if (editData) {
const trainInfo = editData.trainMap[this.tripNumber];
const lastIndex = trainInfo.stationTimeList.length - 1;
+ this.routingList.push({
+ code:resp.data.code,
+ startStationCode:resp.data.startStationCode,
+ endStationCode:resp.data.endStationCode,
+ endSectionCode:resp.data.endSectionCode,
+ startSectionCode:resp.data.startSectionCode
+ });
this.editModel = {
tripNumber: this.tripNumber,
startStationCode: resp.data.startStationCode,
- startTime: formatTime(trainInfo.stationTimeList[0].secondTime + 7200),
+ startTime: formatTime(trainInfo.stationTimeList[1].secondTime + 7200),
endStationCode: resp.data.endStationCode,
endTime: formatTime(trainInfo.stationTimeList[lastIndex].secondTime + 7200),
routingCode : resp.data.code,
From 3d0311163103ef1ba25faf294d2d9689f4c1b971 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Thu, 5 Nov 2020 15:31:28 +0800
Subject: [PATCH 38/43] =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/scriptManage/conditionManage.vue | 33 +++++++++++++---------
src/views/scriptManage/getAction.vue | 12 ++++++--
src/views/scriptManage/tipScriptRecord.vue | 6 ++--
3 files changed, 32 insertions(+), 19 deletions(-)
diff --git a/src/views/scriptManage/conditionManage.vue b/src/views/scriptManage/conditionManage.vue
index b0b879917..b8d4fb438 100644
--- a/src/views/scriptManage/conditionManage.vue
+++ b/src/views/scriptManage/conditionManage.vue
@@ -1,7 +1,7 @@
条件管理
-
+
@@ -138,19 +138,23 @@ export default {
}
},
methods:{
- doShow(actionInfo) {
- this.tableData = [];
- this.delay = 0;
- this.actionId = actionInfo.id;
- getActionCondition(this.$route.query.group, this.actionId).then(resp => {
- if (resp.data) {
- this.tableData = resp.data.trainStatuses;
- this.delay = (resp.data.delay || 0) / 1000;
- }
- }).catch(()=> {
- this.$message.error('获取条件失败');
- });
- this.dialogVisible = true;
+ doShow(actionId) {
+ if (this.actionId === actionId && this.dialogVisible) {
+ this.handleClose();
+ } else {
+ this.tableData = [];
+ this.delay = 0;
+ this.actionId = actionId;
+ getActionCondition(this.$route.query.group, this.actionId).then(resp => {
+ if (resp.data) {
+ this.tableData = resp.data.trainStatuses;
+ this.delay = (resp.data.delay || 0) / 1000;
+ }
+ }).catch(()=> {
+ this.$message.error('获取条件失败');
+ });
+ this.dialogVisible = true;
+ }
},
handleClose() {
this.dialogVisible = false;
@@ -274,5 +278,6 @@ export default {
background: #FFF;
width: 400px;
height: 600px;
+ border-radius: 5px;
}
diff --git a/src/views/scriptManage/getAction.vue b/src/views/scriptManage/getAction.vue
index f5916281a..d14ddc853 100644
--- a/src/views/scriptManage/getAction.vue
+++ b/src/views/scriptManage/getAction.vue
@@ -43,7 +43,7 @@
- 触发条件
+ {{ conditionActionId === actionInfo.id? '关闭条件':'触发条件' }}
{{ $t('scriptRecord.modifyConversitionButton') }}
确定
取消
@@ -86,7 +86,8 @@ export default {
modifyTextLoading:false,
deleteLoading:false,
// behaviorName:"",
- memberName: ''
+ memberName: '',
+ conditionActionId: ''
};
},
watch: {
@@ -114,7 +115,12 @@ export default {
this.loadOtherData(this.$route.query);
},
handleCondition(actionInfo) {
- this.$emit('showConditionManage', actionInfo);
+ if (this.conditionActionId === actionInfo.id) {
+ this.conditionActionId = '';
+ } else {
+ this.conditionActionId = actionInfo.id;
+ }
+ this.$emit('showConditionManage', actionInfo.id);
},
covertData(memberList, element) {
const member = memberList.find(elem=>{ return elem.id == element.memberId; });
diff --git a/src/views/scriptManage/tipScriptRecord.vue b/src/views/scriptManage/tipScriptRecord.vue
index c46217fa7..5612a9e39 100644
--- a/src/views/scriptManage/tipScriptRecord.vue
+++ b/src/views/scriptManage/tipScriptRecord.vue
@@ -430,6 +430,8 @@ export default {
this.quickChangeMember.list = [new_member];
this.$emit('resetChat');
}
+ this.$refs.conditionManage && this.$refs.conditionManage.handleClose();
+ this.$refs.getAction.conditionActionId = '';
this.$store.dispatch('training/setPrdType', '02');
this.$store.dispatch('map/resetActiveTrainList');
this.$store.dispatch('scriptRecord/updateRole', new_member.type + ':' + this.orignalUserRoleId);
@@ -558,8 +560,8 @@ export default {
this.$messageBox(error.message);
});
},
- showConditionManage(actionInfo) {
- this.$refs.conditionManage.doShow(actionInfo);
+ showConditionManage(actionId) {
+ this.$refs.conditionManage.doShow(actionId);
}
}
};
From 241633ef53e160ec299ea0ee493e14d4a0518b0b Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Thu, 5 Nov 2020 15:50:35 +0800
Subject: [PATCH 39/43] =?UTF-8?q?=E7=AB=9E=E8=B5=9B=20=E9=80=89=E6=8B=A9?=
=?UTF-8?q?=E8=A7=92=E8=89=B2=20=20=E9=BB=98=E8=AE=A4=E9=80=89id=E6=9C=80?=
=?UTF-8?q?=E5=B0=8F=E7=9A=84=E8=A1=8C=E8=B0=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../displayNew/dispatherContest/index.vue | 20 +++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/views/newMap/displayNew/dispatherContest/index.vue b/src/views/newMap/displayNew/dispatherContest/index.vue
index babc8d6ac..52f6b213f 100644
--- a/src/views/newMap/displayNew/dispatherContest/index.vue
+++ b/src/views/newMap/displayNew/dispatherContest/index.vue
@@ -517,16 +517,16 @@ export default {
}
});
if (currentPlayList.length > 0) {
- if (currentPlayList.length > 1) {
- this.currentPlayList = currentPlayList;
- this.$refs.selectRole.doShow();
- } else {
- const member = currentPlayList[0];
- const memberId = member.id;
- (this.$store.state.training.memberData[member.id] || {}).userId = this.$store.state.user.id;
- (this.$store.state.training.memberData[member.id] || {}).disabled = true;
- this.runScriptMode(memberId);
- }
+ // if (currentPlayList.length > 1) {
+ // this.currentPlayList = currentPlayList;
+ // this.$refs.selectRole.doShow();
+ // } else {
+ const member = currentPlayList[0];
+ const memberId = member.id;
+ (this.$store.state.training.memberData[member.id] || {}).userId = this.$store.state.user.id;
+ (this.$store.state.training.memberData[member.id] || {}).disabled = true;
+ this.runScriptMode(memberId);
+ // }
}
},
runScriptMode(memberId) {
From cfc6f9648a32041a14827cfa6d1e001eae20a2ea Mon Sep 17 00:00:00 2001
From: lVAL
Date: Thu, 5 Nov 2020 16:58:42 +0800
Subject: [PATCH 40/43] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=87=8D=E7=BD=AE?=
=?UTF-8?q?=E8=83=8C=E6=99=AF=EF=BC=8C=E6=8C=89=E8=AE=A1=E5=88=92=E8=A1=8C?=
=?UTF-8?q?=E8=BD=A6=E7=8A=B6=E6=80=81=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE?=
=?UTF-8?q?=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/newMap/displayNew/index.vue | 4 +++-
.../scriptDisplay/scriptRecord/index.vue | 15 +++++----------
2 files changed, 8 insertions(+), 11 deletions(-)
diff --git a/src/views/newMap/displayNew/index.vue b/src/views/newMap/displayNew/index.vue
index 0d0158e1e..4b46cb4f4 100644
--- a/src/views/newMap/displayNew/index.vue
+++ b/src/views/newMap/displayNew/index.vue
@@ -237,7 +237,9 @@ export default {
if (this.isDemon) {
this.$refs.menuDemon.initPlannedDriving(this.planRunning); // 是否正在按计划行车
} else if (this.isScript) {
- // this.$refs.menuScript.initPlannedDriving(resp.data.planRunning);
+ if (resp.data.planRunning) {
+ this.$store.commit('training/start');
+ }
}
} else if (resp && resp.code == 200 && resp.data && resp.data.dataError) {
this.dataError = true;
diff --git a/src/views/newMap/displayNew/scriptDisplay/scriptRecord/index.vue b/src/views/newMap/displayNew/scriptDisplay/scriptRecord/index.vue
index 0853d6856..1492e9d72 100644
--- a/src/views/newMap/displayNew/scriptDisplay/scriptRecord/index.vue
+++ b/src/views/newMap/displayNew/scriptDisplay/scriptRecord/index.vue
@@ -98,7 +98,6 @@ export default {
},
data() {
return {
- isDisable: false,
isScriptCommand:false,
isReplaceBg: false,
userRole:''
@@ -123,7 +122,10 @@ export default {
},
isStation() {
return this.$store.state.training.prdType == '01';
- }
+ },
+ isDisable() {
+ return this.$store.state.training.started;
+ }
},
watch: {
'$store.state.scriptRecord.bgSet':function (val) {
@@ -161,7 +163,7 @@ export default {
},
'$store.state.scriptRecord.userRole':function (val) {
this.userRole = val;
- }
+ }
},
beforeDestroy() {
// this.clearAutoSave();
@@ -182,18 +184,13 @@ export default {
selectBeginTime() {
this.$refs.setTime.doShow();
},
- resetBeginTime() {
- this.isDisable = false;
- },
start(model) {
- this.isDisable = true;
const data = {
time: model.initTime
};
ranAsPlan(data, this.group).then(res => {
this.$store.dispatch('training/setInitTime', +new Date(`${new Date().toLocaleDateString()} ${model.initTime}`));
}).catch((error) => {
- this.isDisable = false;
if (error.code == '5001') {
this.$messageBox(this.$t('error.mapDataError') + ',' + this.$t('error.startSimulationFailed'));
} else if (error.code == '5002') {
@@ -218,7 +215,6 @@ export default {
});
},
end() {
- this.isDisable = false;
exitRunPlan(this.group).then(() => {
this.$store.dispatch('training/over').then(() => {
this.$store.dispatch('training/setMapDefaultState').then(() => {
@@ -228,7 +224,6 @@ export default {
});
});
}).catch(() => {
- this.isDisable = true;
this.$messageBox(this.$t('display.demon.endSimulationFail'));
});
},
From f09b1aa17d092a646f6173360446ddaa6b50b1af Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Thu, 5 Nov 2020 17:32:48 +0800
Subject: [PATCH 41/43] =?UTF-8?q?=E6=8C=89=E8=AE=A1=E5=88=92=E8=A1=8C?=
=?UTF-8?q?=E8=BD=A6=E7=8A=B6=E6=80=81=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
---
.../newMap/displayNew/dispatherContest/index.vue | 13 +++----------
src/views/newMap/displayNew/index.vue | 9 ++-------
src/views/newMap/displayNew/menuDemon.vue | 12 +++---------
src/views/newMap/jointTrainingNew/menuDemon.vue | 13 +++----------
4 files changed, 11 insertions(+), 36 deletions(-)
diff --git a/src/views/newMap/displayNew/dispatherContest/index.vue b/src/views/newMap/displayNew/dispatherContest/index.vue
index 52f6b213f..83814e130 100644
--- a/src/views/newMap/displayNew/dispatherContest/index.vue
+++ b/src/views/newMap/displayNew/dispatherContest/index.vue
@@ -149,7 +149,6 @@ export default {
},
data() {
return {
- isDisable: false,
tryTime: 0, // 进入页面多少秒
timeNow: 0, // 进入页面 相对时间
time: null, // 定时器
@@ -198,6 +197,9 @@ export default {
},
scriptModeList() {
return ScriptMode;
+ },
+ isDisable() {
+ return this.$store.state.training.started;
}
},
watch: {
@@ -236,8 +238,6 @@ export default {
const initTime = new Date(this.$store.state.training.initTime || null);
const model = {initTime:this.formatTime(initTime)};
this.start(model);
- } else {
- this.isDisable = true;
}
}
},
@@ -286,9 +286,6 @@ export default {
const ss = prefixIntrger(initTime.getSeconds(), 2);
return `${hh}:${mm}:${ss}`;
},
- initPlannedDriving(isDisable) {
- this.isDisable = isDisable;
- },
loadInitData() {
const data = {
mapId: this.$route.query.mapId,
@@ -334,7 +331,6 @@ export default {
});
},
start(model) { // 开始仿真
- this.isDisable = true;
const data = {
time: model.initTime
};
@@ -344,7 +340,6 @@ export default {
ranAsPlan(data, this.group).then(res => {
this.$store.dispatch('training/setInitTime', +new Date(`${new Date().toLocaleDateString()} ${model.initTime}`));
}).catch(error => {
- this.isDisable = false;
if (error.code == '5001') {
this.$messageBox(this.$t('error.mapDataError') + ',' + this.$t('error.startSimulationFailed'));
} else if (error.code == '5002') {
@@ -375,7 +370,6 @@ export default {
this.$refs.demonMenu.hideScheduling(run);
},
end() {
- this.isDisable = false;
exitRunPlan(this.group).then(() => {
this.$store.dispatch('training/over').then(() => {
this.$store.dispatch('training/setMapDefaultState').then(() => {
@@ -385,7 +379,6 @@ export default {
});
});
}).catch(() => {
- this.isDisable = true;
this.$messageBox(this.$t('display.demon.endSimulationFail'));
});
},
diff --git a/src/views/newMap/displayNew/index.vue b/src/views/newMap/displayNew/index.vue
index 4b46cb4f4..08283ca47 100644
--- a/src/views/newMap/displayNew/index.vue
+++ b/src/views/newMap/displayNew/index.vue
@@ -233,13 +233,8 @@ export default {
this.$store.dispatch('training/setInitTime', +new Date(`${new Date().toLocaleDateString()} ${timeFormat(resp.data.systemTime)}`));
this.$store.dispatch('training/countTime');
this.planRunning = resp.data.planRunning;
-
- if (this.isDemon) {
- this.$refs.menuDemon.initPlannedDriving(this.planRunning); // 是否正在按计划行车
- } else if (this.isScript) {
- if (resp.data.planRunning) {
- this.$store.commit('training/start');
- }
+ if (resp.data.planRunning) {
+ this.$store.commit('training/start');
}
} else if (resp && resp.code == 200 && resp.data && resp.data.dataError) {
this.dataError = true;
diff --git a/src/views/newMap/displayNew/menuDemon.vue b/src/views/newMap/displayNew/menuDemon.vue
index 57e8d5b9f..b48b9eccf 100644
--- a/src/views/newMap/displayNew/menuDemon.vue
+++ b/src/views/newMap/displayNew/menuDemon.vue
@@ -98,7 +98,6 @@ export default {
},
data() {
return {
- isDisable: false,
tryTime: 0, // 进入页面多少秒
timeNow: 0, // 进入页面 相对时间
time: null, // 定时器
@@ -140,6 +139,9 @@ export default {
},
projectDevice() {
return this.$route.query.projectDevice;
+ },
+ isDisable() {
+ return this.$store.state.training.started;
}
},
watch: {
@@ -210,9 +212,6 @@ export default {
console.log(error);
}
},
- initPlannedDriving(isDisable) {
- this.isDisable = isDisable;
- },
loadInitData() {
const data = {
mapId: this.$route.query.mapId,
@@ -239,7 +238,6 @@ export default {
this.$refs.setTime.doShow();
},
start(model) { // 开始仿真
- this.isDisable = true;
const data = {
time: model.initTime
};
@@ -249,7 +247,6 @@ export default {
ranAsPlan(data, this.group).then(res => {
this.$store.dispatch('training/setInitTime', +new Date(`${new Date().toLocaleDateString()} ${model.initTime}`));
}).catch(error => {
- this.isDisable = false;
if (error.code == '5001') {
this.$messageBox(this.$t('error.mapDataError') + ',' + this.$t('error.startSimulationFailed'));
} else if (error.code == '5002') {
@@ -280,7 +277,6 @@ export default {
this.$refs.demonMenu.hideScheduling(run);
},
end() {
- this.isDisable = false;
exitRunPlan(this.group).then(() => {
this.$store.dispatch('training/over').then(() => {
this.$store.dispatch('training/setMapDefaultState').then(() => {
@@ -290,14 +286,12 @@ export default {
});
});
}).catch(() => {
- this.isDisable = true;
this.$messageBox(this.$t('display.demon.endSimulationFail'));
});
},
handleQuitQuest() {
quitScriptNew(this.group).then(resp => {
getSimulationInfoNew(this.group).then((res)=>{
- this.isDisable = false;
EventBus.$emit('clearRunSeries');
this.quitQuest();
this.initLoadPage();
diff --git a/src/views/newMap/jointTrainingNew/menuDemon.vue b/src/views/newMap/jointTrainingNew/menuDemon.vue
index 6d45b0a21..b7fe108be 100644
--- a/src/views/newMap/jointTrainingNew/menuDemon.vue
+++ b/src/views/newMap/jointTrainingNew/menuDemon.vue
@@ -109,7 +109,6 @@ export default {
},
data() {
return {
- isDisable: false,
backLoading: false,
chatShow: true,
jsStart: true,
@@ -161,6 +160,9 @@ export default {
isDeviceLogin() {
const typeList = ['LW', 'CW'];
return typeList.includes(this.$route.query.type);
+ },
+ isDisable() {
+ return this.$store.state.training.started;
}
},
watch: {
@@ -172,11 +174,6 @@ export default {
});
}
},
- '$store.state.training.started': function (val) {
- if (val) {
- this.isDisable = true;
- }
- },
'$store.state.socket.simulationOver':function(val) {
if (val && this.project == 'refereeJsxt') {
this.$router.go(-1);
@@ -284,7 +281,6 @@ export default {
},
// 开始仿真
start(model) {
- this.isDisable = true;
const data = {
time: model.initTime
};
@@ -294,7 +290,6 @@ export default {
}
this.$store.dispatch('training/setInitTime', +new Date(`${new Date().toLocaleDateString()} ${model.initTime}`));
}).catch((error) => {
- this.isDisable = false;
if (error.code == '5001') {
this.$messageBox(this.$t('error.mapDataError') + ',' + this.$t('error.startSimulationFailed'));
} else if (error.code == '5002') {
@@ -319,13 +314,11 @@ export default {
});
},
end() {
- this.isDisable = false;
exitRunPlan(this.group).then(()=>{
this.$store.dispatch('map/setTrainWindowShow', false);
this.$store.dispatch('map/resetActiveTrainList', false);
}).catch(() => {
this.$store.dispatch('training/over').then(() => {
- this.isDisable = true;
this.$store.dispatch('map/resetActiveTrainList', false);
this.$messageBox(this.$t('error.endSimulationFailed'));
});
From a212984e3db2cb3c9ae694b232b8fb4fb0abb989 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Thu, 5 Nov 2020 17:50:35 +0800
Subject: [PATCH 42/43] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BB=BF=E7=9C=9F?=
=?UTF-8?q?=E5=9C=BA=E6=99=AF=E5=8A=A0=E8=BD=BD=E6=B6=88=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/store/modules/socket.js | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/store/modules/socket.js b/src/store/modules/socket.js
index b659b9c13..cbf64cbaf 100644
--- a/src/store/modules/socket.js
+++ b/src/store/modules/socket.js
@@ -141,6 +141,13 @@ function handle(state, data) {
case 'Simulation_Alarm':
state.simulationAlarmInfo = msg;
break;
+ case 'Simulation_Scenes_Reload':
+ if (msg) {
+ store.dispatch('training/start');
+ } else {
+ store.dispatch('training/over');
+ }
+ break;
}
}
From 02615110a26888463e0f3924531b5e6ac654286b Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Thu, 5 Nov 2020 18:02:02 +0800
Subject: [PATCH 43/43] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=9D=A1=E4=BB=B6?=
=?UTF-8?q?=E7=AE=A1=E7=90=86=E5=85=B3=E9=97=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/scriptManage/conditionManage.vue | 1 +
src/views/scriptManage/tipScriptRecord.vue | 5 ++++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/views/scriptManage/conditionManage.vue b/src/views/scriptManage/conditionManage.vue
index b8d4fb438..ce7bfa0cd 100644
--- a/src/views/scriptManage/conditionManage.vue
+++ b/src/views/scriptManage/conditionManage.vue
@@ -158,6 +158,7 @@ export default {
},
handleClose() {
this.dialogVisible = false;
+ this.$emit('clearConditionActionId');
this.initData();
},
getSectionName(code) {
diff --git a/src/views/scriptManage/tipScriptRecord.vue b/src/views/scriptManage/tipScriptRecord.vue
index 5612a9e39..ddc1ca437 100644
--- a/src/views/scriptManage/tipScriptRecord.vue
+++ b/src/views/scriptManage/tipScriptRecord.vue
@@ -66,7 +66,7 @@
-
+