|
|
|
@ -109,7 +109,7 @@
|
|
|
|
|
import { buildGUID } from '@/utils/uuid';
|
|
|
|
|
import { vDrag } from '@/utils/drag';
|
|
|
|
|
import { EventBus } from '@/utils/eventBus';
|
|
|
|
|
import { drcUpTopic, setTopic } from '@/utils/debugging/remote';
|
|
|
|
|
import { drcUpTopic, setTopic, eventsTopicSubscribe } from '@/utils/debugging/remote';
|
|
|
|
|
import { airPortStore } from '@/store/modules/airport';
|
|
|
|
|
import { AlertOutlined, RadarChartOutlined } from '@ant-design/icons-vue';
|
|
|
|
|
import { endHandFlyTask } from '@/api/workmanagement/droneDock';
|
|
|
|
@ -156,6 +156,7 @@
|
|
|
|
|
socket.disconnect();
|
|
|
|
|
}
|
|
|
|
|
airPortStoreVal.setTaskId(null);
|
|
|
|
|
stopPatrolVisible.value = false;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
@ -175,8 +176,8 @@
|
|
|
|
|
patrolVisible.value = false;
|
|
|
|
|
};
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
// socket = io('http://192.168.10.131:9025');
|
|
|
|
|
socket = io('http://123.132.248.154:9309');
|
|
|
|
|
socket = io('http://192.168.10.131:9025');
|
|
|
|
|
// socket = io('http://123.132.248.154:9309');
|
|
|
|
|
destroyConnection();
|
|
|
|
|
createConnection(connectCallback);
|
|
|
|
|
setTimeout(() => {
|
|
|
|
@ -314,6 +315,7 @@
|
|
|
|
|
const topicUAVUrl = 'thing/product/' + UAVinfo.sn + '/osd';
|
|
|
|
|
// 订阅飞行器消息
|
|
|
|
|
clientSubscribe(topicUAVUrl, { qos: 1 });
|
|
|
|
|
eventsTopicSubscribe();
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|