调整车站引导总锁在地图绘制中不显示,增加字体的默认状态

This commit is contained in:
zyy 2020-03-06 12:18:04 +08:00
parent a5543cb1b4
commit 93be0b7ff6
3 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,5 @@
import { deepAssign } from '@/utils/index'; import { deepAssign } from '@/utils/index';
import deviceType from './deviceType';
// 所有默认状态在这里都要有 用来转换后台发送的数据状态 // 所有默认状态在这里都要有 用来转换后台发送的数据状态
class Status { class Status {
@ -115,6 +116,9 @@ class Status {
handleOutFrame(device) { handleOutFrame(device) {
this.statusObj = { }; this.statusObj = { };
} }
handleText(device) {
this.statusObj = { };
}
getStatus() { getStatus() {
return this.statusObj; return this.statusObj;
} }

View File

@ -29,7 +29,10 @@ export default class Station extends Group {
}); });
this.create(); this.create();
this.createTurnBack(); // 创建按图折返 this.createTurnBack(); // 创建按图折返
const path = window.location.href;
if (!path.includes('/map/draw')) {
this.createGuideTotalLock(); // 创建引导总锁 this.createGuideTotalLock(); // 创建引导总锁
}
this.createControlMode(); this.createControlMode();
this.setState(model); this.setState(model);
this.checkIsDrawMap(); this.checkIsDrawMap();

View File

@ -147,7 +147,7 @@ export default {
createControlMode:false, createControlMode:false,
createTurnBack:false, createTurnBack:false,
guideTotalLock: false, guideTotalLock: false,
guideTotalLockPoint: {x: 0, y: 0}, guideTotalLockPoint: {x: 0, y: 0}, //
turnBackPoint: {x: 0, y: 0}, // turnBackPoint: {x: 0, y: 0}, //
controlModePoint: { x: 0, y: 0 } // controlModePoint: { x: 0, y: 0 } //
}, },