设备监控
This commit is contained in:
@@ -182,7 +182,7 @@ const next = () => {
|
||||
var presentM = now.getMonth() + 1
|
||||
// 获取当前日期
|
||||
var presentD = now.getDate()
|
||||
if (interval == 3) {
|
||||
if (interval.value == 3) {
|
||||
if (month == 12) {
|
||||
year = year + 1
|
||||
// 年份进位后,大于当前的年份,是不科学的
|
||||
@@ -255,7 +255,7 @@ const next = () => {
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (interval == 2) {
|
||||
} else if (interval.value == 2) {
|
||||
// 前进需要年份进位
|
||||
if (month == 10) {
|
||||
year = year + 1
|
||||
@@ -351,8 +351,8 @@ const next = () => {
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (interval == 5) {
|
||||
} else if (interval == 4) {
|
||||
} else if (interval.value == 5) {
|
||||
} else if (interval.value == 4) {
|
||||
//根据开始时间推
|
||||
var start = new Date(year, month - 1, date)
|
||||
start.setDate(start.getDate() + 7)
|
||||
|
||||
Reference in New Issue
Block a user