|
@@ -7,50 +7,80 @@
|
7
|
7
|
<div class="app-header__main--leftBottom"></div>
|
8
|
8
|
<div class="app-header__main--rightBottom"></div>
|
9
|
9
|
<h1 class="app-header__title">
|
10
|
|
- <img class="app-header__logo" src="./../assets/img/logo.png">
|
|
10
|
+ <img class="app-header__logo" src="./../assets/img/logo.png" />
|
11
|
11
|
大势输送保障管理平台
|
12
|
12
|
</h1>
|
13
|
13
|
</div>
|
14
|
14
|
<!-- /头部线条及标题 -->
|
15
|
15
|
<div class="app-header__content">
|
16
|
|
- <!-- 今日新冠送检,标本运输数,患者陪检 -->
|
17
|
|
- <AppToday></AppToday>
|
18
|
|
- <!-- /今日新冠送检,标本运输数,患者陪检 -->
|
19
|
|
- <!-- 时间 -->
|
20
|
|
- <div class="app-header__contentTime">{{time|weekFormat}}<time>{{time|timeFormat}}</time></div>
|
21
|
|
- <!-- /时间 -->
|
|
16
|
+ <!-- 累计工单数,标本送检,患者陪检 -->
|
|
17
|
+ <div class="app-header__contentCumulative">
|
|
18
|
+ <!-- 今日工单数,标本送检,陪检人次 -->
|
|
19
|
+ <AppToday></AppToday>
|
|
20
|
+ <!-- /今日工单数,标本送检,陪检人次 -->
|
|
21
|
+ </div>
|
|
22
|
+ <!-- /累计工单数,标本送检,患者陪检 -->
|
|
23
|
+ <div class="app-header__contentWrap">
|
|
24
|
+ <div class="app-header__contentCumulative">
|
|
25
|
+ <AppCumulative></AppCumulative>
|
|
26
|
+ </div>
|
|
27
|
+ <!-- 时间 -->
|
|
28
|
+ <div class="app-header__contentTime">
|
|
29
|
+ {{ time | weekFormat }}<time>{{ time | timeFormat }}</time>
|
|
30
|
+ </div>
|
|
31
|
+ <!-- /时间 -->
|
|
32
|
+ </div>
|
22
|
33
|
</div>
|
23
|
34
|
</header>
|
24
|
35
|
</template>
|
25
|
36
|
|
26
|
37
|
<script>
|
27
|
38
|
import AppToday from './AppToday'
|
|
39
|
+import AppCumulative from './AppCumulative'
|
28
|
40
|
export default {
|
29
|
41
|
name: 'AppHeader',
|
30
|
42
|
components: {
|
31
|
|
- AppToday
|
|
43
|
+ AppToday,
|
|
44
|
+ AppCumulative
|
32
|
45
|
},
|
33
|
46
|
data () {
|
34
|
47
|
return {
|
35
|
48
|
time: new Date().getTime(), // 时间戳
|
36
|
49
|
timer: null, // 时间定时器
|
37
|
|
- week: ''// 星期
|
|
50
|
+ week: '' // 星期
|
38
|
51
|
}
|
39
|
52
|
},
|
40
|
53
|
filters: {
|
41
|
54
|
// 格式化时间
|
42
|
55
|
timeFormat (time) {
|
43
|
56
|
const newDate = new Date(time)
|
44
|
|
- const hours = newDate.getHours().toString().padStart(2, '0')
|
45
|
|
- const minutes = newDate.getMinutes().toString().padStart(2, '0')
|
46
|
|
- const seconds = newDate.getSeconds().toString().padStart(2, '0')
|
|
57
|
+ const hours = newDate
|
|
58
|
+ .getHours()
|
|
59
|
+ .toString()
|
|
60
|
+ .padStart(2, '0')
|
|
61
|
+ const minutes = newDate
|
|
62
|
+ .getMinutes()
|
|
63
|
+ .toString()
|
|
64
|
+ .padStart(2, '0')
|
|
65
|
+ const seconds = newDate
|
|
66
|
+ .getSeconds()
|
|
67
|
+ .toString()
|
|
68
|
+ .padStart(2, '0')
|
47
|
69
|
return `${hours}:${minutes}:${seconds}`
|
48
|
70
|
},
|
49
|
71
|
// 获得当前的星期
|
50
|
72
|
weekFormat (time) {
|
51
|
73
|
const newDate = new Date(time)
|
52
|
74
|
const week = newDate.getDay()
|
53
|
|
- const weeks = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']
|
|
75
|
+ const weeks = [
|
|
76
|
+ '星期日',
|
|
77
|
+ '星期一',
|
|
78
|
+ '星期二',
|
|
79
|
+ '星期三',
|
|
80
|
+ '星期四',
|
|
81
|
+ '星期五',
|
|
82
|
+ '星期六'
|
|
83
|
+ ]
|
54
|
84
|
return `${weeks[week]}`
|
55
|
85
|
}
|
56
|
86
|
},
|
|
@@ -89,12 +119,12 @@ export default {
|
89
|
119
|
margin: 0 auto;
|
90
|
120
|
border-bottom: 1px solid #68ffff;
|
91
|
121
|
position: relative;
|
92
|
|
- .app-header__title{
|
|
122
|
+ .app-header__title {
|
93
|
123
|
display: flex;
|
94
|
124
|
justify-content: center;
|
95
|
125
|
align-items: center;
|
96
|
|
- .app-header__logo{
|
97
|
|
- height: .6125rem;
|
|
126
|
+ .app-header__logo {
|
|
127
|
+ height: 0.6125rem;
|
98
|
128
|
}
|
99
|
129
|
}
|
100
|
130
|
.app-header__main--left {
|
|
@@ -165,7 +195,7 @@ export default {
|
165
|
195
|
}
|
166
|
196
|
}
|
167
|
197
|
// 头部内容
|
168
|
|
- .app-header__content{
|
|
198
|
+ .app-header__content {
|
169
|
199
|
position: absolute;
|
170
|
200
|
left: 0;
|
171
|
201
|
top: 0.4rem;
|
|
@@ -174,28 +204,33 @@ export default {
|
174
|
204
|
align-items: center;
|
175
|
205
|
width: 100%;
|
176
|
206
|
height: 0.475rem;
|
177
|
|
- .app-header__contentNews{
|
|
207
|
+ .app-header__contentNews {
|
178
|
208
|
display: flex;
|
179
|
209
|
justify-content: space-between;
|
180
|
210
|
align-items: center;
|
181
|
|
- .app-header__contentNewsItem{
|
182
|
|
- font-size: .2rem;
|
|
211
|
+ .app-header__contentNewsItem {
|
|
212
|
+ font-size: 0.2rem;
|
183
|
213
|
color: #fff;
|
184
|
|
- margin-right: .4rem;
|
185
|
|
- em{
|
|
214
|
+ margin-right: 0.2rem;
|
|
215
|
+ em {
|
186
|
216
|
color: #70c2ab;
|
187
|
|
- margin-left: .2rem;
|
188
|
|
- i{
|
|
217
|
+ // margin-left: 0.1rem;
|
|
218
|
+ i {
|
189
|
219
|
color: #c27073;
|
190
|
220
|
}
|
191
|
221
|
}
|
192
|
222
|
}
|
193
|
223
|
}
|
194
|
|
- .app-header__contentTime{
|
195
|
|
- color: #fff;
|
196
|
|
- font-size: .3rem;
|
197
|
|
- time{
|
198
|
|
- margin-left: .2rem;
|
|
224
|
+ .app-header__contentWrap {
|
|
225
|
+ width: 8.8rem;
|
|
226
|
+ display: flex;
|
|
227
|
+ justify-content: space-between;
|
|
228
|
+ .app-header__contentTime {
|
|
229
|
+ color: #fff;
|
|
230
|
+ font-size: 0.26rem;
|
|
231
|
+ time {
|
|
232
|
+ margin-left: 0.1rem;
|
|
233
|
+ }
|
199
|
234
|
}
|
200
|
235
|
}
|
201
|
236
|
}
|