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