12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- import Bus from "@/utils/bus";
- /**
- * 测站标签展示
- * 测站主页:显示站房雨量场等图标;仪器运维:显示仪器图标
- * @param type 展示标签类型(测站主页:显示站房雨量场等图标;仪器运维:显示仪器图标;水质检验:显示屋内仪器图标,ADCP弹框)
- */
- export function setStationLabel(stcd: any, type = "测站主页", show = true) {
- let descriptor = {
- "command": "SetPOI",
- "data": {
- "ID": stcd,
- "type": type,
- "display": show ? "True" : "False"
- }
- }
- Bus.emit('emitUIInteraction', descriptor)
- console.log("-- 测站标签展示", JSON.stringify(descriptor));
- }
- export function closeStationLabel(stcd: any) {
- ['测站主页', '仪器运维'].forEach(item => setStationLabel(stcd, item, false))
- }
- export function adcpfx(stcd: any, show = true) {
- let descriptor = {
- "command": "ADCPFX",
- "data": {
- "Type": show ? "True" : "False",
- "ID": stcd
- }
- }
- Bus.emit('emitUIInteraction', descriptor)
- console.log("-- H-ADCP特效与标签显隐", JSON.stringify(descriptor));
- }
- export function setLED(data: any) {
- let descriptor = {
- "command": "SetLED",
- "data": data
- }
- Bus.emit('emitUIInteraction', descriptor)
- console.log("-- 修改LED大屏内容", JSON.stringify(descriptor));
- }
|