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 302 this.selectTimeVal = e.value;
303 303 let curTime = new Date();
304 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 306 const formatE = addMinute.getTime();
307 307 this.timeData.getTimeGapS = formatS;
308 308 this.timeData.getTimeGapE = formatE;
... ... @@ -323,8 +323,8 @@ export default {
323 323 this.startTimeArea = '';
324 324 this.endTimeArea = '';
325 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 329 this.loadData(
330 330 1,
... ...