From 3ffffffe8de65711987bf4a0f263da6a0da441a8 Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Fri, 28 Aug 2020 14:43:30 +0800
Subject: [PATCH 1/5] =?UTF-8?q?=E5=AE=81=E6=B3=A2=E4=B8=80=E5=8F=B7?=
=?UTF-8?q?=E7=BA=BF=E5=AE=9E=E8=AE=AD=E8=B0=83=E6=95=B4=20=E5=89=A7?=
=?UTF-8?q?=E6=9C=AC=E7=BC=96=E5=88=B6=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
---
.../theme/ningbo_01/operationConfig.js | 27 ++++++--
src/store/modules/training.js | 2 +-
.../lesson/trainingRule/detail/index.vue | 4 +-
src/views/newMap/chatView/chatBox.vue | 3 +-
src/views/newMap/jlmapNew/index.vue | 2 +-
.../mapsystemNew/plugin/trainingtip.vue | 2 +-
.../newMapdraft/mapoperate/ControlDraft.vue | 66 ++++++++++---------
7 files changed, 64 insertions(+), 42 deletions(-)
diff --git a/src/jmapNew/theme/ningbo_01/operationConfig.js b/src/jmapNew/theme/ningbo_01/operationConfig.js
index 2c986de89..8781a1595 100644
--- a/src/jmapNew/theme/ningbo_01/operationConfig.js
+++ b/src/jmapNew/theme/ningbo_01/operationConfig.js
@@ -221,7 +221,6 @@ export default {
{ deviceType: '06', orderNum: 2, operateCode: '0012', tip: '鼠标左键点击【确定】按钮' }
]
},
-
{
maxDuration: 15,
minDuration: 8,
@@ -766,8 +765,8 @@ export default {
minDuration: 8,
operateType: 'Signal_Set_Auto_Turn_Back',
skinCode: '06',
- trainingName: '设置自动折返进路({3})',
- trainingRemark: '设置自动折返进路',
+ trainingName: '设置自动折返({3})',
+ trainingRemark: '设置自动折返',
trainingType: 'Signal',
productTypes: ['02'],
stepVOList: [
@@ -780,14 +779,32 @@ export default {
minDuration: 8,
operateType: 'Signal_Cancel_Auto_Turn_Back',
skinCode: '06',
- trainingName: ' 取消自动折返进路({3})',
- trainingRemark: ' 取消自动折返进路',
+ trainingName: ' 取消自动折返({3})',
+ trainingRemark: ' 取消自动折返',
trainingType: 'Signal',
productTypes: ['02'],
stepVOList: [
{ deviceType: '05', orderNum: 1, operateCode: '901', tip: '鼠标右键菜单选择【取消自动折返】'},
{ deviceType: '05', orderNum: 2, operateCode: '901', tip: '鼠标左键点击【应用】' }
]
+ },
+ {
+ maxDuration: 20,
+ minDuration: 15,
+ operateType: 'Cancel_All_Limit_Speed',
+ skinCode: '06',
+ trainingName: ' 取消全线临时限速',
+ trainingRemark: ' 取消全线临时限速',
+ trainingType: 'LimitControl',
+ productTypes: ['02'],
+ stepVOList: [
+ { deviceType: '10', orderNum: 1, operateCode: '800', tip: '鼠标右键菜单选择【取消全线临时限速】'},
+ { deviceType: '10', orderNum: 2, operateCode: '8001', tip: '鼠标左键点击【打开会话】'},
+ { deviceType: '10', orderNum: 3, operateCode: '8003', tip: '鼠标左键点击【确认】'},
+ { deviceType: '10', orderNum: 4, operateCode: '8004', tip: '鼠标左键点击【确认】'},
+ { deviceType: '10', orderNum: 5, operateCode: '8005', tip: '鼠标左键点击【关闭】'},
+ { deviceType: '10', orderNum: 6, operateCode: '8006', tip: '鼠标左键点击【确认】' }
+ ]
}
]
};
diff --git a/src/store/modules/training.js b/src/store/modules/training.js
index babef6d4a..85ff969f8 100644
--- a/src/store/modules/training.js
+++ b/src/store/modules/training.js
@@ -490,7 +490,7 @@ const training = {
// 处理operation
Handler.handle(operate).then(rtn => {
if (state.started) {
- // 教学和联系模式需要给出过程步骤提示
+ // 教学和联系模式需要给出过程步骤提示
if (TrainingMode.TEACH === state.mode || TrainingMode.PRACTICE === state.mode) {
if (rtn && rtn.valid) {
commit('next');
diff --git a/src/views/lesson/trainingRule/detail/index.vue b/src/views/lesson/trainingRule/detail/index.vue
index c71fec8c3..8b9ada380 100644
--- a/src/views/lesson/trainingRule/detail/index.vue
+++ b/src/views/lesson/trainingRule/detail/index.vue
@@ -34,7 +34,8 @@ export default {
{ label: this.$t('lesson.platform'), value: '06' },
{ label: this.$t('lesson.train'), value: '07' },
{ label: this.$t('lesson.station'), value: '08' },
- { label: this.$t('lesson.trainWindow'), value: '09' }
+ { label: this.$t('lesson.trainWindow'), value: '09' },
+ { label: '全线限速', value: '10' }
],
pagerConfig: {
pageSize: 'pageSize',
@@ -119,6 +120,7 @@ export default {
}
return fieldValue;
}
+ return fieldValue;
},
queryFunction(params) {
return getOperateStepDataList(this.dicId, params);
diff --git a/src/views/newMap/chatView/chatBox.vue b/src/views/newMap/chatView/chatBox.vue
index a4c5813ae..2ebc567cb 100644
--- a/src/views/newMap/chatView/chatBox.vue
+++ b/src/views/newMap/chatView/chatBox.vue
@@ -167,7 +167,8 @@ export default {
this.memberIdList = [];
if (memberList && memberList.length) {
memberList.forEach(member => {
- if (member && !(member.children) && (member.userId == '' || member.userId)) {
+ // (!member.userId)
+ if (member && !(member.children)) {
this.userString += member.label + ',';
this.memberIdList.push(member.id);
}
diff --git a/src/views/newMap/jlmapNew/index.vue b/src/views/newMap/jlmapNew/index.vue
index 338bb50e0..297dd4c3b 100644
--- a/src/views/newMap/jlmapNew/index.vue
+++ b/src/views/newMap/jlmapNew/index.vue
@@ -129,7 +129,7 @@ export default {
},
'$store.state.training.rezoomCount': function () {
let code = this.$store.state.training.offsetStationCode; // 偏移集中站坐标
- if (code && code.includes('TurnedAround')) { // 单独处理 自动折返
+ if (code && code.includes('Cycle')) { // 单独处理 自动折返
const cycleButtonList = this.$store.state.map.map.cycleButtonList;
if (cycleButtonList && cycleButtonList.length > 0) {
cycleButtonList.forEach(element => {
diff --git a/src/views/newMap/mapsystemNew/plugin/trainingtip.vue b/src/views/newMap/mapsystemNew/plugin/trainingtip.vue
index 074fbfc3d..51c09baf0 100644
--- a/src/views/newMap/mapsystemNew/plugin/trainingtip.vue
+++ b/src/views/newMap/mapsystemNew/plugin/trainingtip.vue
@@ -106,7 +106,7 @@ export default {
var position = null;
// 单独处理 自动折返
const newStep = Object.assign({}, step);
- if (newStep.code.includes('TurnedAround')) {
+ if (newStep.code.includes('Cycle')) {
const buttonList = this.$store.state.map.map.cycleButtonList;
if (buttonList && buttonList.length > 0) {
buttonList.forEach(element => {
diff --git a/src/views/newMap/newMapdraft/mapoperate/ControlDraft.vue b/src/views/newMap/newMapdraft/mapoperate/ControlDraft.vue
index 0687b620e..b7675b66b 100644
--- a/src/views/newMap/newMapdraft/mapoperate/ControlDraft.vue
+++ b/src/views/newMap/newMapdraft/mapoperate/ControlDraft.vue
@@ -4,14 +4,14 @@