无人机管理后台前端(已迁走)
张含笑
2025-09-01 2ca94de8ede18ac07ccfd8dec7b6f6a707adde9b
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!--
 * @Author       : yuan
 * @Date         : 2025-04-27 21:01:20
 * @LastEditors  : yuan
 * @LastEditTime : 2025-06-25 16:23:45
 * @FilePath     : \src\views\device\index.vue
 * @Description  : 
 * Copyright 2025 OBKoro1, All Rights Reserved. 
 * 2025-04-27 21:01:20
-->
<template>
  <basic-container>
    <airport ref="airport" />
    <!-- <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="机场" name="1">
        <airport ref="airport" />
      </el-tab-pane>
      <el-tab-pane label="飞行器" name="2">
        <fly ref="fly" />
      </el-tab-pane>
    </el-tabs> -->
  </basic-container>
</template>
 
<script>
import { mapGetters } from 'vuex'
import airport from './airport.vue'
import fly from './fly.vue'
export default {
  components: { airport, fly },
  data () {
    return {
      activeName: '1',
      form: {},
      query: {},
      loading: true,
      data: [],
    }
  },
  computed: {
    ...mapGetters(['permission']),
    permissionList () {
      return {}
    },
    ids () {
      let ids = []
      this.selectionList.forEach(ele => {
        ids.push(ele.id)
      })
      return ids.join(',')
    },
  },
  created () {
    // 默认打开机场页面
  },
  methods: {
    handleClick (tab, event) {
      if (tab.index == 1) {
        this.$refs.fly.init()
      }
      if (tab.index == 0) {
        this.$refs.airport.init()
      }
    },
  },
}
</script>
 
<style lang="scss" scoped>
::v-deep(.el-tabs) {
  height: 100%;
  display: flex;
  flex-direction: column;
 
  .el-tabs__header {
    order: 1;
  }
 
  .el-tabs__content {
    order: 2;
  }
 
  .el-tabs__content {
    height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
 
    .el-tab-pane {
      height: 0;
      flex: 1;
      display: flex;
      flex-direction: column;
    }
  }
}
</style>