diff --git a/src/jmapNew/shape/graph/Train/TrainBody.js b/src/jmapNew/shape/graph/Train/TrainBody.js index 716381aa0..7fc7f5c8c 100644 --- a/src/jmapNew/shape/graph/Train/TrainBody.js +++ b/src/jmapNew/shape/graph/Train/TrainBody.js @@ -261,12 +261,13 @@ export default class TrainBody extends Group { this.add(this.travelNum); } if (style.Train.common.hasDelayTime) { + const time = Math.abs(model.dt) <= 15 ? Math.abs(model.dt) : (model.dt > 0 ? '-' + model.dt : '+' + Math.abs(model.dt)); this.delayTime = new ETextName({ zlevel: model.zlevel, z: model.z + 1, x: parseInt(model.point.x + style.Train.delayTime.trainDelayTimeOffset.x), y: parseInt(model.point.y + style.Train.delayTime.trainDelayTimeOffset.y), - text: model.dt > 0 ? '+' + model.dt : model.dt, + text: time, textFill: '#DADA00', textStroke: style.trainTextColor, textStrokeWidth: 0, diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 09f5d349f..c3d8d55e6 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -23,13 +23,13 @@ export function handlerUrl() { let OSS_URL; if (process.env.NODE_ENV === 'development') { // 开发分支 - // BASE_API = 'http://192.168.3.233/rtss-server'; + BASE_API = 'http://192.168.3.233/rtss-server'; // BASE_API = 'https://joylink.club/jlcloud'; // BASE_API = 'https://test.joylink.club/jlcloud'; // BASE_API = 'http://114.116.51.125/jlcloud'; // BASE_API = 'http://192.168.3.47:9000'; // 周寅 // BASE_API = 'http://192.168.3.94:9000'; // 旭强 - BASE_API = 'http://192.168.3.15:9000'; // 张赛 + // BASE_API = 'http://192.168.3.15:9000'; // 张赛 // BASE_API = 'http://192.168.3.5:9000'; // 夏增彬 // BASE_API = 'http://192.168.3.37:9000'; // 卫志宏 // BASE_API = 'http://b29z135112.zicp.vip'; diff --git a/src/views/newMap/display/index.vue b/src/views/newMap/display/index.vue index 52f4dbaee..788181cab 100644 --- a/src/views/newMap/display/index.vue +++ b/src/views/newMap/display/index.vue @@ -148,6 +148,7 @@ export default { await loadMapDataById(this.mapId, 'simulation'); } else { this.endViewLoading(); + this.$store.dispatch('app/animationsClose'); this.$messageBox('此地图数据正在维护中,无法运行!'); } }).catch(e => {