layout.vue
5.27 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<template>
<div class="app-Main">
<div class="app-header">
<appHeader class="u-appHeader"></appHeader>
</div>
<div class="app-body">
<el-row :gutter="20" style="height:100%;">
<!--Left-->
<el-col :span="6" class="aside-padding">
<div class="grid-content bg-purple">
<!--<weather class="u-weather"></weather>-->
<!--<weatherForecast class="u-weatherForecast u-marginTop"></weatherForecast>-->
<memberNum class="u-memberNum"></memberNum>
<tollman class="u-tollman u-marginTop"></tollman>
<device class="u-device u-marginTop"></device>
</div>
</el-col>
<!--Middle-->
<el-col :span="12" class="middle-padding">
<div class="grid-content bg-purple">
<!--<v-map></v-map>-->
<chinaMap ref="chinaMap" class="u-chinaMap"></chinaMap>
<weekAndDay class="u-weekAndDay u-marginTop"></weekAndDay>
</div>
</el-col>
<!--Right-->
<el-col :span="6" class="aside-padding">
<div class="grid-content bg-purple">
<!--<videoMonitor class="u-videoMonitor"></videoMonitor>-->
<incomeOverview class="u-incomeOverview"></incomeOverview>
<berth class="u-berth u-marginTop"></berth>
<orderMessage class="u-orderMessage u-marginTop"></orderMessage>
</div>
</el-col>
</el-row>
</div>
</div>
</template>
<script>
import weatherForecast from '../weatherForecast/index'
import videoMonitor from '../videoMonitor/index'
import weather from '../weather/index'
//import map from '../map/index'
import appHeader from '../appHeader/index'
/*收入概况、泊位、订单消息*/
import incomeOverview from '../incomeOverview/index'
import berth from '../berth/index'
import orderMessage from '../orderMessage/index'
/*会员数、收费员、设备*/
import memberNum from '../memberNum/index'
import tollman from '../tollman/index'
import device from '../device/index'
/*地图、周出场统计、今日车流量*/
import chinaMap from '../chinaMap/index'
import weekAndDay from '../weekAndDay/index'
export default {
name: "aheader",
components: {
//'v-map':map,
weather,
weatherForecast,
videoMonitor,
appHeader,
/*收入概况、泊位、订单消息*/
incomeOverview,berth,orderMessage,
/*会员数、收费员、设备*/
memberNum,tollman,device,
/*地图、周出场统计、今日车流量*/
chinaMap,weekAndDay
},
mounted() {
//this.createLine();
//debugger;
const _self=this;
console.log("config:--------"+ appConfig.rootURL);
//测试调用子组件
// setTimeout(function(){
// _self.$refs.chinaMap.setParkTotal();
// },5000);
},
methods: {
}
}
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
.app-Main {
position: relative;
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
/*background url('../../assets/bg.jpg');*/
/*background-size 100% 100%*/
/*行*/
.app-header{
height: 65px;
border:0px solid red;
position: relative;
}
.app-body{
height: -webkit-calc(100% - 65px);
height: -moz-calc(100% - 65px);
height: calc(100% - 65px);
border:0px solid green;
}
.el-row ,.grid-content{
height: 100%;
}
.el-row{
padding:5px;
padding-top: 0px;
}
/*列*/
.el-col {
border-radius: 4px;
height: 100%;
}
.aside-padding{
padding-left:0px !important;
padding-right:0px !important;
padding: 5px 0 5px 0px;
}
.middle-padding{
padding: 5px;
}
.el-row{
margin-left:0px !important;
margin-right:0px !important;
}
.bg-purple {
background: transparent;
border: 0px solid #74c7d9;
}
.grid-content {
border-radius: 4px;
min-height: 500px;
}
.u-marginTop{
margin-top: 10px;
}
/*气象预警*/
.u-weather{
height: 30%;
}
/*气象预报*/
.u-weatherForecast{
height: 30%;
}
/*果园监控*/
.u-videoMonitor{
height: 30%;
}
/*Head头*/
.u-appHeader{
width: 100%;
height:100%;
}
/*会员数、收费员、设备*/
.u-memberNum,.u-tollman,.u-device{
height: -webkit-calc((100% - 20px)/3);
height: -moz-calc((100% - 20px)/3);
height: calc((100% - 20px)/3);
}
/*收入概况、泊位、订单消息*/
.u-incomeOverview,.u-berth,.u-orderMessage{
height: -webkit-calc((100% - 20px)/3);
height: -moz-calc((100% - 20px)/3);
height: calc((100% - 20px)/3);
}
/*全国地图、周出场今日车流量*/
.u-chinaMap{
height: -webkit-calc(66.66% - 5px);
height: -moz-calc(66.66% - 5px);
height: calc(66.66% - 5px);
}
.u-weekAndDay{
height: -webkit-calc(33.33% - 5px);
height: -moz-calc(33.33% - 5px);
height: calc(33.33% - 5px);
position: relative;
background: url(../../images/com/cardBorder2.svg) no-repeat;
background-size: 100% 100%;
}
/*收入概况*/
.u-incomeOverview{
}
/*泊位*/
.u-berth{
}
/*订单消息*/
.u-orderMessage{
}
}
</style>