Commit 236d38f2c18e1598ad196144027b72d5e4055f7f

Authored by loveumiko
1 parent a59f0e8c

fix: 小程序设备命令记录筛选条件只有成功和失败,而且筛选出来都为空

Showing 1 changed file with 5 additions and 4 deletions
@@ -303,8 +303,9 @@ @@ -303,8 +303,9 @@
303 const formatS = curTime.getTime(); 303 const formatS = curTime.getTime();
304 let addMinute = new Date(curTime.setMinutes(curTime.getMinutes() - this.selectTimeVal)); 304 let addMinute = new Date(curTime.setMinutes(curTime.getMinutes() - this.selectTimeVal));
305 const formatE = addMinute.getTime(); 305 const formatE = addMinute.getTime();
306 - this.timeData.getTimeGapS = formatS;  
307 - this.timeData.getTimeGapE = formatE; 306 + this.timeData.getTimeGapS = i>0?formatS:'';
  307 + this.timeData.getTimeGapE = i>0?formatE:'';
  308 + console.log(this.timeData.getTimeGapS,'this.timeData.getTimeGapS',this.timeData.getTimeGapE)
308 }, 309 },
309 queryData() { 310 queryData() {
310 this.topBack(); 311 this.topBack();
@@ -345,8 +346,8 @@ @@ -345,8 +346,8 @@
345 this.current4 = 0; 346 this.current4 = 0;
346 this.selectTimeVal = ''; 347 this.selectTimeVal = '';
347 this.timeData.selectTime = []; 348 this.timeData.selectTime = [];
348 - this.timeDatagetTimeGapS = '';  
349 - this.timeDatagetTimeGapE = ''; 349 + this.timeData.getTimeGapS = '';
  350 + this.timeData.getTimeGapE = '';
350 this.range = []; 351 this.range = [];
351 this.searchAlarmText = ''; 352 this.searchAlarmText = '';
352 this.startTimeVa = ''; 353 this.startTimeVa = '';