调整代码

This commit is contained in:
fan 2020-03-23 10:47:16 +08:00
parent a435040ef1
commit 0e23e9f6a9
3 changed files with 18 additions and 18 deletions

View File

@ -167,28 +167,28 @@ export default class Automactic extends Group {
const showMode = this.model.showMode;
const showConditions = this.style.AutoTurnBack.visibleConditions;
if (!showConditions || showConditions === '01' || showMode === showConditions) {
this.show();
this.showMode();
} else {
this.hide();
this.hideMode();
}
}
setShowStation(stationCode) {
if (!stationCode || this.model.stationCode === stationCode) {
this.isShowShape = true;
this.show();
this.showMode();
} else {
this.isShowShape = false;
this.hide();
this.hideMode();
}
}
show() {
showMode() {
this.control && this.control.show();
this.text && this.text.show();
this.subtitleText && this.subtitleText.show();
this.arcBorder && this.arcBorder.show();
this.setState(this.model);
}
hide() {
hideMode() {
this.control && this.control.hide();
this.text && this.text.hide();
this.subtitleText && this.subtitleText.hide();

View File

@ -136,27 +136,27 @@ export default class AutomacticRoute extends Group {
const showMode = this.model.showMode;
const showConditions = this.style.AutomaticRoute.displayCondition;
if (!showConditions || showConditions === '01' || showMode === showConditions) {
this.show();
this.showMode();
} else {
this.hide();
this.hideMode();
}
}
setShowStation(stationCode) {
if (!stationCode || this.model.stationCode === stationCode) {
this.isShowShape = true;
this.show();
this.showMode();
} else {
this.isShowShape = false;
this.hide();
this.hideMode();
}
}
show() {
showMode() {
this.control && this.control.show();
this.text && this.text.show();
this.subtitleText && this.subtitleText.show();
this.setState(this.model);
}
hide() {
hideMode() {
this.control && this.control.hide();
this.text && this.text.hide();
this.subtitleText && this.subtitleText.hide();

View File

@ -136,27 +136,27 @@ export default class GuideLock extends Group {
const showMode = this.model.showMode;
const showConditions = this.style.GuideLock.displayCondition;
if (!showConditions || showConditions === '01' || showMode === showConditions) {
this.show();
this.showMode();
} else {
this.hide();
this.hideMode();
}
}
setShowStation(stationCode) {
if (!stationCode || this.model.stationCode === stationCode) {
this.isShowShape = true;
this.show();
this.showMode();
} else {
this.isShowShape = false;
this.hide();
this.hideMode();
}
}
show() {
showMode() {
this.control && this.control.show();
this.text && this.text.show();
this.subtitleText && this.subtitleText.show();
this.setState(this.model);
}
hide() {
hideMode() {
this.control && this.control.hide();
this.text && this.text.hide();
this.subtitleText && this.subtitleText.hide();