Browse Source

掉线日志-筛选条件日期重置

chenrui 4 years ago
parent
commit
4ca1e67fd1
1 changed files with 10 additions and 1 deletions
  1. 10 1
      src/views/equipmentManage/equipment/logModal.vue

+ 10 - 1
src/views/equipmentManage/equipment/logModal.vue

@@ -141,7 +141,16 @@ export default {
       }
     },
     srcDeviceCode (newValue, oldValue) {
-      this.$refs.table.refresh(true)
+      this.queryParam.beginDate = getDate.getRecentday().starttime
+      this.queryParam.endDate = getDate.getRecentday().endtime
+      this.time = [
+        moment(getDate.getRecentday().starttime, this.dateFormat),
+        moment(getDate.getRecentday().endtime, this.dateFormat)
+      ]
+      const _this = this
+      setTimeout(() => {
+        _this.$refs.table.refresh(true)
+      }, 100)
     }
   }
 }