-
-
+
+
diff --git a/src/views/newMap/displayNew/demon/planSchedule.vue b/src/views/newMap/displayNew/demon/planSchedule.vue
index f974685b9..e4fe81768 100644
--- a/src/views/newMap/displayNew/demon/planSchedule.vue
+++ b/src/views/newMap/displayNew/demon/planSchedule.vue
@@ -280,7 +280,6 @@ export default {
this.runSeries = this.PlanConvert.updateDataToModels(data, stations, this.kmRangeCoordMap,
this.runPlanData, this.runSeries, { color: '#FF00DE', width: 2 }
);
- // console.log(this.runSeries);
const series = [...this.staticSeries, ...this.runSeries, ...this.selectSeries];
this.myChart && this.myChart.setOption({series: series});
},
@@ -486,7 +485,6 @@ export default {
} else {
option.series = [...this.staticSeries, ...this.runSeries, ...this.selectSeries];
}
- // console.log('获取历史数据');
this.myChart = echarts.init(document.getElementById(this.runPlanId));
if (this.myChart) {
this.myChart.setOption(option);
From 345b676cbc3f4d4ebdb585e2bc75decd7e23da50 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Tue, 24 Nov 2020 17:48:36 +0800
Subject: [PATCH 02/15] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=99=BB=E5=BD=95?=
=?UTF-8?q?=E9=94=99=E8=AF=AF=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/utils/baseUrl.js | 4 ++--
src/utils/request.js | 2 +-
src/views/login/index.vue | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js
index ef240edc3..c0569ef83 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.129:9000'; // 旭强
- BASE_API = 'http://192.168.8.119:9000'; // 张赛
+ // BASE_API = 'http://192.168.8.119: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/utils/request.js b/src/utils/request.js
index 08b9ab4e1..f26205790 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -49,7 +49,7 @@ service.interceptors.response.use(
router.push({ path: `/authorization` });
}
// 50008:非法的token; 50012:其他客户端登录了; 50014:Token 过期了;
- if (res.code == 40004 || res.code == 40005 || res.code == 40003) {
+ if (res.code == 40004 || res.code == 40005) {
// eslint-disable-next-line no-undef
EventBus.$emit('stop');
// eslint-disable-next-line no-undef
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index a4f1a0b96..748caf12d 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -450,7 +450,7 @@ export default {
this.$store.dispatch('SetAccount', model.username);
this.handleLoginSucessRoute();
}).catch(error => {
- if (error.code === '30001') {
+ if (error.code == '40003') {
this.tipsMsg = this.$t('login.accountOrPasswordIsIncorrect');
} else if (error.code == '10001') {
this.tipsMsg = '教员机尚未登录,请稍后重试!';
From 275b44e056239526f3884b831aeea860e1f08dc4 Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Tue, 24 Nov 2020 18:07:09 +0800
Subject: [PATCH 03/15] =?UTF-8?q?=E5=8C=97=E4=BA=A4=E5=A4=A7=20=E5=AE=A2?=
=?UTF-8?q?=E6=B5=81=E4=BB=BF=E7=9C=9F=20=E6=8F=90=E7=A4=BA=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../StationStand/safeStand/ESolidStand.js | 30 +++++++++++++++++++
src/jmapNew/shape/Train/EMouse.js | 28 ++++++++++++-----
2 files changed, 51 insertions(+), 7 deletions(-)
diff --git a/src/jmapNew/shape/StationStand/safeStand/ESolidStand.js b/src/jmapNew/shape/StationStand/safeStand/ESolidStand.js
index 5e41f0463..5ef4d9b4b 100644
--- a/src/jmapNew/shape/StationStand/safeStand/ESolidStand.js
+++ b/src/jmapNew/shape/StationStand/safeStand/ESolidStand.js
@@ -1,5 +1,6 @@
import Group from 'zrender/src/container/Group';
import Rect from 'zrender/src/graphic/shape/Rect';
+import Text from 'zrender/src/graphic/Text';
class ESolidStand extends Group {
constructor(model) {
@@ -28,6 +29,33 @@ class ESolidStand extends Group {
}
});
this.add(this.stand);
+
+ const path = window.location.href;
+ if (path.includes('/practiceDisplay')) {
+ // 文字描述
+ this.arrowText = new Text({
+ zlevel: this.model.zlevel,
+ z: this.model.z + 10,
+ style: {
+ x: model.position.x + 35,
+ y: model.position.y - 20,
+ text: `${'站台人数: ' + model.num ? model.num : 0}`,
+ textFill: '#000',
+ textAlign: 'left',
+ textFont: 12 + 'px consolas',
+ textPadding: 3,
+ textBackgroundColor: style.tipBackgroundColor
+ }
+ });
+ this.add(this.arrowText);
+ this.arrowText.hide();
+ this.on('mouseover', () => {
+ this.arrowText.show();
+ });
+ this.on('mouseout', () => {
+ this.arrowText.hide();
+ });
+ }
}
setColor(color) {
@@ -66,8 +94,10 @@ class ESolidStand extends Group {
} else {
this.setColor('#F00');
}
+ this.arrowText.setStyle('text', '站台人数: ' + num);
} else {
this.setColor('#29a909');
+ this.arrowText.setStyle('text', '站台人数: 0');
}
}
}
diff --git a/src/jmapNew/shape/Train/EMouse.js b/src/jmapNew/shape/Train/EMouse.js
index c02ba9aac..1b499aef6 100644
--- a/src/jmapNew/shape/Train/EMouse.js
+++ b/src/jmapNew/shape/Train/EMouse.js
@@ -46,15 +46,22 @@ class EMouse extends Group {
if (!store.state.map.mapConfig.upRight) {
direction = this.device.model.right != 1;
}
- if (LangStorage.getLang() == 'en') {
- text = ` The planned train: ${trainType} \n Table No.: ${this.device.model.serviceNumber} \n Train Trip No.: ${this.device.model.tripNumber}\n Destination: ${this.device.model.destinationCode ? this.device.model.destinationCode : ''}\n Train No.: ${this.device.model.groupNumber}\n Early or late: ${destinationText}\n Direction: ${direction ? 'up' : 'down'}\n Crew No.: \n Start Station: \n Terminal Station: \n Occupied Track: ${this.device.model.sectionModel ? (this.device.model.sectionModel.parentName ? this.device.model.sectionModel.parentName : this.device.model.sectionModel.name) : ''}\n Current Station: \n Train-ground communication: normal \n Operation Speed level: 4 \n Detained: ${this.device.model.hold ? 'Detained' : 'Normal'}\n \n 跳停状态: ${this.device.model.jump ? 'Skip to continue moving' : 'Normal'}Stationary: ${!this.device.model.stop ? 'No' : 'Yes'}\n Blocked: No \n Speed: ${this.device.model.speed || 0} km/h \n Authorized Distance: ${this.device.model.maLen || 0} m\nNumber of people: ${this.device.model.num ? this.device.model.num : 0}`;
- } else {
- if (Vue.prototype.$jlmap.lineCode == '11' || Vue.prototype.$jlmap.lineCode == '10') {
- text = `列车类型: ${trainType}\n来\0\0\0\0源:人工标记\n车\0组\0号: ${this.device.model.groupNumber}\n表\0\0\0\0号: ${this.device.model.serviceNumber}\n车\0次\0号: ${this.device.model.tripNumber}\n目的地号: ${this.device.model.destinationCode ? this.device.model.destinationCode : ''}\n早\0晚\0点: ${destinationText}\n运行方向: ${direction ? '上行' : '下行'}\nATP报告方向: ${direction ? '上行' : '下行'}\n起点站名: \n终点站名: \n占用轨道: ${this.device.model.sectionModel ? (this.device.model.sectionModel.parentName ? this.device.model.sectionModel.parentName : this.device.model.sectionModel.name) : ''}\n所在车站: \n车次通信: 通信车\n运行时间: \n停站时间: \n扣车状态: ${ this.device.model.hold ? '扣车' : '正常'}\n车载扣车: 不执行\n跳停状态: ${this.device.model.jump ? '跳停' : '正常'}\n停稳状态: ${!this.device.model.stop ? '未停稳' : '停稳'}\n阻塞状态: 无\n列车状态: ${this.device.model.runLevel || 'CTC'}车\n最高信号系统控制: CTC\n驾驶模式: ${this.device.model.driveMode}模式\n最高ATP模式: AM\nATP1状态: 激活\nATP2状态: 备用\n速度: ${this.device.model.speed || 0} km/h\n车门状态: ${this.device.model.speed ? '关闭' : direction ? '左开右关' : '左关右开'}\n制动状态: 无紧急制动\n停车保证: 可保证停车\n站台无法进入: 否\n前方站台停车点: 中间\n折法策略: \n折返状态: \n屏蔽门开门许可: 是\n运营里程: 无效\n总重量: 196T\n车长: 11860cm\n列车编组: 1`;
+ // \nNumber of people: ${this.device.model.num ? this.device.model.num : 0}
+ const path = window.location.href;
+ if (!path.includes('/practiceDisplay')) {
+ if (LangStorage.getLang() == 'en') {
+ text = ` The planned train: ${trainType} \n Table No.: ${this.device.model.serviceNumber} \n Train Trip No.: ${this.device.model.tripNumber}\n Destination: ${this.device.model.destinationCode ? this.device.model.destinationCode : ''}\n Train No.: ${this.device.model.groupNumber}\n Early or late: ${destinationText}\n Direction: ${direction ? 'up' : 'down'}\n Crew No.: \n Start Station: \n Terminal Station: \n Occupied Track: ${this.device.model.sectionModel ? (this.device.model.sectionModel.parentName ? this.device.model.sectionModel.parentName : this.device.model.sectionModel.name) : ''}\n Current Station: \n Train-ground communication: normal \n Operation Speed level: 4 \n Detained: ${this.device.model.hold ? 'Detained' : 'Normal'}\n \n 跳停状态: ${this.device.model.jump ? 'Skip to continue moving' : 'Normal'}Stationary: ${!this.device.model.stop ? 'No' : 'Yes'}\n Blocked: No \n Speed: ${this.device.model.speed || 0} km/h \n Authorized Distance: ${this.device.model.maLen || 0} m`;
} else {
- text = `列车类型: ${trainType} \n表\0\0\0\0号: ${this.device.model.serviceNumber}\n车\0次\0号: ${this.device.model.tripNumber}\n目的地号: ${this.device.model.destinationCode ? this.device.model.destinationCode : ''}\n车\0组\0号: ${this.device.model.groupNumber}\n早\0晚\0点: ${destinationText}\n运行方向: ${direction ? '上行' : '下行'}\n乘务组号: \n起点站名: \n终点站名: \n占用轨道: ${this.device.model.sectionModel ? (this.device.model.sectionModel.parentName ? this.device.model.sectionModel.parentName : this.device.model.sectionModel.name) : ''}\n所在车站: \n车地通信: 正常\n运行等级: 4\n扣车状态: ${this.device.model.hold ? '扣车' : '正常'}\n跳停状态: ${this.device.model.jump ? '跳停' : '正常'} \n停稳状态: ${!this.device.model.stop ? '未停稳' : '停稳'}\n阻塞状态: 无\n列车速度: ${this.device.model.speed || 0} km/h\n列车移动授权距离: ${this.device.model.maLen || 0} m${this.device.model.num ? '\n车内人数: ' + this.device.model.num : ''}`;
+ if (Vue.prototype.$jlmap.lineCode == '11' || Vue.prototype.$jlmap.lineCode == '10') {
+ text = `列车类型: ${trainType}\n来\0\0\0\0源:人工标记\n车\0组\0号: ${this.device.model.groupNumber}\n表\0\0\0\0号: ${this.device.model.serviceNumber}\n车\0次\0号: ${this.device.model.tripNumber}\n目的地号: ${this.device.model.destinationCode ? this.device.model.destinationCode : ''}\n早\0晚\0点: ${destinationText}\n运行方向: ${direction ? '上行' : '下行'}\nATP报告方向: ${direction ? '上行' : '下行'}\n起点站名: \n终点站名: \n占用轨道: ${this.device.model.sectionModel ? (this.device.model.sectionModel.parentName ? this.device.model.sectionModel.parentName : this.device.model.sectionModel.name) : ''}\n所在车站: \n车次通信: 通信车\n运行时间: \n停站时间: \n扣车状态: ${ this.device.model.hold ? '扣车' : '正常'}\n车载扣车: 不执行\n跳停状态: ${this.device.model.jump ? '跳停' : '正常'}\n停稳状态: ${!this.device.model.stop ? '未停稳' : '停稳'}\n阻塞状态: 无\n列车状态: ${this.device.model.runLevel || 'CTC'}车\n最高信号系统控制: CTC\n驾驶模式: ${this.device.model.driveMode}模式\n最高ATP模式: AM\nATP1状态: 激活\nATP2状态: 备用\n速度: ${this.device.model.speed || 0} km/h\n车门状态: ${this.device.model.speed ? '关闭' : direction ? '左开右关' : '左关右开'}\n制动状态: 无紧急制动\n停车保证: 可保证停车\n站台无法进入: 否\n前方站台停车点: 中间\n折法策略: \n折返状态: \n屏蔽门开门许可: 是\n运营里程: 无效\n总重量: 196T\n车长: 11860cm\n列车编组: 1`;
+ } else {
+ text = `列车类型: ${trainType} \n表\0\0\0\0号: ${this.device.model.serviceNumber}\n车\0次\0号: ${this.device.model.tripNumber}\n目的地号: ${this.device.model.destinationCode ? this.device.model.destinationCode : ''}\n车\0组\0号: ${this.device.model.groupNumber}\n早\0晚\0点: ${destinationText}\n运行方向: ${direction ? '上行' : '下行'}\n乘务组号: \n起点站名: \n终点站名: \n占用轨道: ${this.device.model.sectionModel ? (this.device.model.sectionModel.parentName ? this.device.model.sectionModel.parentName : this.device.model.sectionModel.name) : ''}\n所在车站: \n车地通信: 正常\n运行等级: 4\n扣车状态: ${this.device.model.hold ? '扣车' : '正常'}\n跳停状态: ${this.device.model.jump ? '跳停' : '正常'} \n停稳状态: ${!this.device.model.stop ? '未停稳' : '停稳'}\n阻塞状态: 无\n列车速度: ${this.device.model.speed || 0} km/h\n列车移动授权距离: ${this.device.model.maLen || 0} m`;
+ }
}
+ } else {
+ text = `${'车内人数: ' + this.device.model.num}`;
}
+
const trainTip = this.device.style.Train.common.trainTip;
if (trainTip) {
// 文字描述
@@ -66,12 +73,19 @@ class EMouse extends Group {
y: this.device.model.point.y + 25,
text: text,
textFill: '#000',
- textAlign: 'letf',
+ textAlign: 'left',
textFont: 10 + 'px consolas',
textPadding: 3,
textBackgroundColor: this.device.style.tipBackgroundColor
}
});
+
+ if (path.includes('/practiceDisplay')) {
+ this.arrowText.setStyle('textFont', 12 + 'px consolas');
+ this.arrowText.setStyle('y', this.device.model.point.y + 15);
+ this.arrowText.setStyle('x', this.device.model.point.x + 55);
+ }
+
this.add(this.arrowText);
this.arrowText.hide();
}
From db9bcd0cc184c12a09cecbe49aa7a71fd4eefeca Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Tue, 24 Nov 2020 18:28:15 +0800
Subject: [PATCH 04/15] =?UTF-8?q?=E8=BF=9B=E5=85=A5iscs=E8=B7=AF=E5=BE=84?=
=?UTF-8?q?=E6=B7=BB=E5=8A=A0lineCode?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/login/index.vue | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 748caf12d..5b15d44fa 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -494,6 +494,7 @@ export default {
} else if (this.$route.query.type === 'ISCS_LW' || this.$route.query.type === 'ISCS_CW') {
this.$router.push({ path: `/displayIscs/system`, query: {
group: res.data.group,
+ lineCode: resp.data.map.lineCode,
projectDevice: this.$route.query.projectDevice,
type: this.$route.query.type} });
} else if (this.$route.query.type == 'CCTV') {
From c7a98096a29ab24c0bd74cf001e9a394f811bb75 Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Tue, 24 Nov 2020 19:17:10 +0800
Subject: [PATCH 05/15] =?UTF-8?q?=E6=95=99=E5=AD=A6=E7=B3=BB=E7=BB=9F=20?=
=?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/newMap/displayNew/index.vue | 4 +-
src/views/newMap/displayNew/lesson/index.vue | 46 +++++++++++++-------
2 files changed, 33 insertions(+), 17 deletions(-)
diff --git a/src/views/newMap/displayNew/index.vue b/src/views/newMap/displayNew/index.vue
index c7d42395c..6baa92778 100644
--- a/src/views/newMap/displayNew/index.vue
+++ b/src/views/newMap/displayNew/index.vue
@@ -118,7 +118,9 @@ export default {
}
},
$route() {
- this.initLoadData();
+ if (!this.isLesson) {
+ this.initLoadData();
+ }
}
},
beforeDestroy() {
diff --git a/src/views/newMap/displayNew/lesson/index.vue b/src/views/newMap/displayNew/lesson/index.vue
index 4325a7afd..10d0bb68d 100644
--- a/src/views/newMap/displayNew/lesson/index.vue
+++ b/src/views/newMap/displayNew/lesson/index.vue
@@ -34,6 +34,7 @@ import { trainingNotifyNew } from '@/api/simulation';
import { TrainingMode, UrlConfig } from '@/scripts/ConstDic';
import { timeFormat } from '@/utils/date';
import { getTrainingStepsDetailNew } from '@/api/jmap/training';
+import { EventBus } from '@/scripts/event-bus';
export default {
name: 'MenuLesson',
@@ -110,23 +111,15 @@ export default {
this.isDisable = false;
},
'$store.state.map.mapViewLoadedCount': function (val) {
- if (this.$route.query.trainingId) {
- // 获取实训步骤数据(新版地图)
- getTrainingStepsDetailNew(this.$route.query.trainingId, { group: this.group }).then(resp => {
- this.trainingObj = resp.data;
- this.$store.dispatch('training/setTrainingData', this.trainingObj); // 设置实训教学信息
- }).catch(error => {
- this.$messageBox(`初始化失败实训内容失败: ${error.message}`);
- });
- }
- this.$store.dispatch('training/end', null);
- this.$store.dispatch('training/reset');
- this.$store.dispatch('training/emitTipFresh');
- this.$store.dispatch('menuOperation/setButtonOperation', null);
- this.isDisable = false;
+ this.getTrainingData();
},
'$store.state.training.operateErrMsg': function (val) {
this.tipInfo({ color: val.color, message: val.errMsg });
+ },
+ async $route() {
+ await this.initData();
+ await this.getTrainingData();
+ this.endViewLoading(true);
}
},
mounted() {
@@ -143,6 +136,24 @@ export default {
});
}
},
+ getTrainingData() {
+ if (this.$route.query.trainingId) {
+ // 获取实训步骤数据(新版地图)
+ getTrainingStepsDetailNew(this.$route.query.trainingId, { group: this.group }).then(resp => {
+ this.trainingObj = resp.data;
+ this.$store.dispatch('training/setTrainingData', this.trainingObj); // 设置实训教学信息
+ const detail = resp.data;
+ this.$store.dispatch('training/setPrdType', this.prdTypeMap[detail.prdType]);
+ }).catch(error => {
+ this.$messageBox(`初始化失败实训内容失败: ${error.message}`);
+ });
+ }
+ this.$store.dispatch('training/end', null);
+ this.$store.dispatch('training/reset');
+ this.$store.dispatch('training/emitTipFresh');
+ this.$store.dispatch('menuOperation/setButtonOperation', null);
+ this.isDisable = false;
+ },
overallTranslation(flag) {
const panel = document.getElementById('leftSlider');
if (flag) {
@@ -262,8 +273,8 @@ export default {
const resp = await getTrainingDetailNew(this.$route.query.trainingId);
this.$store.dispatch('exam/setCenter', resp.data.locateDeviceCode);
if (resp && resp.code == 200) {
- const detail = resp.data;
- await this.$store.dispatch('training/setPrdType', this.prdTypeMap[detail.prdType]);
+ // const detail = resp.data;
+ // await this.$store.dispatch('training/setPrdType', this.prdTypeMap[detail.prdType]);
} else {
this.$messageBox(`获取实训步骤数据失败`);
this.endViewLoading();
@@ -277,6 +288,9 @@ export default {
if (!isSuccess) {
this.$store.dispatch('map/mapClear');
}
+ this.$nextTick(() => {
+ EventBus.$emit('viewLoading', false);
+ });
}
}
};
From e3551912913475932dda28ca104bf64fbf10e162 Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Wed, 25 Nov 2020 09:45:59 +0800
Subject: [PATCH 06/15] =?UTF-8?q?=E6=95=99=E5=AD=A6=E7=B3=BB=E7=BB=9F=20?=
=?UTF-8?q?=E5=AE=9E=E8=AE=AD=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
---
.../newMap/displayNew/lesson/LeftSlider.vue | 22 +++++++++----------
src/views/newMap/displayNew/lesson/index.vue | 4 ++++
2 files changed, 15 insertions(+), 11 deletions(-)
diff --git a/src/views/newMap/displayNew/lesson/LeftSlider.vue b/src/views/newMap/displayNew/lesson/LeftSlider.vue
index 83185a359..a0c9926e7 100644
--- a/src/views/newMap/displayNew/lesson/LeftSlider.vue
+++ b/src/views/newMap/displayNew/lesson/LeftSlider.vue
@@ -38,7 +38,7 @@