From eb31b84962c192de57abbb473cb4733a09bf4363 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 14 五月 2020 18:09:40 +0800 Subject: [PATCH] 2020-05-14 --- src/tabviews/zshare/topSearch/index.jsx | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tabviews/zshare/topSearch/index.jsx b/src/tabviews/zshare/topSearch/index.jsx index 5281aba..d4cbf0f 100644 --- a/src/tabviews/zshare/topSearch/index.jsx +++ b/src/tabviews/zshare/topSearch/index.jsx @@ -184,7 +184,7 @@ this.state.searchlist.forEach((item, index) => { if (item.hidden) return - + if (item.type === 'text') { // 鏂囨湰鎼滅储 fields.push( <Col span={item.ratio || 6} key={index}> @@ -435,11 +435,12 @@ _value = moment(values[key]).format('YYYY-MM') } } else if (this.state.style[key] === 'multiselect') { - _value = values[key] + _value = values[key] || [] } else { - _value = values[key].replace(/(^\s*|\s*$)/ig, '') + _value = (values[key] || values[key] === 0) ? values[key] : '' + _value = _value.replace(/(^\s*|\s*$)/ig, '') } search.push({ -- Gitblit v1.8.0