浏览代码

fix: 修复时间筛选重置时未清除局部变量导致第二页时间参数传递错误

zhangyuhan 2 年之前
父节点
当前提交
5448c647c4
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/web/staticres/common-module/history-push/js/historypush.js

+ 4 - 2
src/web/staticres/common-module/history-push/js/historypush.js

@@ -333,8 +333,8 @@ var vm = new Vue({
         // this.ajaxUrl = '/publicapply/subscribe/historyPush?t=' + new Date().getTime()
       }
       firstTime = ''
-        this.time = ''
-        this.tagText.timeText = '时间'
+      this.time = ''
+      this.tagText.timeText = '时间'
       this.bigSubShow = false
       ajaxFun(this.time, this.area, this.city, this.subscopeclass, this.buyerclass, this.key, this.subtype, this.selectFile, this.selectMoney)
     },
@@ -912,6 +912,7 @@ var vm = new Vue({
     },
     confirm: function(data){
       if(data.name === 'dateItem'){
+        firstTime = ''
         const timeRange = {
           start: (data.data.start / 1000).toFixed(0),
           end: (data.data.end / 1000).toFixed(0)
@@ -1012,6 +1013,7 @@ var vm = new Vue({
     },
     cancel: function(data){
       if(data.name === 'dateItem'){
+        firstTime = ''
         this.time = ''
         this.tagText.timeText = '时间'
         this.selectDate.start = ''