From 057c39fb218ccadfbc505b3f7b2b551b8c3a013c Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Thu, 30 Jun 2022 15:20:41 +0800 Subject: [PATCH] =?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/jmapNew/theme/datie_02/menus/dispatcherLoger.vue | 6 +++++- src/jmapNew/theme/datie_02/menus/index.vue | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/jmapNew/theme/datie_02/menus/dispatcherLoger.vue b/src/jmapNew/theme/datie_02/menus/dispatcherLoger.vue index 56e7ad6f8..e71a5f3f8 100644 --- a/src/jmapNew/theme/datie_02/menus/dispatcherLoger.vue +++ b/src/jmapNew/theme/datie_02/menus/dispatcherLoger.vue @@ -191,6 +191,10 @@ export default { // } '$store.state.map.mapDataLoadedCount': function (val) { // 地图数据加载完成 this.loadData(); + }, + // 仿真-仿真重置消息 + '$store.state.socket.simulationReset': function (val) { // 地图数据加载完成 + this.loadData(); } }, mounted() { @@ -227,7 +231,7 @@ export default { }); }, addDisLoger(model) { - this.tableData.push(model); + this.tableData.unshift(model); }, deleteDisLoger(model) { this.tableData.map(data=>{ diff --git a/src/jmapNew/theme/datie_02/menus/index.vue b/src/jmapNew/theme/datie_02/menus/index.vue index 44feee8f2..21d28f499 100644 --- a/src/jmapNew/theme/datie_02/menus/index.vue +++ b/src/jmapNew/theme/datie_02/menus/index.vue @@ -199,7 +199,9 @@ export default { this.initDate(date); }, '$store.state.socket.railwaySimulationRunplanSendChange': function (val) { - this.getRailwaySimulationRunplanSend(); + if (this.isCtc) { + this.getRailwaySimulationRunplanSend(); + } }, '$store.state.training.roleDeviceCode': function (val) { if (this.isCtc) {