diff --git a/src/jmapNew/shape/graph/Switch/ESwLnversion.js b/src/jmapNew/shape/graph/Switch/ESwLnversion.js index fda8a4bb5..a2e30332c 100644 --- a/src/jmapNew/shape/graph/Switch/ESwLnversion.js +++ b/src/jmapNew/shape/graph/Switch/ESwLnversion.js @@ -51,13 +51,13 @@ class ESwLnversion extends Group { this.relocShelter.setStyle(data); } - addHover(style) { - this.__zr && this.__zr.addHover(this.relocShelter, style) - } + addHover(style) { + this.__zr && this.__zr.addHover(this.relocShelter, style); + } - removeHover() { - this.__zr && this.__zr.removeHover(this.relocShelter); - } + removeHover() { + this.__zr && this.__zr.removeHover(this.relocShelter); + } stopAnimation(flag) { this.relocShelter.stopAnimation(flag); diff --git a/src/views/newMap/displayBaSiDi/tmt.vue b/src/views/newMap/displayBaSiDi/tmt.vue index 9a2b94cae..5105cc278 100644 --- a/src/views/newMap/displayBaSiDi/tmt.vue +++ b/src/views/newMap/displayBaSiDi/tmt.vue @@ -413,8 +413,8 @@ export default { } else if (this.operationType === 'create') { params.sectionCode = this.nowSectionCode; params.groupNumber = this.groupNumber1; - params.dn = this.newTrainCode.slice(0, 3); - params.sn = this.newTrainCode.slice(3, 6); + params.dn = this.newTrainCode.slice(0, 4); + params.sn = '0' + this.newTrainCode.slice(4, 6); params.tn = '0' + this.newTrainCode.slice(6, 8); step.cmdType = CMD.TrainWindow.CMD_TRAIN_ADD_TRAIN_TRACE; step.operation = OperationEvent.Train.addTrainId.menu.operation;