...
|
...
|
@@ -65,13 +65,13 @@ export default { |
|
|
},
|
|
|
timelogoStyle () { // 左上角时间标志大小
|
|
|
return {
|
|
|
width: this.titleFontSize / 2.5 + 'px',
|
|
|
height: this.titleFontSize / 2.5 + 'px'
|
|
|
width: this.titleFontSize / 3 + 'px',
|
|
|
height: this.titleFontSize / 3 + 'px'
|
|
|
}
|
|
|
},
|
|
|
datetimeStyle () { // 左上角日期时间大小
|
|
|
return {
|
|
|
fontSize: this.titleFontSize / 3 + 'px',
|
|
|
fontSize: this.titleFontSize / 3.5 + 'px',
|
|
|
marginLeft: this.titleFontSize / 5 + 'px'
|
|
|
}
|
|
|
},
|
...
|
...
|
@@ -102,13 +102,20 @@ export default { |
|
|
// this.$refs.responseRef.getData();
|
|
|
// this.$refs.bandwidthRef.getData();
|
|
|
|
|
|
},
|
|
|
getDateTime(){
|
|
|
var that = this
|
|
|
// 获取当前系统时间
|
|
|
var myDate = new Date();
|
|
|
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() + '');
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
|
var that = this
|
|
|
// 获取当前系统时间
|
|
|
var myDate = new Date();
|
|
|
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() + '');
|
|
|
//定时器每秒调用一次fnDate()
|
|
|
setInterval(function(){
|
|
|
that.getDateTime();
|
|
|
},1000);
|
|
|
|
|
|
window.addEventListener('resize', this.screenAdapter)
|
|
|
this.screenAdapter()
|
...
|
...
|
|