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
| <!-- 机巢列表详情 -->
| <template>
| <div>
|
| </div>
| <el-dialog
| v-model="isShowDetails"
| title="机巢详情"
| width="800px"
| :close-on-click-modal="false"
| :destroy-on-close="true"
| >
| <el-table :data="tableData" style="width: 100%">
| <el-table-column prop="name" label="名称" />
| <el-table-column prop="value" label="数值" />
| <el-table-column prop="status" label="状态" />
| <el-table-column prop="time" label="时间" />
| </el-table>
| </el-dialog>
| </template>
|
| <script setup>
| const props = defineProps({
| dialogVisible: {
| type: Boolean,
| default: false,
| },
| });
|
| const isShowDetails = defineModel('show')
|
| // const dialogVisible = ref(false);
| const tableData = ref([
| {
| name: '机巢1号',
| value: '98%',
| status: '正常',
| time: '2024-03-20 10:00:00'
| },
| {
| name: '电池状态',
| value: '95%',
| status: '正常',
| time: '2024-03-20 10:00:00'
| },
| {
| name: '信号强度',
| value: '强',
| status: '正常',
| time: '2024-03-20 10:00:00'
| }
| ]);
| </script>
|
| <style lang="scss" scoped>
| // ... 其他样式 ...
|
| :deep(.el-dialog) {
| background: linear-gradient(
| 270deg,
| #1f3e7a 0%,
| rgba(31, 62, 122, 0.95) 79%,
| rgba(31, 62, 122, 0.9) 100%
| );
| .el-dialog__header {
| color: #fff;
| border-bottom: 1px solid rgba(255, 255, 255, 0.1);
| margin: 0;
| padding: 15px 20px;
| .el-dialog__title {
| color: #fff;
| }
| }
| .el-dialog__body {
| color: #fff;
| padding: 20px;
| }
| .el-table {
| background-color: transparent;
| --el-table-tr-bg-color: transparent;
| --el-table-border-color: rgba(255, 255, 255, 0.1);
| --el-table-header-bg-color: rgba(31, 62, 122, 0.5);
| --el-table-header-text-color: #fff;
| --el-table-text-color: #fff;
| }
| }
| </style>
|
|