main
刘妍 2 days ago
parent 9e54b5bf93
commit 2b64b00eab

@ -8,18 +8,18 @@
<SelectComponent @selectChange="changeSelect" /> <SelectComponent @selectChange="changeSelect" />
<AirportInformation <AirportInformation
v-if="changeSelectValue"
@changeLive="changeAirportLive" @changeLive="changeAirportLive"
@changeRemote="changeRemote" @changeRemote="changeRemote"
:msgData="msgData" :msgData="msgData"
v-if="changeSelectValue"
/> />
<UAVInformation <UAVInformation
v-if="changeSelectValue"
:msgData="msgData" :msgData="msgData"
:uavTrack="uavTrack" :uavTrack="uavTrack"
@changeLoadControl="changeLoadControl" @changeLoadControl="changeLoadControl"
@changeFlightControl="changeFlightControl" @changeFlightControl="changeFlightControl"
@loadLiveStreaming="loadLiveStreaming" @loadLiveStreaming="loadLiveStreaming"
v-if="changeSelectValue"
/> />
<!-- 远程调试 --> <!-- 远程调试 -->
<!-- <div v-if="remoteVisible"> <!-- <div v-if="remoteVisible">
@ -35,11 +35,11 @@
/> />
<!-- 飞行控制 --> <!-- 飞行控制 -->
<FlightControl <FlightControl
v-if="flightControlVisible"
@changeFlightControl="changeFlightControl" @changeFlightControl="changeFlightControl"
@clickTakeOff="clickTakeOff" @clickTakeOff="clickTakeOff"
@clickFlyTo="clickFlyTo" @clickFlyTo="clickFlyTo"
:zIndex="zIndex" :zIndex="zIndex"
v-if="flightControlVisible"
/> />
<!-- 一键起飞表单 --> <!-- 一键起飞表单 -->
<TakeOffForm <TakeOffForm
@ -57,8 +57,8 @@
:zIndex="zIndex" :zIndex="zIndex"
/> />
<AirportLive <AirportLive
:msgData="msgData"
v-if="airportLiveVisible" v-if="airportLiveVisible"
:msgData="msgData"
:zIndex="zIndex" :zIndex="zIndex"
@changeAirportLive="airportLiveVisible = false" @changeAirportLive="airportLiveVisible = false"
/> />
@ -86,8 +86,8 @@
<span>上报事件</span> <span>上报事件</span>
</div> --> </div> -->
</div> </div>
<Patrol :taskId="taskId" v-if="patrolVisible" @changePatrol="changePatrol" :zIndex="zIndex" /> <Patrol v-if="patrolVisible" :taskId="taskId" @changePatrol="changePatrol" :zIndex="zIndex" />
<Report @changeReport="reportVisible = false" v-if="reportVisible" /> <Report v-if="reportVisible" @changeReport="reportVisible = false" />
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@ -121,6 +121,7 @@
const { VITE_GLOB_PY_URL } = getAppEnvConfig(); const { VITE_GLOB_PY_URL } = getAppEnvConfig();
let socket; let socket;
const msgData = ref({});
const zIndex = ref(0); const zIndex = ref(0);
const airPortStoreVal = airPortStore(); const airPortStoreVal = airPortStore();
const airPortInfo = airPortStoreVal.getAirport; const airPortInfo = airPortStoreVal.getAirport;
@ -304,7 +305,6 @@
const changeCameraType = (value: any) => { const changeCameraType = (value: any) => {
cameraType.value = value; cameraType.value = value;
}; };
const msgData = ref({});
const changeSelect = async (value?: any) => { const changeSelect = async (value?: any) => {
// createConnection(connectCallback); // createConnection(connectCallback);
// //

Loading…
Cancel
Save