From 4bb904fc27caf0576ed7dbf46d5909a7b1f778c0 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Mon, 14 Jul 2025 09:52:28 +0800
Subject: [PATCH] Merge branch 'test' of http://139.196.74.78:10010/r/drone/drone-web-manage into test
---
src/views/device/index.vue | 80 +++++++++++++++++++++++++++-------------
1 files changed, 54 insertions(+), 26 deletions(-)
diff --git a/src/views/device/index.vue b/src/views/device/index.vue
index 35f066c..d9ef307 100644
--- a/src/views/device/index.vue
+++ b/src/views/device/index.vue
@@ -1,12 +1,12 @@
<!--
- * @Author: shuishen 1109946754@qq.com
- * @Date: 2024-09-09 11:40:40
- * @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-09-09 12:02:50
- * @FilePath: \drone-web-manage\src\views\device\index.vue
- * @Description:
- *
- * Copyright (c) 2024 by shuishen, All Rights Reserved.
+ * @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>
@@ -22,47 +22,75 @@
</template>
<script>
-import { mapGetters } from 'vuex';
-import airport from './airport.vue';
-import fly from './fly.vue';
+import { mapGetters } from 'vuex'
+import airport from './airport.vue'
+import fly from './fly.vue'
export default {
components: { airport, fly },
- data() {
+ 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(){
+ created () {
// 默认打开机场页面
},
methods: {
- handleClick(tab, event) {
+ handleClick (tab, event) {
if (tab.index == 1) {
- this.$refs.fly.init();
+ this.$refs.fly.init()
}
if (tab.index == 0) {
- this.$refs.airport.init();
+ 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