@@ -41,6 +44,24 @@ export default {
offsetBottom: {
type: Number,
required: true
+ },
+ showSelectStation: {
+ type: Boolean,
+ default() {
+ return false;
+ }
+ },
+ stationList: {
+ type: Array,
+ default() {
+ return [];
+ }
+ },
+ showStation: {
+ type: String,
+ default() {
+ return '';
+ }
}
},
data() {
@@ -152,6 +173,9 @@ export default {
refresh() {
this.isDisable = false;
this.$store.dispatch('training/end', null);
+ },
+ switchStationMode(val) {
+ this.$emit('switchStationMode', val);
}
}
};
diff --git a/src/views/newMap/displayNew/menuLesson.vue b/src/views/newMap/displayNew/menuLesson.vue
index a0d1977f9..df4991610 100644
--- a/src/views/newMap/displayNew/menuLesson.vue
+++ b/src/views/newMap/displayNew/menuLesson.vue
@@ -9,6 +9,9 @@
{{ formatUsedTime }}
{{ $t('display.lesson.score') }}{{ formatScore }}
+
+
+
@@ -55,6 +58,24 @@ export default {
offsetBottom: {
type: Number,
required: true
+ },
+ showSelectStation: {
+ type: Boolean,
+ default() {
+ return false;
+ }
+ },
+ stationList: {
+ type: Array,
+ default() {
+ return [];
+ }
+ },
+ showStation: {
+ type: String,
+ default() {
+ return '';
+ }
}
},
data() {
@@ -201,6 +222,9 @@ export default {
} else {
buttons.setAttribute('style', '');
}
+ },
+ switchStationMode(val) {
+ this.$emit('switchStationMode', val);
}
}
};
From dd26f5fd96ad0c28665042ac98b2014e5955d9cc Mon Sep 17 00:00:00 2001
From: zyy <1787816799@qq.com>
Date: Thu, 2 Apr 2020 15:00:28 +0800
Subject: [PATCH 03/27] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=AE=81=E6=B3=A2?=
=?UTF-8?q?=E4=B8=80=E5=8F=B7=E7=BA=BF=E5=AE=9E=E8=AE=AD=E6=AD=A5=E9=AA=A4?=
=?UTF-8?q?=E5=AE=9A=E4=B9=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../childDialog/confirmControlSpeed.vue | 272 +++++++++---------
.../ningbo_01/menus/dialog/routeDetail.vue | 4 +-
.../ningbo_01/menus/dialog/sectionUnLock.vue | 30 +-
.../menus/dialog/speedLimitControl.vue | 6 +-
.../menus/dialog/standBulkBuckleTrain.vue | 7 +-
.../ningbo_01/menus/dialog/switchUnLock.vue | 28 +-
src/scripts/OperationConfig.js | 251 ++++++++--------
src/scripts/cmdPlugin/OperationHandler.js | 4 +
src/scripts/cmdPlugin/ValidateHandler.js | 2 +-
.../mapsystemNew/plugin/trainingtip.vue | 2 +-
10 files changed, 336 insertions(+), 270 deletions(-)
diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/childDialog/confirmControlSpeed.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/childDialog/confirmControlSpeed.vue
index a73f00076..d1962a1d9 100644
--- a/src/jmapNew/theme/ningbo_01/menus/dialog/childDialog/confirmControlSpeed.vue
+++ b/src/jmapNew/theme/ningbo_01/menus/dialog/childDialog/confirmControlSpeed.vue
@@ -1,148 +1,156 @@
-
-
- {{message}}
-
-
-
- 确定
-
-
- 取 消
-
-
-
+
+
+ {{ message }}
+
+
+
+ 确定
+
+
+ 取 消
+
+
+
\ No newline at end of file
+
diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/routeDetail.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/routeDetail.vue
index fa74d117a..237066fbb 100644
--- a/src/jmapNew/theme/ningbo_01/menus/dialog/routeDetail.vue
+++ b/src/jmapNew/theme/ningbo_01/menus/dialog/routeDetail.vue
@@ -41,8 +41,6 @@
-
{{ scope.row.atsControl == '0' ? '人工' : '自动' }}
@@ -134,7 +132,7 @@ export default {
commit() {
const operate = {
over: true,
- operation: OperationEvent.Signal.detail.menu.operation,
+ operation: OperationEvent.Signal.detail.menu.operation
};
this.loading = true;
diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/sectionUnLock.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/sectionUnLock.vue
index bc4a172ed..fc8144152 100644
--- a/src/jmapNew/theme/ningbo_01/menus/dialog/sectionUnLock.vue
+++ b/src/jmapNew/theme/ningbo_01/menus/dialog/sectionUnLock.vue
@@ -93,16 +93,36 @@ export default {
return this.dialogShow && !this.$store.state.menuOperation.break;
},
domIdChoose() {
- return this.dialogShow ? OperationEvent.Section.unlock.choose.domId : '';
+ if (this.operation == OperationEvent.Section.unlock.menu.operation) {
+ return OperationEvent.Section.unlock.choose.domId;
+ } else if (this.operation == OperationEvent.Section.fault.menu.operation) {
+ return OperationEvent.Section.fault.choose.domId;
+ }
+ return '';
},
confirmId1() {
- return this.dialogShow ? OperationEvent.Section.unlock.confirm1.domId : '';
+ if (this.operation == OperationEvent.Section.unlock.menu.operation) {
+ return OperationEvent.Section.unlock.confirm1.domId;
+ } else if (this.operation == OperationEvent.Section.fault.menu.operation) {
+ return OperationEvent.Section.fault.confirm1.domId;
+ }
+ return '';
},
confirmId2() {
- return this.dialogShow ? OperationEvent.Section.unlock.confirm2.domId : '';
+ if (this.operation == OperationEvent.Section.unlock.menu.operation) {
+ return OperationEvent.Section.unlock.confirm2.domId;
+ } else if (this.operation == OperationEvent.Section.fault.menu.operation) {
+ return OperationEvent.Section.fault.confirm2.domId;
+ }
+ return '';
},
domIdConfirm() {
- return this.dialogShow ? OperationEvent.Section.unlock.confirm.domId : '';
+ if (this.operation == OperationEvent.Section.unlock.menu.operation) {
+ return OperationEvent.Section.unlock.confirm.domId;
+ } else if (this.operation == OperationEvent.Section.fault.menu.operation) {
+ return OperationEvent.Section.fault.confirm.domId;
+ }
+ return '';
},
title() {
if (this.operation == OperationEvent.Section.unlock.menu.operation) {
@@ -218,6 +238,7 @@ export default {
confirm2() {
if (this.messageText2 == this.sectionCode) {
const operate = {
+ over: true,
operation: '',
cmdType: ''
};
@@ -246,7 +267,6 @@ export default {
},
commit() {
const operate = {
- over: true,
operation: ''
};
diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/speedLimitControl.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/speedLimitControl.vue
index 40fb9821d..b3d52ff6f 100644
--- a/src/jmapNew/theme/ningbo_01/menus/dialog/speedLimitControl.vue
+++ b/src/jmapNew/theme/ningbo_01/menus/dialog/speedLimitControl.vue
@@ -238,7 +238,7 @@ export default {
return '';
},
domIdClose() {
- return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
+ return this.dialogShow ? OperationEvent.Command.close.menu.domId : '';
},
isCancelSpeed() {
return this.operation == OperationEvent.Section.cancelSpeed.menu.operation || this.operation == OperationEvent.Switch.cancelSpeed.menu.operation;
@@ -350,7 +350,8 @@ export default {
},
speedSelectChange(val) {
const operate = {
- operation: ''
+ operation: '',
+ val: val
};
if (this.operation == OperationEvent.Section.setSpeed.menu.operation) {
@@ -529,7 +530,6 @@ export default {
},
close() {
const operate = {
- type: this.type,
operation: OperationEvent.Command.close.menu.operation
};
this.writeRecord({ order: ++this.order, date: now(), context: '点击关闭', result: '' });
diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/standBulkBuckleTrain.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/standBulkBuckleTrain.vue
index bd11783bd..803660914 100644
--- a/src/jmapNew/theme/ningbo_01/menus/dialog/standBulkBuckleTrain.vue
+++ b/src/jmapNew/theme/ningbo_01/menus/dialog/standBulkBuckleTrain.vue
@@ -76,7 +76,12 @@ export default {
return this.dialogShow ? OperationHandler.getDomIdByOperation(this.operation) : '';
},
chooseId() {
- return this.dialogShow ? OperationEvent.StationStand.setBulkBuckleTrain.choose.domId : '';
+ if (this.operation == OperationEvent.StationStand.setBulkBuckleTrain.menu.operation) {
+ return OperationEvent.StationStand.setBulkBuckleTrain.choose.domId;
+ } else if (this.operation == OperationEvent.StationStand.cancelBulkBuckleTrain.menu.operation) {
+ return OperationEvent.StationStand.cancelBulkBuckleTrain.choose.domId;
+ }
+ return '';
},
title() {
if (this.operation == OperationEvent.StationStand.setBulkBuckleTrain.menu.operation) {
diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/switchUnLock.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/switchUnLock.vue
index 4694819d4..1058ad313 100644
--- a/src/jmapNew/theme/ningbo_01/menus/dialog/switchUnLock.vue
+++ b/src/jmapNew/theme/ningbo_01/menus/dialog/switchUnLock.vue
@@ -93,16 +93,36 @@ export default {
return this.dialogShow && !this.$store.state.menuOperation.break;
},
domIdChoose() {
- return this.dialogShow ? OperationEvent.Switch.unlock.choose.domId : '';
+ if (this.operation == OperationEvent.Switch.unlock.menu.operation) {
+ return OperationEvent.Switch.unlock.choose.domId;
+ } else if (this.operation == OperationEvent.Switch.unblock.menu.operation) {
+ return OperationEvent.Switch.unblock.choose.domId;
+ }
+ return '';
},
confirmId1() {
- return this.dialogShow ? OperationEvent.Switch.unlock.confirm1.domId : '';
+ if (this.operation == OperationEvent.Switch.unlock.menu.operation) {
+ return OperationEvent.Switch.unlock.confirm1.domId;
+ } else if (this.operation == OperationEvent.Switch.unblock.menu.operation) {
+ return OperationEvent.Switch.unblock.confirm1.domId;
+ }
+ return '';
},
confirmId2() {
- return this.dialogShow ? OperationEvent.Switch.unlock.confirm2.domId : '';
+ if (this.operation == OperationEvent.Switch.unlock.menu.operation) {
+ return OperationEvent.Switch.unlock.confirm2.domId;
+ } else if (this.operation == OperationEvent.Switch.unblock.menu.operation) {
+ return OperationEvent.Switch.unblock.confirm2.domId;
+ }
+ return '';
},
domIdConfirm() {
- return this.dialogShow ? OperationEvent.Switch.unlock.confirm.domId : '';
+ if (this.operation == OperationEvent.Switch.unlock.menu.operation) {
+ return OperationEvent.Switch.unlock.confirm.domId;
+ } else if (this.operation == OperationEvent.Switch.unblock.menu.operation) {
+ return OperationEvent.Switch.unblock.confirm.domId;
+ }
+ return '';
},
title() {
if (this.operation == OperationEvent.Switch.unlock.menu.operation) {
diff --git a/src/scripts/OperationConfig.js b/src/scripts/OperationConfig.js
index 32edd18d5..8576c3568 100644
--- a/src/scripts/OperationConfig.js
+++ b/src/scripts/OperationConfig.js
@@ -5,18 +5,29 @@
// {id: "4", trainingType: "02", name: "进路编号"}
// {id: "5", trainingType: "02", name: "信号机名称"}
// {id: "6", trainingType: "02", name: "信号机编号"}
+
// {id: "7", trainingType: "03", name: "道岔名称"}
// {id: "17", trainingType: "03", name: "道岔编码"}
+// {id: "15", trainingType: "03", name: "道岔位置"}
+// {id: "16", trainingType: "03", name: "道岔位置(反)"}
+// {id: "21", trainingType: "03", name: "车站名称"}
+// {id: "23", trainingType: "03", name: "车站编号"}
+// {id: "24", trainingType: "03", name: "道岔计轴区段编号"}
+// {id: "25", trainingType: "03", name: "道岔计轴区段名称"}
+
// {id: "8", trainingType: "04", name: "物理区段名称"}
// {id: "9", trainingType: "04", name: "逻辑区段名称"}
// {id: "18", trainingType: "04", name: "逻辑区段编码"}
+// {id: "19", trainingType: "04", name: "区段编号"}
+// {id: "20", trainingType: "04", name: "车站名称"}
+// {id: "22", trainingType: "04", name: "车站编号"}
+
// {id: "10", trainingType: "05", name: "车站名称"}
// {id: "11", trainingType: "05", name: "站台行驶方向编号"}
// {id: "12", trainingType: "05", name: "站台行驶方向"}
// {id: "13", trainingType: "05", name: "站台行驶方向编号(反)"}
// {id: "14", trainingType: "05", name: "站台行驶方向(反)"}
-// {id: "15", trainingType: "03", name: "道岔位置"}
-// {id: "16", trainingType: "03", name: "道岔位置(反)"}
+
export const OperationList = {
'01': {
list: []
@@ -3684,13 +3695,13 @@ export const OperationList = {
trainingName: '区段故障解锁({8}{9})',
trainingRemark: '区段故障解锁',
trainingType: '04',
- productTypes: ['02'],
+ productTypes: ['01'],
stepVOList: [
{ deviceType: '03', orderNum: 1, operateCode: '402', tip: '鼠标右键菜单选择【区段故障解锁】' },
{ deviceType: '03', orderNum: 2, operateCode: '4024', tip: '鼠标左键点击【确定】按钮' },
{ deviceType: '03', orderNum: 3, operateCode: '4028', tip: '鼠标左键选择({8}{9})区段', val: '' },
{ deviceType: '03', orderNum: 4, operateCode: '4025', tip: '鼠标左键点击【确定】按钮' },
- { deviceType: '03', orderNum: 5, operateCode: '402', tip: '鼠标左键点击【关闭】按钮' }
+ { deviceType: '03', orderNum: 5, operateCode: '4023', tip: '鼠标左键点击【关闭】按钮' }
]
},
{
@@ -3731,7 +3742,7 @@ export const OperationList = {
trainingType: '04',
productTypes: ['02'],
stepVOList: [
- { deviceType: '03', orderNum: 1, operateCode: '407', tip: '鼠标右键菜单选择【区段设置限速】' },
+ { deviceType: '03', orderNum: 1, operateCode: '407', tip: '鼠标右键菜单选择【设置临时限速】' },
{ deviceType: '03', orderNum: 2, operateCode: '4076', tip: '鼠标左键选择【限速值5】', val: '5' },
{ deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' },
{ deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确认】按钮' },
@@ -3750,7 +3761,7 @@ export const OperationList = {
trainingType: '04',
productTypes: ['02'],
stepVOList: [
- { deviceType: '03', orderNum: 1, operateCode: '407', tip: '鼠标右键菜单选择【区段设置限速】' },
+ { deviceType: '03', orderNum: 1, operateCode: '407', tip: '鼠标右键菜单选择【设置临时限速】' },
{ deviceType: '03', orderNum: 2, operateCode: '4076', tip: '鼠标左键选择【限速值自动】', val: '0' },
{ deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' },
{ deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确认】按钮' },
@@ -3773,54 +3784,54 @@ export const OperationList = {
{ deviceType: '03', orderNum: 2, operateCode: '403', tip: '鼠标左键点击【确定】按钮' }
]
},
- // {
- // maxDuration: 15,
- // minDuration: 8,
- // operateType: '0406',
- // skinCode: '06',
- // trainingName: '区段解封({8}{9})',
- // trainingRemark: '区段解封功能',
- // trainingType: '04',
- // productTypes: ['01'],
- // stepVOList: [
- // { deviceType: '03', orderNum: 1, operateCode: '404', tip: '鼠标右键菜单选择【区段解封】' },
- // { deviceType: '03', orderNum: 2, operateCode: '4043', tip: '鼠标左键点击【确定】按钮' },
- // { deviceType: '03', orderNum: 3, operateCode: '4046', tip: '鼠标左键选择({8}{9})区段', val: '' },
- // { deviceType: '03', orderNum: 4, operateCode: '4044', tip: '鼠标左键点击【确定】按钮' },
- // { deviceType: '03', orderNum: 5, operateCode: '404', tip: '鼠标左键点击【关闭】按钮' }
- // ]
- // },
- // {
- // maxDuration: 15,
- // minDuration: 8,
- // operateType: '0409',
- // skinCode: '02',
- // trainingName: '确认计轴有效({8}{9})',
- // trainingRemark: '确认计轴有效功能',
- // trainingType: '04',
- // productTypes: ['02'],
- // stepVOList: [
- // { deviceType: '03', orderNum: 1, operateCode: '412', tip: '鼠标右键菜单选择【确认计轴有效】' },
- // { deviceType: '03', orderNum: 2, operateCode: '4123', tip: '鼠标左键选择【确认】' },
- // { deviceType: '03', orderNum: 3, operateCode: '4121', tip: '鼠标左键选择{10}', val: '' },
- // { deviceType: '03', orderNum: 4, operateCode: '4122', tip: '鼠标左键选择({8}{9})', val: '' },
- // { deviceType: '03', orderNum: 5, operateCode: '4124', tip: '鼠标左键点击【确认】按钮' },
- // { deviceType: '03', orderNum: 6, operateCode: '000', tip: '鼠标左键点击【关闭】按钮' }
- // ]
- // }
+ {
+ maxDuration: 15,
+ minDuration: 8,
+ operateType: '0406',
+ skinCode: '06',
+ trainingName: '区段解封({8}{9})',
+ trainingRemark: '区段解封功能',
+ trainingType: '04',
+ productTypes: ['01'],
+ stepVOList: [
+ { deviceType: '03', orderNum: 1, operateCode: '404', tip: '鼠标右键菜单选择【区段解封】' },
+ { deviceType: '03', orderNum: 2, operateCode: '4043', tip: '鼠标左键点击【确定】按钮' },
+ { deviceType: '03', orderNum: 3, operateCode: '4046', tip: '鼠标左键选择({8}{9})区段', val: '{19}' },
+ { deviceType: '03', orderNum: 4, operateCode: '4044', tip: '鼠标左键点击【确定】按钮' },
+ { deviceType: '03', orderNum: 5, operateCode: '4042', tip: '鼠标左键点击【关闭】按钮' }
+ ]
+ },
+ {
+ maxDuration: 15,
+ minDuration: 8,
+ operateType: '0409',
+ skinCode: '06',
+ trainingName: '确认计轴有效({8}{9})',
+ trainingRemark: '确认计轴有效功能',
+ trainingType: '04',
+ productTypes: ['02'],
+ stepVOList: [
+ { deviceType: '03', orderNum: 1, operateCode: '412', tip: '鼠标右键菜单选择【确认计轴有效】' },
+ { deviceType: '03', orderNum: 2, operateCode: '4123', tip: '鼠标左键选择【确认】' },
+ { deviceType: '03', orderNum: 3, operateCode: '4121', tip: '鼠标左键选择{20}', val: '{22}' },
+ { deviceType: '03', orderNum: 4, operateCode: '4122', tip: '鼠标左键选择({8}{9})', val: '{19}' },
+ { deviceType: '03', orderNum: 5, operateCode: '4124', tip: '鼠标左键点击【确认】按钮' },
+ { deviceType: '03', orderNum: 6, operateCode: '000', tip: '鼠标左键点击【关闭】按钮' }
+ ]
+ },
{
maxDuration: 15,
minDuration: 8,
- operateType: '0313',
+ operateType: '0312',
skinCode: '06',
trainingName: '定操({7})',
trainingRemark: '定操({7})',
trainingType: '03',
productTypes: ['01', '02'],
stepVOList: [
- { deviceType: '02', orderNum: 1, operateCode: '1010', tip: '鼠标左键菜单选择【定操】' },
- { deviceType: '02', orderNum: 2, operateCode: '1010', tip: '鼠标左键点击【{7}】按钮' }
+ { deviceType: '02', orderNum: 1, operateCode: '101', tip: '鼠标左键菜单选择【定操】' },
+ { deviceType: '02', orderNum: 2, operateCode: '101', tip: '鼠标左键点击【{7}】按钮' }
]
},
{
@@ -3865,24 +3876,24 @@ export const OperationList = {
{ deviceType: '02', orderNum: 2, operateCode: '112', tip: '鼠标左键点击【确定】按钮' }
]
},
- // {
- // maxDuration: 15,
- // minDuration: 8,
- // operateType: '0314',
- // skinCode: '02',
- // trainingName: '确认计轴有效({8}{9})',
- // trainingRemark: '确认计轴有效功能',
- // trainingType: '04',
- // productTypes: ['02'],
- // stepVOList: [
- // { deviceType: '03', orderNum: 1, operateCode: '412', tip: '鼠标右键菜单选择【确认计轴有效】' },
- // { deviceType: '03', orderNum: 2, operateCode: '4123', tip: '鼠标左键选择【确认】' },
- // { deviceType: '03', orderNum: 3, operateCode: '4121', tip: '鼠标左键选择{10}', val: '' },
- // { deviceType: '03', orderNum: 4, operateCode: '4122', tip: '鼠标左键选择({8}{9})', val: '' },
- // { deviceType: '03', orderNum: 5, operateCode: '4124', tip: '鼠标左键点击【确认】按钮' },
- // { deviceType: '03', orderNum: 6, operateCode: '000', tip: '鼠标左键点击【关闭】按钮' }
- // ]
- // }
+ {
+ maxDuration: 15,
+ minDuration: 8,
+ operateType: '0314',
+ skinCode: '06',
+ trainingName: '确认计轴有效({8}{9})',
+ trainingRemark: '确认计轴有效功能',
+ trainingType: '03',
+ productTypes: ['02'],
+ stepVOList: [
+ { deviceType: '03', orderNum: 1, operateCode: '412', tip: '鼠标右键菜单选择【确认计轴有效】' },
+ { deviceType: '03', orderNum: 2, operateCode: '4123', tip: '鼠标左键选择【确认】' },
+ { deviceType: '03', orderNum: 3, operateCode: '4121', tip: '鼠标左键选择{21}', val: '{23}' },
+ { deviceType: '03', orderNum: 4, operateCode: '4122', tip: '鼠标左键选择({25})', val: '{24}' },
+ { deviceType: '03', orderNum: 5, operateCode: '4124', tip: '鼠标左键点击【确认】按钮' },
+ { deviceType: '03', orderNum: 6, operateCode: '000', tip: '鼠标左键点击【关闭】按钮' }
+ ]
+ },
{
maxDuration: 15,
minDuration: 8,
@@ -3897,23 +3908,23 @@ export const OperationList = {
{ deviceType: '02', orderNum: 2, operateCode: '103', tip: '鼠标左键点击【确定】按钮' }
]
},
- // {
- // maxDuration: 15,
- // minDuration: 8,
- // operateType: '0302',
- // skinCode: '06',
- // trainingName: '道岔单解({7})',
- // trainingRemark: '道岔单解功能',
- // trainingType: '03',
- // productTypes: ['01'],
- // stepVOList: [
- // { deviceType: '03', orderNum: 1, operateCode: '104', tip: '鼠标右键菜单选择【区段解封】' },
- // { deviceType: '03', orderNum: 2, operateCode: '1043', tip: '鼠标左键点击【确定】按钮' },
- // { deviceType: '03', orderNum: 3, operateCode: '1046', tip: '鼠标左键选择({8}{9})区段', val: '' },
- // { deviceType: '03', orderNum: 4, operateCode: '1044', tip: '鼠标左键点击【确定】按钮' },
- // { deviceType: '03', orderNum: 5, operateCode: '104', tip: '鼠标左键点击【关闭】按钮' }
- // ]
- // },
+ {
+ maxDuration: 15,
+ minDuration: 8,
+ operateType: '0302',
+ skinCode: '06',
+ trainingName: '道岔单解({7})',
+ trainingRemark: '道岔单解功能',
+ trainingType: '03',
+ productTypes: ['01'],
+ stepVOList: [
+ { deviceType: '03', orderNum: 1, operateCode: '104', tip: '鼠标右键菜单选择【区段解封】' },
+ { deviceType: '03', orderNum: 2, operateCode: '1043', tip: '鼠标左键点击【确定】按钮' },
+ { deviceType: '03', orderNum: 3, operateCode: '1046', tip: '鼠标左键选择({7})区段', val: '{17}' },
+ { deviceType: '03', orderNum: 4, operateCode: '1044', tip: '鼠标左键点击【确定】按钮' },
+ { deviceType: '03', orderNum: 5, operateCode: '1042', tip: '鼠标左键点击【关闭】按钮' }
+ ]
+ },
{
maxDuration: 15,
minDuration: 8,
@@ -3928,34 +3939,34 @@ export const OperationList = {
{ deviceType: '02', orderNum: 2, operateCode: '105', tip: '鼠标左键点击【确定】按钮' }
]
},
- // {
- // maxDuration: 15,
- // minDuration: 8,
- // operateType: '0304',
- // skinCode: '06',
- // trainingName: '道岔解封({7})',
- // trainingRemark: '道岔解封功能',
- // trainingType: '03',
- // productTypes: ['01'],
- // stepVOList: [
- // { deviceType: '03', orderNum: 1, operateCode: '106', tip: '鼠标右键菜单选择【区段解封】' },
- // { deviceType: '03', orderNum: 2, operateCode: '1063', tip: '鼠标左键点击【确定】按钮' },
- // { deviceType: '03', orderNum: 3, operateCode: '1066', tip: '鼠标左键选择({8}{9})区段', val: '' },
- // { deviceType: '03', orderNum: 4, operateCode: '1064', tip: '鼠标左键点击【确定】按钮' },
- // { deviceType: '03', orderNum: 5, operateCode: '106', tip: '鼠标左键点击【关闭】按钮' }
- // ]
- // },
+ {
+ maxDuration: 15,
+ minDuration: 8,
+ operateType: '0304',
+ skinCode: '06',
+ trainingName: '道岔解封({7})',
+ trainingRemark: '道岔解封功能',
+ trainingType: '03',
+ productTypes: ['01'],
+ stepVOList: [
+ { deviceType: '03', orderNum: 1, operateCode: '106', tip: '鼠标右键菜单选择【区段解封】' },
+ { deviceType: '03', orderNum: 2, operateCode: '1063', tip: '鼠标左键点击【确定】按钮' },
+ { deviceType: '03', orderNum: 3, operateCode: '1066', tip: '鼠标左键选择({7})区段', val: '{17}' },
+ { deviceType: '03', orderNum: 4, operateCode: '1064', tip: '鼠标左键点击【确定】按钮' },
+ { deviceType: '03', orderNum: 5, operateCode: '1062', tip: '鼠标左键点击【关闭】按钮' }
+ ]
+ },
{
maxDuration: 15,
minDuration: 8,
operateType: '0310',
skinCode: '06',
- trainingName: '道岔区段设置限速({7})',
- trainingRemark: '道岔区段设置限速功能(限速值:10)',
+ trainingName: '设置临时限速({7})',
+ trainingRemark: '设置临时限速功能(限速值:10)',
trainingType: '03',
productTypes: ['01', '02'],
stepVOList: [
- { deviceType: '02', orderNum: 1, operateCode: '113', tip: '鼠标右键菜单选择【道岔区段设置限速】' },
+ { deviceType: '02', orderNum: 1, operateCode: '113', tip: '鼠标右键菜单选择【设置临时限速】' },
{ deviceType: '02', orderNum: 2, operateCode: '1136', tip: '鼠标左键选择【限速值5】', val: '10' },
{ deviceType: '02', orderNum: 3, operateCode: '1131', tip: '鼠标左键点击【下达】按钮' },
{ deviceType: '02', orderNum: 4, operateCode: '1132', tip: '鼠标左键点击【确认】按钮' },
@@ -3969,12 +3980,12 @@ export const OperationList = {
minDuration: 8,
operateType: '0310',
skinCode: '06',
- trainingName: '道岔区段设置限速({7})',
- trainingRemark: '道岔区段设置限速功能(限速值:不限)',
+ trainingName: '设置临时限速({7})',
+ trainingRemark: '设置临时限速功能(限速值:不限)',
trainingType: '03',
productTypes: ['01', '02'],
stepVOList: [
- { deviceType: '02', orderNum: 1, operateCode: '113', tip: '鼠标右键菜单选择【道岔区段设置限速】' },
+ { deviceType: '02', orderNum: 1, operateCode: '113', tip: '鼠标右键菜单选择【设置临时限速】' },
{ deviceType: '02', orderNum: 2, operateCode: '1136', tip: '鼠标左键选择【限速值: 不限】', val: '0' },
{ deviceType: '02', orderNum: 3, operateCode: '1131', tip: '鼠标左键点击【下达】按钮' },
{ deviceType: '02', orderNum: 4, operateCode: '1132', tip: '鼠标左键点击【确认】按钮' },
@@ -4149,29 +4160,29 @@ export const OperationList = {
trainingName: '信号封锁({5})',
trainingRemark: '信号封闭',
trainingType: '02',
- productTypes: ['02'],
+ productTypes: ['01'],
stepVOList: [
{ deviceType: '04', orderNum: 1, operateCode: '306', tip: '鼠标右键菜单选择【信号封闭】' },
{ deviceType: '04', orderNum: 2, operateCode: '306', tip: '鼠标左键点击【确定】按钮' }
]
},
- // {
- // maxDuration: 15,
- // minDuration: 8,
- // operateType: '0204',
- // skinCode: '06',
- // trainingName: '信号解封({5})',
- // trainingRemark: '信号解封功能',
- // trainingType: '02',
- // productTypes: ['01'],
- // stepVOList: [
- // { deviceType: '03', orderNum: 1, operateCode: '307', tip: '鼠标右键菜单选择【信号解封】' },
- // { deviceType: '03', orderNum: 2, operateCode: '3073', tip: '鼠标左键点击【确定】按钮' },
- // { deviceType: '03', orderNum: 3, operateCode: '3076', tip: '鼠标左键选择({8}{9})区段', val: '' },
- // { deviceType: '03', orderNum: 4, operateCode: '3074', tip: '鼠标左键点击【确定】按钮' },
- // { deviceType: '03', orderNum: 5, operateCode: '307', tip: '鼠标左键点击【关闭】按钮' }
- // ]
- // },
+ {
+ maxDuration: 15,
+ minDuration: 8,
+ operateType: '0204',
+ skinCode: '06',
+ trainingName: '信号解封({5})',
+ trainingRemark: '信号解封功能',
+ trainingType: '02',
+ productTypes: ['01'],
+ stepVOList: [
+ { deviceType: '03', orderNum: 1, operateCode: '307', tip: '鼠标右键菜单选择【信号解封】' },
+ { deviceType: '03', orderNum: 2, operateCode: '3073', tip: '鼠标左键点击【确定】按钮' },
+ { deviceType: '03', orderNum: 3, operateCode: '3076', tip: '鼠标左键选择({5})区段', val: '{6}' },
+ { deviceType: '03', orderNum: 4, operateCode: '3074', tip: '鼠标左键点击【确定】按钮' },
+ { deviceType: '03', orderNum: 5, operateCode: '3072', tip: '鼠标左键点击【关闭】按钮' }
+ ]
+ },
{
maxDuration: 15,
minDuration: 8,
diff --git a/src/scripts/cmdPlugin/OperationHandler.js b/src/scripts/cmdPlugin/OperationHandler.js
index 914dc1650..35fd8bfec 100644
--- a/src/scripts/cmdPlugin/OperationHandler.js
+++ b/src/scripts/cmdPlugin/OperationHandler.js
@@ -1540,6 +1540,10 @@ export const OperationEvent = {
menu: {
operation: '516',
domId: '_Tips-Stand-cancelBulkBuckleTrain-Menu'
+ },
+ choose: {
+ operation: '5161',
+ domId: '_Tips-Stand-cancelBulkBuckleTrain-Choose'
}
},
// 区间列车数量限制
diff --git a/src/scripts/cmdPlugin/ValidateHandler.js b/src/scripts/cmdPlugin/ValidateHandler.js
index 744c36766..299a518db 100644
--- a/src/scripts/cmdPlugin/ValidateHandler.js
+++ b/src/scripts/cmdPlugin/ValidateHandler.js
@@ -52,7 +52,7 @@ class ValidateHandler {
const order = Handler.getOrder();
let valid = false;
- debugger;
+ // debugger;
if (operate.over && steps.length == 1) { // 右键菜单直接发送校验
if (operate && steps[0] &&
operate.code == steps[0].code &&
diff --git a/src/views/newMap/mapsystemNew/plugin/trainingtip.vue b/src/views/newMap/mapsystemNew/plugin/trainingtip.vue
index 8262336b7..9ad892bbe 100644
--- a/src/views/newMap/mapsystemNew/plugin/trainingtip.vue
+++ b/src/views/newMap/mapsystemNew/plugin/trainingtip.vue
@@ -133,7 +133,7 @@ export default {
const domId = OperationHandler.getDomIdByOperation(step.operation);
const btnDom = document.getElementById(domId);
if (btnDom) {
- const offset = getDomOffset(btnDom, true);
+ const offset = getDomOffset(btnDom);
if (offset.x == 0 && offset.y == 0) {
return null;
}
From 5874d8f665a0b03199a8a103fe8726fa7413bb00 Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Thu, 2 Apr 2020 16:16:45 +0800
Subject: [PATCH 04/27] =?UTF-8?q?=E5=8C=97=E4=BA=AC=E4=B8=80=E5=8F=B7?=
=?UTF-8?q?=E7=BA=BF=E6=93=8D=E4=BD=9C=E6=AD=A5=E9=AA=A4=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../menus/dialog/standJumpStopControl.vue | 3 +-
.../beijing_01/menus/dialog/standStopTime.vue | 4 +-
src/scripts/OperationConfig.js | 39 ++++++++++++-------
src/scripts/cmdPlugin/ValidateHandler.js | 1 +
4 files changed, 31 insertions(+), 16 deletions(-)
diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/standJumpStopControl.vue b/src/jmapNew/theme/beijing_01/menus/dialog/standJumpStopControl.vue
index c10462fd9..1a03fedbe 100644
--- a/src/jmapNew/theme/beijing_01/menus/dialog/standJumpStopControl.vue
+++ b/src/jmapNew/theme/beijing_01/menus/dialog/standJumpStopControl.vue
@@ -318,7 +318,8 @@ export default {
? OperationEvent.StationStand.setJumpStop.select.operation : OperationEvent.StationStand.cancelJumpStop.select.operation;
this.model.val1 = '';
const operate = {
- operation: operation
+ operation: operation,
+ val:val
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/standStopTime.vue b/src/jmapNew/theme/beijing_01/menus/dialog/standStopTime.vue
index c18a9c3f7..44ae28254 100644
--- a/src/jmapNew/theme/beijing_01/menus/dialog/standStopTime.vue
+++ b/src/jmapNew/theme/beijing_01/menus/dialog/standStopTime.vue
@@ -39,7 +39,7 @@
:min="0"
size="mini"
style="width: 130px; padding-left:30px;display: block; float: left; margin-top: 15px;"
- @change="inputTime"
+ @change="changeInputTime"
/>
秒
@@ -196,7 +196,7 @@ export default {
}
});
},
- inputTime(time) {
+ changeInputTime(time) {
const operate = {
operation: OperationEvent.StationStand.setStopTime.input.operation,
val: `${time}`
diff --git a/src/scripts/OperationConfig.js b/src/scripts/OperationConfig.js
index eaeb4fa1e..c59edbcb0 100644
--- a/src/scripts/OperationConfig.js
+++ b/src/scripts/OperationConfig.js
@@ -853,7 +853,7 @@ export const OperationList = {
trainingType: '05',
productTypes: ['02'], // 产品类型 01 现地 02 行调
stepVOList: [
- { deviceType: '06', orderNum: 1, operateCode: '504', tip: '鼠标右键菜单选择【设置扣车】' },
+ { deviceType: '06', orderNum: 1, operateCode: '504', tip: '鼠标右键菜单选择【设置扣车】'},
{ deviceType: '06', orderNum: 2, operateCode: '504', tip: '鼠标左键点击【确定】按钮' }
]
},
@@ -867,9 +867,8 @@ export const OperationList = {
trainingType: '05',
productTypes: ['01'], // 产品类型 01 现地 02 行调
stepVOList: [
- { deviceType: '06', orderNum: 1, operateCode: '2993', tip: '鼠标左键点击【功能按钮】' },
- { deviceType: '06', orderNum: 2, operateCode: '504', tip: '鼠标左键点击【车站】' }
- // { deviceType: '06', orderNum: 2, operateCode: '504', tip: '鼠标左键点击【确定】按钮' }
+ { deviceType: '06', orderNum: 1, operateCode: '2993', tip: '鼠标左键点击【功能按钮】'},
+ { deviceType: '06', orderNum: 2, operateCode: '2993', tip: '鼠标左键点击【车站】', codeType:'STAND'}
]
},
{
@@ -880,12 +879,26 @@ export const OperationList = {
trainingName: '取消扣车({10}-{12} 站台)',
trainingRemark: '取消扣车功能',
trainingType: '05',
- productTypes: ['01', '02'], // 产品类型 01 现地 02 行调
+ productTypes: ['02'], // 产品类型 01 现地 02 行调
stepVOList: [
- { deviceType: '06', orderNum: 1, operateCode: '505', tip: '鼠标右键菜单选择【取消扣车】' },
+ { deviceType: '06', orderNum: 1, operateCode: '505', tip: '鼠标右键菜单选择【取消扣车】'},
{ deviceType: '06', orderNum: 2, operateCode: '505', tip: '鼠标左键点击【确定】按钮' }
]
},
+ {
+ maxDuration: 8,
+ minDuration: 5,
+ operateType: '0502',
+ skinCode: '03',
+ trainingName: '取消扣车({10}-{12} 站台)',
+ trainingRemark: '取消扣车功能',
+ trainingType: '05',
+ productTypes: ['01'], // 产品类型 01 现地 02 行调
+ stepVOList: [
+ { deviceType: '06', orderNum: 1, operateCode: '2994', tip: '鼠标左键点击【总取消】' },
+ { deviceType: '06', orderNum: 2, operateCode: '2994', tip: '鼠标左键点击【车站】', codeType:'STAND' }
+ ]
+ },
{
maxDuration: 15,
minDuration: 8,
@@ -894,7 +907,7 @@ export const OperationList = {
trainingName: '设置跳停({10}-{12} 站台)',
trainingRemark: '设置跳停功能',
trainingType: '05',
- productTypes: ['01', '02'], // 产品类型 01 现地 02 行调
+ productTypes: ['02'], // 产品类型 01 现地 02 行调
stepVOList: [
{ deviceType: '06', orderNum: 1, operateCode: '502', tip: '鼠标右键菜单选择【设置跳停】' },
{ deviceType: '06', orderNum: 2, operateCode: '502', tip: '鼠标左键点击【确定】按钮' }
@@ -908,7 +921,7 @@ export const OperationList = {
trainingName: '设置跳停({10}-{12} 站台)',
trainingRemark: '设置指定001号列车跳停功能',
trainingType: '05',
- productTypes: ['01', '02'], // 产品类型 01 现地 02 行调
+ productTypes: ['02'], // 产品类型 01 现地 02 行调
stepVOList: [
{ deviceType: '06', orderNum: 1, operateCode: '502', tip: '鼠标右键菜单选择【设置跳停】' },
{ deviceType: '06', orderNum: 2, operateCode: '5024', tip: '鼠标左键点击' },
@@ -924,7 +937,7 @@ export const OperationList = {
trainingName: '取消跳停({10}-{12} 站台)',
trainingRemark: '取消跳停功能',
trainingType: '05',
- productTypes: ['01', '02'], // 产品类型 01 现地 02 行调
+ productTypes: ['02'], // 产品类型 01 现地 02 行调
stepVOList: [
{ deviceType: '06', orderNum: 1, operateCode: '503', tip: '鼠标右键菜单选择【取消跳停】' },
{ deviceType: '06', orderNum: 2, operateCode: '503', tip: '鼠标左键点击【确定】按钮' }
@@ -938,7 +951,7 @@ export const OperationList = {
trainingName: '取消跳停({10}-{12} 站台)',
trainingRemark: '取消指定001号列车跳停功能',
trainingType: '05',
- productTypes: ['01', '02'], // 产品类型 01 现地 02 行调
+ productTypes: ['02'], // 产品类型 01 现地 02 行调
stepVOList: [
{ deviceType: '06', orderNum: 1, operateCode: '503', tip: '鼠标右键菜单选择【取消跳停】' },
{ deviceType: '06', orderNum: 2, operateCode: '5034', tip: '鼠标左键点击' },
@@ -3093,7 +3106,7 @@ export const OperationList = {
minDuration: 8,
operateType: '0303',
skinCode: '07',
- trainingName: '区段封锁({8}{9})',
+ trainingName: '道岔区段封锁({7})',
trainingRemark: '区段封锁功能',
trainingType: '03',
productTypes: ['01'], // 产品类型 01 现地 02 行调
@@ -3108,7 +3121,7 @@ export const OperationList = {
minDuration: 8,
operateType: '0304',
skinCode: '07',
- trainingName: '区段解封({8}{9})',
+ trainingName: '道岔区段解封({7})',
trainingRemark: '区段解封功能',
trainingType: '03',
productTypes: ['01'],
@@ -3123,7 +3136,7 @@ export const OperationList = {
minDuration: 8,
operateType: '0306',
skinCode: '02',
- trainingName: '区段故障解锁({8}{9})',
+ trainingName: '道岔区段故障解锁({7})',
trainingRemark: '故障解锁功能',
trainingType: '03',
productTypes: ['01'],
diff --git a/src/scripts/cmdPlugin/ValidateHandler.js b/src/scripts/cmdPlugin/ValidateHandler.js
index 1e69bf282..dc4cc1c74 100644
--- a/src/scripts/cmdPlugin/ValidateHandler.js
+++ b/src/scripts/cmdPlugin/ValidateHandler.js
@@ -48,6 +48,7 @@ class ValidateHandler {
/** 判断操作步骤是否正确 */
judge (operate) {
+ debugger;
const steps = Handler.getSteps();
const order = Handler.getOrder();
From 523a1f9cd6d6247a768e0d0978afd730736d3840 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Thu, 2 Apr 2020 16:22:53 +0800
Subject: [PATCH 05/27] =?UTF-8?q?=E5=AE=81=E6=B3=A2=E5=AE=9E=E8=AE=AD?=
=?UTF-8?q?=E8=B7=B3=E8=BD=AC=E9=9B=86=E4=B8=AD=E7=AB=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/scripts/OperationConfig.js | 4 ++--
src/scripts/cmdPlugin/OperationHandler.js | 2 +-
src/scripts/cmdPlugin/ValidateHandler.js | 1 -
src/utils/baseUrl.js | 2 +-
src/views/newMap/displayNew/index.vue | 23 +++++++++++++++++++++++
5 files changed, 27 insertions(+), 5 deletions(-)
diff --git a/src/scripts/OperationConfig.js b/src/scripts/OperationConfig.js
index 32edd18d5..83eadfb26 100644
--- a/src/scripts/OperationConfig.js
+++ b/src/scripts/OperationConfig.js
@@ -3373,7 +3373,7 @@ export const OperationList = {
{ deviceType: '04', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该信号机' },
{ deviceType: '04', orderNum: 2, operateCode: 'click', tip: '鼠标左键点击选择该信号机' },
{ deviceType: '04', orderNum: 3, operateCode: '308', tip: '鼠标左键点击【引导进路】按钮' },
- { deviceType: '04', orderNum: 4, operateCode: '008', tip: '鼠标左键点击【确认2】按钮' }
+ { deviceType: '04', orderNum: 4, operateCode: '008', tip: '鼠标左键点击【执行】按钮' }
]
},
{
@@ -3389,7 +3389,7 @@ export const OperationList = {
{ deviceType: '04', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该信号机' },
{ deviceType: '04', orderNum: 2, operateCode: 'click', tip: '鼠标左键点击选择该信号机' },
{ deviceType: '04', orderNum: 3, operateCode: '305', tip: '鼠标左键点击【取消引导】按钮' },
- { deviceType: '04', orderNum: 4, operateCode: '008', tip: '鼠标左键点击【确认2】按钮' }
+ { deviceType: '04', orderNum: 4, operateCode: '008', tip: '鼠标左键点击【执行】按钮' }
]
},
{
diff --git a/src/scripts/cmdPlugin/OperationHandler.js b/src/scripts/cmdPlugin/OperationHandler.js
index 914dc1650..55de01d7b 100644
--- a/src/scripts/cmdPlugin/OperationHandler.js
+++ b/src/scripts/cmdPlugin/OperationHandler.js
@@ -928,7 +928,7 @@ export const OperationEvent = {
},
menu: {
operation: '318',
- domId: '_Tips-Signal-cancelGuide-Menu'
+ domId: '_Tips-Signal-cancelGuide-Menu{TOP}'
},
confirm: {
operation: '3181',
diff --git a/src/scripts/cmdPlugin/ValidateHandler.js b/src/scripts/cmdPlugin/ValidateHandler.js
index 1e69bf282..d1a173922 100644
--- a/src/scripts/cmdPlugin/ValidateHandler.js
+++ b/src/scripts/cmdPlugin/ValidateHandler.js
@@ -50,7 +50,6 @@ class ValidateHandler {
judge (operate) {
const steps = Handler.getSteps();
const order = Handler.getOrder();
-
let valid = false;
if (operate.over && steps.length == 1) { // 右键菜单直接发送校验
if (operate && steps[0] &&
diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js
index e9046878d..2b332fb64 100644
--- a/src/utils/baseUrl.js
+++ b/src/utils/baseUrl.js
@@ -2,7 +2,7 @@ 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.3.5:9000'; // 袁琪
// BASE_API = 'http://192.168.3.6:9000'; // 旭强
// BASE_API = 'http://192.168.3.41:9000'; // 张赛
diff --git a/src/views/newMap/displayNew/index.vue b/src/views/newMap/displayNew/index.vue
index 68eb448ec..41618b053 100644
--- a/src/views/newMap/displayNew/index.vue
+++ b/src/views/newMap/displayNew/index.vue
@@ -261,6 +261,29 @@ export default {
'$store.state.map.map': function (val) {
this.showSelectStation = val.skinVO.code === '06' && this.$store.state.training.prdType === '01';
this.showSelectStation && this.setStationList(val);
+ },
+ '$store.state.training.offsetStationCode': function(code) {
+ if (code) {
+ const deviceModel = this.$store.getters['map/getDeviceByCode'](code);
+ if (deviceModel._type == 'Section' || deviceModel._type == 'Switch' || deviceModel._type == 'Signal' || deviceModel._type == 'Switch') {
+ const stationModel = this.$store.getters['map/getDeviceByCode'](deviceModel.stationCode);
+ this.switchStationMode(stationModel.code);
+ } else if (deviceModel._type === 'Station') {
+ let stationModel = '';
+ if (deviceModel.centralized) {
+ stationModel = deviceModel;
+ } else {
+ this.$store.state.map.map.stationList || [].forEach(item => {
+ item.chargeStationCodeList || [].forEach(it => {
+ if (it === deviceModel.code) {
+ stationModel = item;
+ }
+ });
+ });
+ }
+ this.switchStationMode(stationModel.code);
+ }
+ }
}
},
async created() {
From e49f32d6b28015424d9bcd56a4c7739f400e8e21 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Thu, 2 Apr 2020 16:28:07 +0800
Subject: [PATCH 06/27] =?UTF-8?q?=E5=AE=81=E6=B3=A2=E5=AE=9E=E8=AE=AD?=
=?UTF-8?q?=E8=B7=B3=E8=BD=AC=E9=9B=86=E4=B8=AD=E7=AB=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/utils/baseUrl.js | 2 +-
src/views/newMap/displayNew/index.vue | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js
index 2b332fb64..e9046878d 100644
--- a/src/utils/baseUrl.js
+++ b/src/utils/baseUrl.js
@@ -2,7 +2,7 @@ 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.3.5:9000'; // 袁琪
// BASE_API = 'http://192.168.3.6:9000'; // 旭强
// BASE_API = 'http://192.168.3.41:9000'; // 张赛
diff --git a/src/views/newMap/displayNew/index.vue b/src/views/newMap/displayNew/index.vue
index 41618b053..9e7e326ac 100644
--- a/src/views/newMap/displayNew/index.vue
+++ b/src/views/newMap/displayNew/index.vue
@@ -263,7 +263,7 @@ export default {
this.showSelectStation && this.setStationList(val);
},
'$store.state.training.offsetStationCode': function(code) {
- if (code) {
+ if (code && this.showSelectStation) {
const deviceModel = this.$store.getters['map/getDeviceByCode'](code);
if (deviceModel._type == 'Section' || deviceModel._type == 'Switch' || deviceModel._type == 'Signal' || deviceModel._type == 'Switch') {
const stationModel = this.$store.getters['map/getDeviceByCode'](deviceModel.stationCode);
From e45ec364a53e894fd64863978b871820268983b3 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Thu, 2 Apr 2020 16:52:59 +0800
Subject: [PATCH 07/27] =?UTF-8?q?=E5=AE=81=E6=B3=A2=E5=AE=9E=E8=AE=AD?=
=?UTF-8?q?=E8=B7=B3=E8=BD=AC=E9=9B=86=E4=B8=AD=E7=AB=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/newMap/displayNew/index.vue | 8 ++++----
src/views/newMap/jlmapNew/index.vue | 4 ++--
src/views/newMap/mapsystemNew/common/index.vue | 4 ++--
src/views/newMap/mapsystemNew/index.vue | 4 ++--
4 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/views/newMap/displayNew/index.vue b/src/views/newMap/displayNew/index.vue
index 9e7e326ac..2507b7184 100644
--- a/src/views/newMap/displayNew/index.vue
+++ b/src/views/newMap/displayNew/index.vue
@@ -267,7 +267,7 @@ export default {
const deviceModel = this.$store.getters['map/getDeviceByCode'](code);
if (deviceModel._type == 'Section' || deviceModel._type == 'Switch' || deviceModel._type == 'Signal' || deviceModel._type == 'Switch') {
const stationModel = this.$store.getters['map/getDeviceByCode'](deviceModel.stationCode);
- this.switchStationMode(stationModel.code);
+ this.switchStationMode(stationModel.code, true);
} else if (deviceModel._type === 'Station') {
let stationModel = '';
if (deviceModel.centralized) {
@@ -281,7 +281,7 @@ export default {
});
});
}
- this.switchStationMode(stationModel.code);
+ this.switchStationMode(stationModel.code, true);
}
}
}
@@ -609,9 +609,9 @@ export default {
panel.setAttribute('style', '');
}
},
- switchStationMode(val) {
+ switchStationMode(val, isTraining) {
this.showStation = val;
- this.$refs.mapCanvas && this.$refs.mapCanvas.setShowStation(this.showStation);
+ this.$refs.mapCanvas && this.$refs.mapCanvas.setShowStation(this.showStation, isTraining);
},
setStationList(val) {
this.stationList = [];
diff --git a/src/views/newMap/jlmapNew/index.vue b/src/views/newMap/jlmapNew/index.vue
index b91244271..96f4abecd 100644
--- a/src/views/newMap/jlmapNew/index.vue
+++ b/src/views/newMap/jlmapNew/index.vue
@@ -376,7 +376,7 @@ export default {
});
this.$jlmap.updateShowMode(list, showMode);
},
- setShowStation(stationCode) {
+ setShowStation(stationCode, isTraining) {
const nameList = Object.keys(this.$store.state.map.map);
let list = [];
nameList.forEach(item => {
@@ -385,7 +385,7 @@ export default {
}
});
this.$jlmap.updateShowStation(list, stationCode);
- this.setCenter(stationCode);
+ !isTraining && this.setCenter(stationCode);
}
}
};
diff --git a/src/views/newMap/mapsystemNew/common/index.vue b/src/views/newMap/mapsystemNew/common/index.vue
index 5666aade2..ae6382bcc 100644
--- a/src/views/newMap/mapsystemNew/common/index.vue
+++ b/src/views/newMap/mapsystemNew/common/index.vue
@@ -165,8 +165,8 @@ export default {
mapViewLoaded(loading) {
this.$refs.jlmapVisual && this.$refs.jlmapVisual.mapViewLoaded(loading);
},
- setShowStation(stationCode) {
- this.$refs.jlmapVisual && this.$refs.jlmapVisual.setShowStation(stationCode);
+ setShowStation(stationCode, isTraining) {
+ this.$refs.jlmapVisual && this.$refs.jlmapVisual.setShowStation(stationCode, isTraining);
},
setCenter(code) {
this.$refs.jlmapVisual && this.$refs.jlmapVisual.setCenter(code);
diff --git a/src/views/newMap/mapsystemNew/index.vue b/src/views/newMap/mapsystemNew/index.vue
index 05572f187..8b20a52a6 100644
--- a/src/views/newMap/mapsystemNew/index.vue
+++ b/src/views/newMap/mapsystemNew/index.vue
@@ -111,8 +111,8 @@ export default {
clearSubscribe() {
clearSubscribe(`${displayTopic}\/${this.group}`);
},
- setShowStation(stationCode) {
- this.$refs.mapCommon && this.$refs.mapCommon.setShowStation(stationCode);
+ setShowStation(stationCode, isTraining) {
+ this.$refs.mapCommon && this.$refs.mapCommon.setShowStation(stationCode, isTraining);
},
setCenter(code) {
this.$refs.mapCommon && this.$refs.mapCommon.setCenter(code);
From 34c7ad0fba36ad766848a2f7ce66ee73d6604219 Mon Sep 17 00:00:00 2001
From: zyy <1787816799@qq.com>
Date: Thu, 2 Apr 2020 17:15:55 +0800
Subject: [PATCH 08/27] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=AE=9E=E8=AE=AD?=
=?UTF-8?q?=E6=9F=A5=E8=AF=A2=E8=A1=A8=E5=A4=B4=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/scripts/cmdPlugin/CommandEnum.js | 4 +-
src/views/lesson/trainingmanage/index.vue | 63 +++++++++++++++++------
2 files changed, 50 insertions(+), 17 deletions(-)
diff --git a/src/scripts/cmdPlugin/CommandEnum.js b/src/scripts/cmdPlugin/CommandEnum.js
index f767ecc9d..8f7b8b327 100644
--- a/src/scripts/cmdPlugin/CommandEnum.js
+++ b/src/scripts/cmdPlugin/CommandEnum.js
@@ -86,9 +86,9 @@ export default {
CMD_SIGNAL_OPEN_AUTO_SETTING: {value:'Signal_Open_Auto_Setting', label: '进路自排开'},
/** 进路自排关 */
CMD_SIGNAL_CLOSE_AUTO_SETTING: {value:'Signal_Close_Auto_Setting', label: '进路自排关'},
- /** 设置联锁自动进路*/ // 设置/取消通过模式
+ /** 设置联锁自动进路*/ // 设置通过模式
CMD_SIGNAL_SET_CI_AUTO: {value:'Signal_Set_CI_Auto', label: '设置联锁自动进路'},
- /** 取消联锁自动进路*/
+ /** 取消联锁自动进路*/ // 取消通过模式
CMD_SIGNAL_CANCEL_CI_AUTO: {value:'Signal_Cancel_CI_Auto', label: '取消联锁自动进路'},
/** 设置联锁自动触发 */
CMD_SIGNAL_SET_CI_AUTO_TRIGGER: {value:'Signal_Set_CI_Auto_Trigger', label: '设置联锁自动触发'},
diff --git a/src/views/lesson/trainingmanage/index.vue b/src/views/lesson/trainingmanage/index.vue
index 2815c865b..a6cad727d 100644
--- a/src/views/lesson/trainingmanage/index.vue
+++ b/src/views/lesson/trainingmanage/index.vue
@@ -23,6 +23,7 @@ import { pageQueryTraining, pageQueryTrainingNew } from '@/api/jmap/training';
import { trainingNotify, trainingNotifyNew } from '@/api/simulation';
import { launchFullscreen } from '@/utils/screen';
import { getPublishMapListOnline } from '@/api/jmap/map';
+import { getOperateTrainingList } from '@/api/management/operation';
import { UrlConfig } from '@/scripts/ConstDic';
import TrainingDraft from './draft';
import localStore from 'storejs';
@@ -37,6 +38,7 @@ export default {
mapIdList: [],
trainingTypeList: [],
trainingOperateTypeMap: {},
+ trainingTypeMap: {},
pagerConfig: {
pageSize: 'pageSize',
pageIndex: 'pageNum'
@@ -155,15 +157,12 @@ export default {
}
},
async created() {
- await this.loadInitData();
const json = localStore.get(this.$route.path);
- json.type = '';
- json.prdType = '';
- json.operateType = '';
- this.typeChoose(this.$refs.queryListPage.queryData);
+ await this.loadInitData(json);
+ this.typeChoose(json);
},
methods: {
- async loadInitData() {
+ async loadInitData(queryData) {
this.mapIdList = [];
this.queryForm.queryObject.prdType.config.data = [];
getPublishMapListOnline().then(response => {
@@ -175,9 +174,6 @@ export default {
this.trainingTypeList = [];
this.$Dictionary.trainingType().then(list => {
this.trainingTypeList = list;
- list.forEach(elem => {
- this.queryForm.queryObject.type.config.data.push({ value: elem.code, label: elem.name });
- });
});
this.trainingOperateTypeMap = {};
@@ -197,18 +193,55 @@ export default {
this.trainingOperateTypeMap['07'] = list07; // 列车实训
const list08 = await this.$Dictionary.limitOperation();
this.trainingOperateTypeMap['08'] = list08; // 限速实训
+ await this.prdChoose(queryData);
+
this.reloadTable();
},
- prdChoose(form) {
- form.type = '';
- form.operateType = '';
+ async prdChoose(queryData) {
+ this.trainingTypeMap = {};
+ const mapId = this.$route.query.mapId;
+ const res = await getOperateTrainingList({ mapId: mapId, productType: queryData.prdType });
+ if (res && res.code == 200) {
+ const trainingTypeLists = res.data;
+ this.trainingTypeList.forEach(elem => {
+ trainingTypeLists.forEach(item => {
+ if (item.id == elem.code) {
+ item.label = elem.name;
+ item.value = elem.code;
+ }
+ if (this.trainingOperateTypeMap[item.id].length) {
+ this.trainingOperateTypeMap[item.id].forEach(i => {
+ item.children.forEach(v => {
+ if (i.code == v.id) {
+ v.name = i.name;
+ v.code = i.code;
+ }
+ });
+ });
+ }
+ });
+ });
+ trainingTypeLists.forEach(item => {
+ item.children.forEach(v => {
+ if (!this.trainingTypeMap[item.id]) {
+ this.trainingTypeMap[item.id] = [];
+ }
+
+ this.trainingTypeMap[item.id].push({
+ label: v.name,
+ value: v.code
+ });
+ });
+ });
+ this.queryForm.queryObject.type.config.data = trainingTypeLists;
+ }
},
typeChoose(form) {
this.queryForm.queryObject.operateType.config.data = [];
form.operateType = '';
- if (form && form.type) {
- this.trainingOperateTypeMap[form.type].forEach(elem => {
- this.queryForm.queryObject.operateType.config.data.push({ value: elem.code, label: elem.name });
+ if (form && form.type && this.trainingTypeMap[form.type]) {
+ this.trainingTypeMap[form.type].forEach(elem => {
+ this.queryForm.queryObject.operateType.config.data.push({ value: elem.value, label: elem.label });
});
}
},
From 478d5a10837f1f193d566a09885e1f2d710208b2 Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Thu, 2 Apr 2020 17:48:54 +0800
Subject: [PATCH 09/27] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=96=AD=E7=82=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/scripts/cmdPlugin/ValidateHandler.js | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/scripts/cmdPlugin/ValidateHandler.js b/src/scripts/cmdPlugin/ValidateHandler.js
index dc4cc1c74..1e69bf282 100644
--- a/src/scripts/cmdPlugin/ValidateHandler.js
+++ b/src/scripts/cmdPlugin/ValidateHandler.js
@@ -48,7 +48,6 @@ class ValidateHandler {
/** 判断操作步骤是否正确 */
judge (operate) {
- debugger;
const steps = Handler.getSteps();
const order = Handler.getOrder();
From 97eca7540786cfa7456f848b8cff3e3d16da29b0 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Thu, 2 Apr 2020 17:51:59 +0800
Subject: [PATCH 10/27] =?UTF-8?q?=E5=93=88=E5=B0=94=E6=BB=A8=E5=AE=9E?=
=?UTF-8?q?=E8=AE=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../theme/haerbin_01/menus/menuSwitch.vue | 36 ++++---------------
src/scripts/cmdPlugin/ValidateHandler.js | 1 -
2 files changed, 6 insertions(+), 31 deletions(-)
diff --git a/src/jmapNew/theme/haerbin_01/menus/menuSwitch.vue b/src/jmapNew/theme/haerbin_01/menus/menuSwitch.vue
index e90783d30..f8d6cb09a 100644
--- a/src/jmapNew/theme/haerbin_01/menus/menuSwitch.vue
+++ b/src/jmapNew/theme/haerbin_01/menus/menuSwitch.vue
@@ -42,36 +42,6 @@ export default {
menu: [],
menuNormal: {
Local: [
- {
- label: '单操到定位',
- handler: this.locate,
- cmdType: CMD.Switch.CMD_SWITCH_NORMAL_POSITION
- },
- {
- label: '单操到反位',
- handler: this.reverse,
- cmdType: CMD.Switch.CMD_SWITCH_REVERSE_POSITION
- },
- {
- label: '道岔单锁',
- handler: this.lock,
- cmdType:CMD.Switch.CMD_SWITCH_SINGLE_LOCK
- },
- {
- label: '道岔单解',
- handler: this.unlock,
- cmdType:CMD.Switch.CMD_SWITCH_SINGLE_UNLOCK
- },
- {
- label: '道岔封锁',
- handler: this.block,
- cmdType:CMD.Switch.CMD_SWITCH_BLOCK
- },
- {
- label: '道岔解封',
- handler: this.unblock,
- cmdType:CMD.Switch.CMD_SWITCH_UNBLOCK
- }
],
Center: [
{
@@ -210,6 +180,7 @@ export default {
lock() {
const step = {
start: true,
+ code: `${this.selected.code}`,
operation: OperationEvent.Switch.lock.menu.operation,
param: {
switchCode: this.selected.code
@@ -227,6 +198,7 @@ export default {
const step = {
start: true,
operation: OperationEvent.Switch.unlock.menu.operation,
+ code: `${this.selected.code}`,
param: {
switchCode: this.selected.code
}
@@ -243,6 +215,7 @@ export default {
const step = {
start: true,
operation: OperationEvent.Switch.block.menu.operation,
+ code: `${this.selected.code}`,
param: {
switchCode: this.selected.code
}
@@ -259,6 +232,7 @@ export default {
const step = {
start: true,
operation: OperationEvent.Switch.unblock.menu.operation,
+ code: `${this.selected.code}`,
param: {
switchCode: this.selected.code
}
@@ -275,6 +249,7 @@ export default {
const operate = {
start: true,
operation: OperationEvent.Switch.locate.menu.operation,
+ code: `${this.selected.code}`,
param: {
switchCode: this.selected.code
}
@@ -291,6 +266,7 @@ export default {
const operate = {
start: true,
operation: OperationEvent.Switch.reverse.menu.operation,
+ code: `${this.selected.code}`,
param: {
switchCode: this.selected.code
}
diff --git a/src/scripts/cmdPlugin/ValidateHandler.js b/src/scripts/cmdPlugin/ValidateHandler.js
index caea1abe0..d1a173922 100644
--- a/src/scripts/cmdPlugin/ValidateHandler.js
+++ b/src/scripts/cmdPlugin/ValidateHandler.js
@@ -48,7 +48,6 @@ class ValidateHandler {
/** 判断操作步骤是否正确 */
judge (operate) {
- debugger;
const steps = Handler.getSteps();
const order = Handler.getOrder();
let valid = false;
From 6916884045547a43feef86f7dea1a42ded753388 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Thu, 2 Apr 2020 18:38:21 +0800
Subject: [PATCH 11/27] =?UTF-8?q?=E5=93=88=E5=B0=94=E6=BB=A8=E5=AE=9E?=
=?UTF-8?q?=E8=AE=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/scripts/OperationConfig.js | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/scripts/OperationConfig.js b/src/scripts/OperationConfig.js
index 1a4b3cbd5..e6c1438c8 100644
--- a/src/scripts/OperationConfig.js
+++ b/src/scripts/OperationConfig.js
@@ -2962,7 +2962,7 @@ export const OperationList = {
trainingType: '03',
productTypes: ['01'],
stepVOList: [
- { deviceType: '02', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该区段' },
+ { deviceType: '02', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该道岔' },
{ deviceType: '02', orderNum: 2, operateCode: '101', tip: '鼠标左键点击【转换定位】按钮' },
{ deviceType: '02', orderNum: 3, operateCode: '008', tip: '鼠标左键点击【执行】按钮' }
]
@@ -2991,7 +2991,7 @@ export const OperationList = {
trainingType: '03',
productTypes: ['01'],
stepVOList: [
- { deviceType: '02', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该区段' },
+ { deviceType: '02', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该道岔' },
{ deviceType: '02', orderNum: 2, operateCode: '102', tip: '鼠标左键点击【转换反位】按钮' },
{ deviceType: '02', orderNum: 3, operateCode: '008', tip: '鼠标左键点击【执行】按钮' }
]
@@ -3020,7 +3020,7 @@ export const OperationList = {
trainingType: '03',
productTypes: ['01'],
stepVOList: [
- { deviceType: '02', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该区段' },
+ { deviceType: '02', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该道岔' },
{ deviceType: '02', orderNum: 2, operateCode: '103', tip: '鼠标左键点击【单锁道岔】按钮' },
{ deviceType: '02', orderNum: 3, operateCode: '008', tip: '鼠标左键点击【执行】按钮' }
]
@@ -3049,7 +3049,7 @@ export const OperationList = {
trainingType: '03',
productTypes: ['01'],
stepVOList: [
- { deviceType: '02', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该区段' },
+ { deviceType: '02', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该道岔' },
{ deviceType: '02', orderNum: 2, operateCode: '104', tip: '鼠标左键点击【取消锁定】按钮' },
{ deviceType: '02', orderNum: 3, operateCode: '008', tip: '鼠标左键点击【执行】按钮' }
]
@@ -3078,7 +3078,7 @@ export const OperationList = {
trainingType: '03',
productTypes: ['01'],
stepVOList: [
- { deviceType: '02', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该区段' },
+ { deviceType: '02', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该道岔' },
{ deviceType: '02', orderNum: 2, operateCode: '105', tip: '鼠标左键点击【封锁道岔】按钮' },
{ deviceType: '02', orderNum: 3, operateCode: '008', tip: '鼠标左键点击【执行】按钮' }
]
@@ -3107,7 +3107,7 @@ export const OperationList = {
trainingType: '03',
productTypes: ['01'],
stepVOList: [
- { deviceType: '02', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该区段' },
+ { deviceType: '02', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该道岔' },
{ deviceType: '02', orderNum: 2, operateCode: '106', tip: '鼠标左键点击【解封道岔】按钮' },
{ deviceType: '02', orderNum: 3, operateCode: '008', tip: '鼠标左键点击【执行】按钮' }
]
From 50eb7c2315596c16fab365fba1e7af00d490af57 Mon Sep 17 00:00:00 2001
From: sunzhenyu