ly преди 2 години
родител
ревизия
5f357cb424
променени са 1 файла, в които са добавени 6 реда и са изтрити 3 реда
  1. 6 3
      ui/src/views/ehs/jobticket/index.vue

+ 6 - 3
ui/src/views/ehs/jobticket/index.vue

@@ -1001,9 +1001,12 @@ export default {
     },
     /** 搜索按钮操作 */
     handleQuery() {
-      this.queryParams.pageNum = 1;
-      this.queryParams.startDate = this.chooseDate[0];
-      this.queryParams.endDate = this.chooseDate[1];
+      this.queryParams.pageNum = 1
+      if (this.chooseDate == null) {
+        this.chooseDate = []
+      }
+      this.queryParams.startDate = this.chooseDate[0]
+      this.queryParams.endDate = this.chooseDate[1]
       this.getList();
     },
     /** 重置按钮操作 */