删除日志,信号机调整
This commit is contained in:
parent
5ef9b0aaaf
commit
027fe43467
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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(() => { });
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user