mainContainer.vue
2.66 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<template>
<div class="maincontainer">
<ul class="containerwrap clearfix">
<li>
<pdasection class="sectionsmall"></pdasection>
<dicisection class="sectionsmall margin12-0"></dicisection>
<youdaopingsection class="sectionsmall"></youdaopingsection>
</li>
<li class="margin0-12">
<mapsection class="heightper-top"></mapsection>
<div class="heightper-bottom">
<outsection style="width: 50%;float: left;height: 100%;display: flex;flex-direction: column"></outsection>
<vehiclesection style="width: 50%;float: left;height: 100%;display: flex;flex-direction: column"></vehiclesection>
</div>
</li>
<li>
<sfysection class="sectionsmall"></sfysection>
<berthsection class="sectionsmall margin12-0"></berthsection>
<newssection class="sectionsmall" ></newssection>
</li>
</ul>
<loadinggif :showLoading="showLoaddingGif"></loadinggif>
</div>
</template>
<script>
import loadinggif from '../components/loading'
import pdasection from '../views/pdasection'
import dicisection from '../views/dicisection'
import youdaopingsection from '../views/youdaopingsection'
import sfysection from '../views/sfysection'
import berthsection from '../views/berthsection'
import newssection from '../views/newssection'
import outsection from '../views/outsection'
import vehiclesection from '../views/vehiclesection'
import mapsection from '../views/mapsection'
export default {
name: 'mainContainer',
components: {
loadinggif,
pdasection,
dicisection,
youdaopingsection,
sfysection,
berthsection,
newssection,
outsection,
vehiclesection,
mapsection
},
data() {
return {
showLoaddingGif: false
}
}
}
</script>
<style scoped>
.maincontainer {
padding: 12px 12px;
height:calc(100% - 77px);
}
.containerwrap {
display: flex;
height: 100%;
}
.containerwrap > li {
height: 100%;
display: flex;
flex-direction: column;
}
.containerwrap > li:nth-of-type(1) {
flex: 1;
}
.sectionsmall {
flex: 1;
display: flex;
flex-direction: column;
background: url("../assets/img/sectionsmall.png") no-repeat;
background-size: 100% 100%;
}
.containerwrap > li:nth-of-type(2) {
flex: 2;
}
.heightper-top {
border: 1px solid #2391FA;
flex: 1;
display: flex;
flex-direction: column;
position: relative;
}
.heightper-bottom {
height: calc((100% - 24px) / 3);
margin-top: 12px;
background: url("../assets/img/sectionsmall.png") no-repeat;
background-size: 100% 100%;
}
.containerwrap > li:nth-of-type(3) {
flex: 1;
}
</style>