From 523cec6c87d88b43954a4409a8dfde6aade095a1 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 22 五月 2020 11:02:10 +0800
Subject: [PATCH] 2020-05-22

---
 src/tabviews/zshare/topSearch/index.jsx |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/zshare/topSearch/index.jsx b/src/tabviews/zshare/topSearch/index.jsx
index d4cbf0f..cfd4007 100644
--- a/src/tabviews/zshare/topSearch/index.jsx
+++ b/src/tabviews/zshare/topSearch/index.jsx
@@ -216,6 +216,7 @@
               })(
                 <Select
                   showSearch
+                  // allowClear={true}
                   onChange={(value) => {this.selectChange(item, value)}}
                   filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}
                   getPopupContainer={() => document.getElementById(this.state.formId)}
@@ -419,7 +420,7 @@
     Object.keys(values).forEach(key => {
       let _value = ''
       if (this.state.style[key] === 'daterange') {
-        if (values[key].length > 0) {
+        if (values[key].length > 0 && values[key][0] && values[key][1]) {
           _value = [moment(values[key][0]).format('YYYY-MM-DD'), moment(values[key][1]).format('YYYY-MM-DD')]
         }
       } else if (this.state.style[key] === 'dateweek') {

--
Gitblit v1.8.0