Commit ccd8103a2f413fbf8c0f94b066b62aaa1c2539f4

Authored by fengtao
1 parent 75cdf370

fix:修改告警筛选选择时间问题

Showing 1 changed file with 3 additions and 3 deletions
@@ -302,7 +302,7 @@ export default { @@ -302,7 +302,7 @@ export default {
302 this.selectTimeVal = e.value; 302 this.selectTimeVal = e.value;
303 let curTime = new Date(); 303 let curTime = new Date();
304 const formatS = curTime.getTime(); 304 const formatS = curTime.getTime();
305 - let addMinute = new Date(curTime.setMinutes(curTime.getMinutes() + this.selectTimeVal)); 305 + let addMinute = new Date(curTime.setMinutes(curTime.getMinutes() - this.selectTimeVal));
306 const formatE = addMinute.getTime(); 306 const formatE = addMinute.getTime();
307 this.timeData.getTimeGapS = formatS; 307 this.timeData.getTimeGapS = formatS;
308 this.timeData.getTimeGapE = formatE; 308 this.timeData.getTimeGapE = formatE;
@@ -323,8 +323,8 @@ export default { @@ -323,8 +323,8 @@ export default {
323 this.startTimeArea = ''; 323 this.startTimeArea = '';
324 this.endTimeArea = ''; 324 this.endTimeArea = '';
325 } else { 325 } else {
326 - this.startTimeArea = this.timeData.getTimeGapS;  
327 - this.endTimeArea = this.timeData.getTimeGapE; 326 + this.startTimeArea = this.timeData.getTimeGapE;
  327 + this.endTimeArea = this.timeData.getTimeGapS;
328 } 328 }
329 this.loadData( 329 this.loadData(
330 1, 330 1,