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 >
| <Header />
| <div class="main-content">
| <LeftPanel />
| <MapPanel />
| <RightPanel />
| </div>
| <BottomCharts />
| <div class="footer"></div>
| </div>
| </template>
|
| <script>
| import Header from '@/components/Header.vue'
| import LeftPanel from '@/components/LeftPanel.vue'
| import MapPanel from '@/components/MapPanel.vue'
| import RightPanel from '@/components/RightPanel.vue'
| import BottomCharts from '@/components/BottomCharts.vue'
| import { getData } from './service'
|
| export default {
| name: 'DataScreen',
| components: {
| Header,
| LeftPanel,
| MapPanel,
| RightPanel,
| BottomCharts
| },
| created() {
| console.log(this.$route);
| if (this.$route.query.token || localStorage.getItem('token')) {
| localStorage.setItem('token', 'Bearer ' + this.$route.query.token)
| this.fetchData()
| }
| },
| methods: {
| fetchData() {
| getData().then(res => {
| console.log(res)
| })
| }
| }
| }
| </script>
|
| <style>
| #app {
| width: 100vw;
| height: 100vh;
| margin: 0;
| padding: 0;
| padding: 0 !important;
| overflow: hidden;
| background: linear-gradient(to bottom, #1a2b3c 0%, rgba(26, 43, 60, 0.8) 20%, rgba(26, 43, 60, 0) 100%);
| color: #fff;
| font-family: 'DIN ', 'DIN', sans-serif;
| display: flex;
| flex-direction: column;
| }
|
| /* 添加全局字体声明 */
| @font-face {
| font-family: 'DIN';
| src: url('https://fonts.cdnfonts.com/css/din-next-lt-arabic') format('woff2');
| font-weight: normal;
| font-style: normal;
| font-display: swap;
| }
|
| .main-content {
| flex: 1;
| display: flex;
| gap: 10px;
| }
|
| .footer {
| height: 200px;
| position: fixed;
| bottom: 0;
| left: 0;
| width: 100vw;
| z-index: 1000;
| background: linear-gradient(to top, rgba(1, 85, 121, 0.8) 0%, rgba(1, 85, 121, 0.4) 20%, rgba(151, 190, 192, 0) 100%);
| }
| </style>
|
|