MTR探测策略/MTRAgent管理模块

1、MTRAgent管理模块
2、MTR探测策略
3、修改流量图默认显示时间
4、优化并修改bug
This commit is contained in:
康冉冉
2025-11-21 18:38:36 +08:00
parent 2d12879bab
commit 2c339ecfdb
31 changed files with 733 additions and 187 deletions
@@ -265,11 +265,18 @@
const month = String(new Date().getMonth() + 1).padStart(2, '0'); // 0=1月,11=12月
const day = String(new Date().getDate()).padStart(2, '0'); // 当前日(如8
const prevDay = String(new Date().getDate() - 1).padStart(2, '0');
startData = `${year}-${month}-${prevDay} 00:00:00`;
endData = `${year}-${month}-${day} 23:59:59`;
todyTime = `${year}-${month}-${day}`;
this.firstTabTime = {startTime: todyTime + ' 00:00:00', endTime: todyTime + ' 23:59:59'};
this.firstTabTimeArr = [todyTime + ' 00:00:00', todyTime + ' 23:59:59'];
const hours = String(new Date().getHours()).padStart(2, '0') + ':';
const minutes = String(new Date().getMinutes()).padStart(2, '0') + ':';
const seconds = String(new Date().getSeconds()).padStart(2, '0');
startData = `${year}-${month}-${prevDay}` + ' ' + hours + minutes + seconds;
endData = `${year}-${month}-${day}` + ' ' + hours + minutes + seconds;
// startData = `${year}-${month}-${prevDay} 00:00:00`;
// endData = `${year}-${month}-${day} 23:59:59`;
// todyTime = `${year}-${month}-${day}`;
// this.firstTabTime = {startTime: todyTime + ' 00:00:00', endTime: todyTime + ' 23:59:59'};
// this.firstTabTimeArr = [todyTime + ' 00:00:00', todyTime + ' 23:59:59'];
this.firstTabTime = {startTime: startData, endTime: endData};
this.firstTabTimeArr = [startData, endData];
this.currTimeList = {startTime: startData, endTime: endData};
this.defaultTimes = [startData, endData];
this.paramsData = this.$route && this.$route.query;