|
@@ -7,8 +7,8 @@
|
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">
|
11
|
|
- 大势输送保障管理平台
|
|
10
|
+ <img class="app-header__logo" :src="logoUrl">
|
|
11
|
+ {{logoTitle}}
|
12
|
12
|
</h1>
|
13
|
13
|
</div>
|
14
|
14
|
<!-- /头部线条及标题 -->
|
|
@@ -24,6 +24,7 @@
|
24
|
24
|
</template>
|
25
|
25
|
|
26
|
26
|
<script>
|
|
27
|
+import { get } from './../http/http'
|
27
|
28
|
import AppToday from './AppToday'
|
28
|
29
|
export default {
|
29
|
30
|
name: 'AppHeader',
|
|
@@ -32,6 +33,8 @@ export default {
|
32
|
33
|
},
|
33
|
34
|
data () {
|
34
|
35
|
return {
|
|
36
|
+ logoTitle: '',
|
|
37
|
+ logoUrl: '',
|
35
|
38
|
time: new Date().getTime(), // 时间戳
|
36
|
39
|
timer: null, // 时间定时器
|
37
|
40
|
week: ''// 星期
|
|
@@ -66,10 +69,20 @@ export default {
|
66
|
69
|
this.time = Date.now()
|
67
|
70
|
this.runTime()
|
68
|
71
|
}, 500)
|
|
72
|
+ },
|
|
73
|
+ getSysNameAndLogo () {
|
|
74
|
+ get('/auth/getSysNameAndLogo')
|
|
75
|
+ .then((result) => {
|
|
76
|
+ this.logoTitle = result.largeScreenName || ''
|
|
77
|
+ this.logoUrl = result.favicon || ''
|
|
78
|
+ document.querySelector('#favicon').href = result.favicon || ''
|
|
79
|
+ document.title = this.logoTitle
|
|
80
|
+ })
|
69
|
81
|
}
|
70
|
82
|
},
|
71
|
83
|
mounted () {
|
72
|
84
|
this.runTime()
|
|
85
|
+ this.getSysNameAndLogo()
|
73
|
86
|
},
|
74
|
87
|
beforeDestroy () {
|
75
|
88
|
clearTimeout(this.timer)
|
|
@@ -95,6 +108,7 @@ export default {
|
95
|
108
|
align-items: center;
|
96
|
109
|
.app-header__logo{
|
97
|
110
|
height: .6125rem;
|
|
111
|
+ max-width: .6125rem;
|
98
|
112
|
}
|
99
|
113
|
}
|
100
|
114
|
.app-header__main--left {
|