From bb37c6ebbbefbbd9b4c4ad806456cde150b95017 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Fri, 22 May 2020 18:41:23 +0800
Subject: [PATCH] =?UTF-8?q?=E8=A5=BF=E5=AE=89=E4=B8=89=E5=8F=B7=E7=BA=BF?=
=?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/jmapNew/map.js | 2 +
src/jmapNew/shape/Train/TrainBody.js | 4 +-
.../xian_01/menus/dialog/trainControl.vue | 8 +-
src/jmapNew/theme/xian_01/menus/menuBar.vue | 13 ++-
src/store/modules/map.js | 26 +++++-
.../components/StatusIcon/statusIcon.vue | 82 +++++++++++++++++++
src/views/newMap/displayNew/index.vue | 5 +-
src/views/newMap/jlmapNew/pendant/zoom.vue | 2 +-
.../newMap/mapsystemNew/plugin/src/tip.vue | 28 +++----
9 files changed, 140 insertions(+), 30 deletions(-)
create mode 100644 src/views/components/StatusIcon/statusIcon.vue
diff --git a/src/jmapNew/map.js b/src/jmapNew/map.js
index 89775ba64..f45e76172 100644
--- a/src/jmapNew/map.js
+++ b/src/jmapNew/map.js
@@ -418,6 +418,8 @@ class Jlmap {
if (elem.deviceType === 'TRAIN') {
store.dispatch('map/updateTrainState', elem);
store.dispatch('map/setTrainListUpdate', elem);
+ } else if (elem.deviceType === 'STAND') {
+ store.dispatch('map/updateStationStand', elem);
}
const oDevice = this.mapDevice[code] || deviceFactory(type, elem, this.showConfig);
if (elem.dispose) {
diff --git a/src/jmapNew/shape/Train/TrainBody.js b/src/jmapNew/shape/Train/TrainBody.js
index d849cf47a..4eb4519a4 100644
--- a/src/jmapNew/shape/Train/TrainBody.js
+++ b/src/jmapNew/shape/Train/TrainBody.js
@@ -344,10 +344,10 @@ export default class TrainBody extends Group {
this.delayTime && this.delayTime.setStyle({textFill: this.style.Train.soonerOrLater.normalColor});
}
} else if (this.style.Train.soonerOrLater && this.style.Train.soonerOrLater.level === 3) {
- if (dt > 0) {
+ if (dt > 120) {
this.style.Train.soonerOrLater.serviceNumber && this.textTrainServer && this.textTrainServer.setStyle({textFill: this.style.Train.soonerOrLater.earlyColor});
this.style.Train.soonerOrLater.trainBody && this.trainBodyBox && this.trainBodyBox.setColor({stroke: this.style.Train.soonerOrLater.earlyColor});
- } else if (dt < 0) {
+ } else if (dt < -120) {
this.style.Train.soonerOrLater.serviceNumber && this.textTrainServer && this.textTrainServer.setStyle({textFill: this.style.Train.soonerOrLater.lateColor});
this.style.Train.soonerOrLater.trainBody && this.trainBodyBox && this.trainBodyBox.setColor({stroke: this.style.Train.soonerOrLater.lateColor});
} else {
diff --git a/src/jmapNew/theme/xian_01/menus/dialog/trainControl.vue b/src/jmapNew/theme/xian_01/menus/dialog/trainControl.vue
index 39f7b59e6..87cd70709 100644
--- a/src/jmapNew/theme/xian_01/menus/dialog/trainControl.vue
+++ b/src/jmapNew/theme/xian_01/menus/dialog/trainControl.vue
@@ -25,8 +25,8 @@
@change="trainTypeChange"
>
{{ $t('menu.planTrain') }}
- {{ $t('menu.headCodeTrain') }}
- {{ $t('menu.artificialTrain') }}
+ {{ $t('menu.headCodeTrain') }}
+ {{ $t('menu.artificialTrain') }}
@@ -37,14 +37,14 @@
:disabled="serverNoIsDisabled"
/>
-
+
-
+
-
+
+
+
+
@@ -698,8 +698,7 @@ export default {
diff --git a/src/views/newMap/displayNew/index.vue b/src/views/newMap/displayNew/index.vue
index 4c7c007f6..b29ea5d89 100644
--- a/src/views/newMap/displayNew/index.vue
+++ b/src/views/newMap/displayNew/index.vue
@@ -4,6 +4,7 @@
+
{
- let offset = 15;
+ let offset = this.$route.path.includes('displayNew') && (this.$route.query.lineCode == 10 || this.$route.query.lineCode == 11) ? 73 : 15;
const menuBar = document.getElementById('menuBar');
const menuTool = document.getElementById('menuTool');
if (menuBar) {
diff --git a/src/views/newMap/mapsystemNew/plugin/src/tip.vue b/src/views/newMap/mapsystemNew/plugin/src/tip.vue
index d571475c6..ae63924f5 100644
--- a/src/views/newMap/mapsystemNew/plugin/src/tip.vue
+++ b/src/views/newMap/mapsystemNew/plugin/src/tip.vue
@@ -6,19 +6,19 @@