|
@@ -65,13 +65,13 @@ export default { |
|
@@ -65,13 +65,13 @@ export default { |
65
|
},
|
65
|
},
|
66
|
timelogoStyle () { // 左上角时间标志大小
|
66
|
timelogoStyle () { // 左上角时间标志大小
|
67
|
return {
|
67
|
return {
|
68
|
- width: this.titleFontSize / 2.5 + 'px',
|
|
|
69
|
- height: this.titleFontSize / 2.5 + 'px'
|
68
|
+ width: this.titleFontSize / 3 + 'px',
|
|
|
69
|
+ height: this.titleFontSize / 3 + 'px'
|
70
|
}
|
70
|
}
|
71
|
},
|
71
|
},
|
72
|
datetimeStyle () { // 左上角日期时间大小
|
72
|
datetimeStyle () { // 左上角日期时间大小
|
73
|
return {
|
73
|
return {
|
74
|
- fontSize: this.titleFontSize / 3 + 'px',
|
74
|
+ fontSize: this.titleFontSize / 3.5 + 'px',
|
75
|
marginLeft: this.titleFontSize / 5 + 'px'
|
75
|
marginLeft: this.titleFontSize / 5 + 'px'
|
76
|
}
|
76
|
}
|
77
|
},
|
77
|
},
|
|
@@ -102,13 +102,20 @@ export default { |
|
@@ -102,13 +102,20 @@ export default { |
102
|
// this.$refs.responseRef.getData();
|
102
|
// this.$refs.responseRef.getData();
|
103
|
// this.$refs.bandwidthRef.getData();
|
103
|
// this.$refs.bandwidthRef.getData();
|
104
|
|
104
|
|
|
|
105
|
+ },
|
|
|
106
|
+ getDateTime(){
|
|
|
107
|
+ var that = this
|
|
|
108
|
+ // 获取当前系统时间
|
|
|
109
|
+ var myDate = new Date();
|
|
|
110
|
+ that.dateTime = myDate.getFullYear() + '-' + that.timeFormat(myDate.getMonth() + 1 + '') + '-' + that.timeFormat(myDate.getDate() + '') + ' ' + that.timeFormat(myDate.getHours() + '') + ':' + that.timeFormat(myDate.getMinutes() + '') + ':' + that.timeFormat(myDate.getSeconds() + '');
|
105
|
}
|
111
|
}
|
106
|
},
|
112
|
},
|
107
|
mounted () {
|
113
|
mounted () {
|
108
|
var that = this
|
114
|
var that = this
|
109
|
- // 获取当前系统时间
|
|
|
110
|
- var myDate = new Date();
|
|
|
111
|
- that.dateTime = myDate.getFullYear() + '-' + that.timeFormat(myDate.getMonth() + 1 + '') + '-' + that.timeFormat(myDate.getDate() + '') // + ' ' + that.timeFormat(myDate.getHours() + '') + ':' + that.timeFormat(myDate.getMinutes() + '') + ':' + that.timeFormat(myDate.getSeconds() + '');
|
115
|
+ //定时器每秒调用一次fnDate()
|
|
|
116
|
+ setInterval(function(){
|
|
|
117
|
+ that.getDateTime();
|
|
|
118
|
+ },1000);
|
112
|
|
119
|
|
113
|
window.addEventListener('resize', this.screenAdapter)
|
120
|
window.addEventListener('resize', this.screenAdapter)
|
114
|
this.screenAdapter()
|
121
|
this.screenAdapter()
|