zhaobao hace 1 año
padre
commit
923d5cf38e
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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