From c2943d4c365e6a4719fbd5fedf89f8c2232cf88e Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期一, 25 三月 2024 18:16:27 +0800
Subject: [PATCH] qxtj

---
 src/views/system/visit/index.vue |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/views/system/visit/index.vue b/src/views/system/visit/index.vue
index 3987680..b4cf172 100644
--- a/src/views/system/visit/index.vue
+++ b/src/views/system/visit/index.vue
@@ -429,7 +429,7 @@
   },
   created() {
     // this.getNowTime();
-    this.getList();
+   
     this.Company();
     this.getListEmer();
     this.getdate();
@@ -446,6 +446,7 @@
             moment(res.data).format("YYYY-MM-DD 00:00:00"),
             moment(res.data).format("YYYY-MM-DD 23:59:00")
           ];;
+          this.getList();
       });
     },
     dialogVisibles() {
@@ -516,8 +517,15 @@
     },
     /** 鏌ヨ浣撴璁板綍鍒楄〃 */
     getList() {
-      this.queryParams.djbeginTime = this.createTimeList[0];
+      if( this.createTimeList){
+        this.queryParams.djbeginTime = this.createTimeList[0];
       this.queryParams.djendTime = this.createTimeList[1];
+      }else if(this.createTimeList == null){
+        this.queryParams.djbeginTime = null;
+      this.queryParams.djendTime = null;
+      }
+     
+     
       this.loading = true;
       getOrderList(this.queryParams).then((response) => {
         this.orderList = response.data.list;
@@ -615,6 +623,7 @@
     },
     /** 閲嶇疆鎸夐挳鎿嶄綔 */
     resetQuery() {
+      this.createTimeList = []
       this.resetForm("queryForm");
       this.handleQuery();
     },

--
Gitblit v1.8.0