|
|
|
@ -112,7 +112,7 @@
|
|
|
|
|
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';
|
|
|
|
|
import { endHandFlyTask, getLastHandFlyTask } from '@/api/workmanagement/droneDock';
|
|
|
|
|
import io from 'socket.io-client';
|
|
|
|
|
|
|
|
|
|
let socket;
|
|
|
|
@ -165,7 +165,6 @@
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const stopPatrolVisible = ref(false);
|
|
|
|
|
console.log('airPortStoreVal', airPortStoreVal.getTaskId);
|
|
|
|
|
if (airPortStoreVal.getTaskId) {
|
|
|
|
|
stopPatrolVisible.value = true;
|
|
|
|
|
}
|
|
|
|
@ -180,6 +179,13 @@
|
|
|
|
|
// socket = io('http://123.132.248.154:9309');
|
|
|
|
|
destroyConnection();
|
|
|
|
|
createConnection(connectCallback);
|
|
|
|
|
getLastHandFlyTask().then((res) => {
|
|
|
|
|
if (res.Status == 1) {
|
|
|
|
|
airPortStoreVal.setTaskId(res.Id);
|
|
|
|
|
taskId.value = res.Id;
|
|
|
|
|
stopPatrolVisible.value = true;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
// 接收消息
|
|
|
|
|
getClient().on('message', (topic, message) => {
|
|
|
|
|