zhaobao 1 년 전
부모
커밋
923d5cf38e
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/views/iiot/equipment/history.vue

+ 2 - 0
src/views/iiot/equipment/history.vue

@@ -227,6 +227,8 @@ export default {
     NumConvertLM,
     getData() {
       this.listLoading = true
+      if (!this.conditions.startDate) delete this.conditions.startDate
+      if (!this.conditions.endDate) delete this.conditions.endDate
       getSensorDataByPage(this.conditions).then((resp) => {
         this.listLoading = false
         const { code, msg, data, total } = resp