From 822bc67061448c6e3a1eb77d39be4ad2b84b416a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 27 二月 2020 09:36:34 +0800 Subject: [PATCH] 2020-02-27 --- src/tabviews/tableshare/topSearch/index.jsx | 16 +++++----------- 1 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/tabviews/tableshare/topSearch/index.jsx b/src/tabviews/tableshare/topSearch/index.jsx index 0a479b8..4222f5a 100644 --- a/src/tabviews/tableshare/topSearch/index.jsx +++ b/src/tabviews/tableshare/topSearch/index.jsx @@ -43,14 +43,16 @@ _list.push(item) }) - let error = false - _list = _list.map(item => { if (item.type === 'link') { let supItem = _list.filter(form => form.field === item.linkField)[0] if (!supItem) { - error = true + notification.warning({ + top: 92, + message: '鏈煡璇㈠埌鎼滅储鏉′欢銆�' + item.label + '銆嬪叧鑱斿瓧娈碉紒', + duration: 10 + }) } else { item.options = item.oriOptions.filter(option => option.parentId === supItem.initval) } @@ -58,14 +60,6 @@ return item }) - - if (error) { - notification.warning({ - top: 92, - message: '鍏宠仈鑿滃崟璁剧疆閿欒锛�', - duration: 10 - }) - } this.setState({ match: match, -- Gitblit v1.8.0