From 02409bfbe15f22fc3b5dccadabfd860a660a49d9 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Sat, 11 Oct 2025 10:37:14 +0800
Subject: [PATCH] feat: 名称修改

---
 src/views/device/index.vue |   87 ++++++++++++++++++++++++++++++++-----------
 1 files changed, 64 insertions(+), 23 deletions(-)

diff --git a/src/views/device/index.vue b/src/views/device/index.vue
index 48f75e4..b502309 100644
--- a/src/views/device/index.vue
+++ b/src/views/device/index.vue
@@ -1,56 +1,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>
-    <el-tabs v-model="activeName" @tab-click="handleClick">
-      <el-tab-pane label="飞行器" name="1">
-        <fly ref="fly"/>
+    <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"> 
-        <airport ref="airport"/>
+      <el-tab-pane label="飞行器" name="2">
+        <fly ref="fly" />
       </el-tab-pane>
-    </el-tabs>
+    </el-tabs> -->
   </basic-container>
 </template>
 
 <script>
-import { mapGetters } from 'vuex';
+import { mapGetters } from 'vuex'
 import airport from './airport.vue'
 import fly from './fly.vue'
 export default {
-  components:{airport,fly},
-  data() {
+  components: { airport, fly },
+  data () {
     return {
       activeName: '1',
       form: {},
       query: {},
       loading: true,
       data: [],
-    };
+    }
   },
   computed: {
     ...mapGetters(['permission']),
-    permissionList() {
-      return {
-      };
+    permissionList () {
+      return {}
     },
-    ids() {
-      let ids = [];
+    ids () {
+      let ids = []
       this.selectionList.forEach(ele => {
-        ids.push(ele.id);
-      });
-      return ids.join(',');
+        ids.push(ele.id)
+      })
+      return ids.join(',')
     },
   },
+  created () {
+    // 默认打开机场页面
+  },
   methods: {
-    handleClick(tab, event) {
-      if(tab.index==0){
+    handleClick (tab, event) {
+      if (tab.index == 1) {
         this.$refs.fly.init()
       }
-      if(tab.index==1){
+      if (tab.index == 0) {
         this.$refs.airport.init()
       }
     },
   },
-};
+}
 </script>
 
-<style></style>
+<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>

--
Gitblit v1.9.3