Merge branch 'master' of https://git.code.tencent.com/beijing-rtss-test/bj-rtss-client
This commit is contained in:
commit
779b39d1fc
@ -83,6 +83,8 @@ import { StopPositionData } from './graphics/StopPositionInteraction';
|
|||||||
import { SpksSwitchData } from './graphics/SpksSwitchInteraction';
|
import { SpksSwitchData } from './graphics/SpksSwitchInteraction';
|
||||||
import { GatedBoxData } from './graphics/GatedBoxInteraction';
|
import { GatedBoxData } from './graphics/GatedBoxInteraction';
|
||||||
import { EsbButtonData } from './graphics/EsbButtonInteraction';
|
import { EsbButtonData } from './graphics/EsbButtonInteraction';
|
||||||
|
import { Transponder } from 'src/graphics/transponder/Transponder';
|
||||||
|
import { TransponderData } from './graphics/TransponderInteraction';
|
||||||
|
|
||||||
let lineApp: GraphicApp | null = null;
|
let lineApp: GraphicApp | null = null;
|
||||||
let msgBroker: AppWsMsgBroker | null = null;
|
let msgBroker: AppWsMsgBroker | null = null;
|
||||||
@ -288,6 +290,9 @@ export async function loadLineDatas(app: GraphicApp) {
|
|||||||
storage.esbButtons.forEach((esbButton) => {
|
storage.esbButtons.forEach((esbButton) => {
|
||||||
datas.push(new EsbButtonData(esbButton));
|
datas.push(new EsbButtonData(esbButton));
|
||||||
});
|
});
|
||||||
|
storage.transponders.forEach((transponder) => {
|
||||||
|
datas.push(new TransponderData(transponder));
|
||||||
|
});
|
||||||
await app.loadGraphic(datas);
|
await app.loadGraphic(datas);
|
||||||
|
|
||||||
const alllGraphic = (lineApp as GraphicApp).queryStore.getAllGraphics();
|
const alllGraphic = (lineApp as GraphicApp).queryStore.getAllGraphics();
|
||||||
@ -297,6 +302,10 @@ export async function loadLineDatas(app: GraphicApp) {
|
|||||||
} else {
|
} else {
|
||||||
g.visible = false;
|
g.visible = false;
|
||||||
}
|
}
|
||||||
|
if (g.type == Transponder.Type) {
|
||||||
|
// 应答器不显示名称
|
||||||
|
(g as Transponder).labelGraphic.visible = false;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
StompCli.new({
|
StompCli.new({
|
||||||
|
Loading…
Reference in New Issue
Block a user