diff --git a/src/jmapNew/map.js b/src/jmapNew/map.js index 085be1252..1fe49d8ea 100644 --- a/src/jmapNew/map.js +++ b/src/jmapNew/map.js @@ -338,7 +338,7 @@ class Jlmap { }); } setUpdateMapDevice(list) { - store.dispatch('map/updateMapDevice', list); + store.commit('map/updateMapDevice', list); (list || []).forEach(elem => { const code = elem.code; const type = elem._type; @@ -483,8 +483,7 @@ class Jlmap { } else { if (elem.deviceType === 'TRAIN') { this.isUpdateShowTrainList = true; - store.dispatch('map/updateActiveTrainList', elem); - // store.dispatch('map/updateTrainState', elem); + store.commit('map/updateActiveTrainList', elem); } else if (elem.deviceType === 'STAND') { store.dispatch('map/updateStationStand', elem); const psdDevice = this.mapDevice[this.mapDevice[elem.code].psdCode]; @@ -505,9 +504,7 @@ class Jlmap { if (elem.dispose) { this.$painter.delete(oDevice); } else { - // if (this.hookHandle(oDevice, elem)) { this.$painter.update(oDevice); - // } } } }); diff --git a/src/jmapNew/mouseController.js b/src/jmapNew/mouseController.js index 4b7918e82..7ef0a8514 100644 --- a/src/jmapNew/mouseController.js +++ b/src/jmapNew/mouseController.js @@ -85,8 +85,8 @@ class MouseController extends Eventful { mousedown(e) { // if (eventTool.notLeftMouse(e)) { // return; - // } - this.$zr.dom.focus(); + // } + this.$zr.dom.focus(); if (e.which == 1 || e.which == 3) { var x = e.offsetX; var y = e.offsetY; @@ -287,7 +287,7 @@ class MouseController extends Eventful { } }); this.deviceList = includeDeviceList; - store.dispatch('map/setSeclectDeviceList', this.deviceList); // 给store设置框选的 model + store.commit('map/setSeclectDeviceList', this.deviceList); // 给store设置框选的 model } // 生成包围盒对象坐标 createFakeBoundingRect(instance) { diff --git a/src/jmapNew/theme/haerbin_01/menus/menuBar.vue b/src/jmapNew/theme/haerbin_01/menus/menuBar.vue index 21d4f8b86..56336e40e 100644 --- a/src/jmapNew/theme/haerbin_01/menus/menuBar.vue +++ b/src/jmapNew/theme/haerbin_01/menus/menuBar.vue @@ -1,7 +1,7 @@