forked from drone/command-center-dashboard

罗广辉
2025-04-21 2800fa4f32f3900509cb4d6eefaf2bfaf54efdd7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<template>
  <div class="machine-left">
    <!--时间 天气-->
    <common-weather></common-weather>
    <!-- 机巢数据 -->
    <MachineData></MachineData>
    <div class="do-return" @click="goBack">
      <img src="../../../assets/images/return.png" alt="" />
    </div>
     <!--巡检任务详情-->
     <InspectionRaskDetails></InspectionRaskDetails>
  </div>
</template>
 
<script setup>
import CommonWeather from '@/components/CommonWeather.vue';
import MachineData from './MachineData.vue';
import InspectionRaskDetails from './InspectionRaskDetails.vue';
import { useRouter } from 'vue-router';
import { useStore } from 'vuex';
 
const router = useRouter();
const store = useStore()
 
const goBack = () => {
  store.commit('setSingleUavHome', {});
    store.commit('setFootActiveIndex', 0);
  store.commit('setOsdVisibleInfo', {});
};
</script>
 
<style scoped lang="scss">
.machine-left {
  position: absolute;
  top: 88px;
  color: #e7f5ff;
  .do-return {
    position: absolute;
    top: 40px;
    right: -50px;
    cursor: pointer;
    img {
     width: 60px;
      height: 33px;
    }
  }
}
</style>