瀏覽代碼

LY bug fix

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();
     },
     /** 重置按钮操作 */