From 3c26f581cd77bed95cc56464f8424993f3c6b13a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 28 六月 2021 18:45:44 +0800 Subject: [PATCH] 2021-06-28 --- src/tabviews/commontable/index.jsx | 23 ++++++++++++----------- 1 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/tabviews/commontable/index.jsx b/src/tabviews/commontable/index.jsx index a38b277..41c4225 100644 --- a/src/tabviews/commontable/index.jsx +++ b/src/tabviews/commontable/index.jsx @@ -441,11 +441,6 @@ loadData = () => { const { setting, search, BIDs, loadCustomApi, hasReqFields } = this.state - let requireFields = [] - - if (hasReqFields) { - requireFields = search.filter(item => item.required && item.value === '') - } this.setState({ selectedData: [], @@ -456,12 +451,18 @@ } }) - if (requireFields.length > 0) { - this.setState({ - loading: false - }) - return - } else if (window.GLOB.systemType === 'production' && setting.interType === 'custom' && !setting.proInterface) { + if (hasReqFields) { + let requireFields = search.filter(item => item.required && item.value === '') + + if (requireFields.length > 0) { + this.setState({ + loading: false + }) + return + } + } + + if (window.GLOB.systemType === 'production' && setting.interType === 'custom' && !setting.proInterface) { notification.warning({ top: 92, message: '鏈缃寮忕郴缁熷湴鍧�!', -- Gitblit v1.8.0