diff --git a/src/jmapNew/shape/Signal/index.js b/src/jmapNew/shape/Signal/index.js index 7d5ff5f46..6e9fc6fb6 100644 --- a/src/jmapNew/shape/Signal/index.js +++ b/src/jmapNew/shape/Signal/index.js @@ -321,6 +321,12 @@ class Signal extends Group { this.lamps[0].setColor(this.style.Signal.lamp.grayColor); this.insideTriangle.show(); this.insideTriangle.setStyle({fill: this.style.Signal.lamp.redColor}); + setTimeout(()=> { + this.insideTriangle.setStyle({fill: '#000'}); + }, 500); + setTimeout(()=> { + this.insideTriangle.setStyle({fill: this.style.Signal.lamp.redColor}); + }, 1000); } } else { if (this.count == 2) { // 双灯 @@ -345,6 +351,12 @@ class Signal extends Group { this.lamps[0].setColor(this.style.Signal.lamp.grayColor); this.insideTriangle.show(); this.insideTriangle.setStyle({fill: this.style.Signal.lamp.greenColor}); + setTimeout(()=> { + this.insideTriangle.setStyle({fill: '#000'}); + }, 500); + setTimeout(()=> { + this.insideTriangle.setStyle({fill: this.style.Signal.lamp.greenColor}); + }, 1000); } } else { this.lamps[0] && this.lamps[0].setColor(this.style.Signal.lamp.greenColor); @@ -366,6 +378,12 @@ class Signal extends Group { this.lamps[0].setColor(this.style.Signal.lamp.grayColor); this.insideTriangle.show(); this.insideTriangle.setStyle({fill: this.style.Signal.lamp.yellowColor}); + setTimeout(()=> { + this.insideTriangle.setStyle({fill: '#000'}); + }, 1000); + setTimeout(()=> { + this.insideTriangle.setStyle({fill: this.style.Signal.lamp.yellowColor}); + }, 2000); } } else { this.lamps[0] && this.lamps[0].setColor(this.style.Signal.lamp.yellowColor); diff --git a/src/utils/stomp.js b/src/utils/stomp.js index b6a9b8fd9..2febbf668 100644 --- a/src/utils/stomp.js +++ b/src/utils/stomp.js @@ -22,7 +22,7 @@ export function creatSubscribe(topic, header) { function callback(Response) { if (store) { var data = JSON.parse(Response.body); - console.log(Response.body); + // console.log(Response.body); store.dispatch('socket/setStomp', data); } else { callback(Response); diff --git a/src/views/publish/publishLesson/index.vue b/src/views/publish/publishLesson/index.vue index 2fe2f9b43..c64889c4e 100644 --- a/src/views/publish/publishLesson/index.vue +++ b/src/views/publish/publishLesson/index.vue @@ -139,9 +139,9 @@ export default { this.$message.success(this.$t('publish.deleteSuccess')); this.reloadTable(); localStore.remove('mapId'); - }).catch(() => { + }).catch((error) => { this.reloadTable(); - this.$messageBox(this.$t('error.deleteFailed')); + this.$messageBox(this.$t('error.deleteFailed') + ':' + error.message); }); }).catch(() => { }); },