Merge branch 'dev' of https://git.code.tencent.com/lian-cbtc/jl-client into dev
This commit is contained in:
commit
5c1c40e8d2
@ -401,8 +401,13 @@ export default class Switch extends Group {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setState(model) {
|
setState(model) {
|
||||||
model.normalPosition && this.setLocationAction(model); /** 定位*/
|
if (model.normalPosition) {
|
||||||
model.reversePosition && this.setInversionAction(model); /** 反位*/
|
this.setLocationAction(model); /** 定位*/
|
||||||
|
} else if (model.reversePosition) {
|
||||||
|
this.setInversionAction(model); /** 反位*/
|
||||||
|
} else {
|
||||||
|
this.setLossAction(true);
|
||||||
|
}
|
||||||
/** 道岔单锁 */
|
/** 道岔单锁 */
|
||||||
model.singleLock && this.setMonolock();
|
model.singleLock && this.setMonolock();
|
||||||
/** 道岔锁闭 */
|
/** 道岔锁闭 */
|
||||||
|
Loading…
Reference in New Issue
Block a user