From 75313e950c6c8545d027a70cb92492749b3d7500 Mon Sep 17 00:00:00 2001 From: dearLin <1261008090@qq.com> Date: Mon, 2 Mar 2026 15:35:58 +0800 Subject: [PATCH] =?UTF-8?q?fixed:14972=20=E3=80=90=E9=9B=86=E5=9B=A2?= =?UTF-8?q?=E7=AB=AF-=E5=87=86=E5=85=A5=E8=B5=84=E8=B4=A8=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E3=80=91=E4=BA=8C=E7=BA=A7=E5=AE=A1=E6=A0=B8=E4=BA=BA?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E9=80=89=E6=8B=A9=E8=87=AA=E5=B7=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Qualification/Apply/Add/index.js | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/pages/Container/BranchCompany/Qualification/Apply/Add/index.js b/src/pages/Container/BranchCompany/Qualification/Apply/Add/index.js index f8fa506..046e63c 100644 --- a/src/pages/Container/BranchCompany/Qualification/Apply/Add/index.js +++ b/src/pages/Container/BranchCompany/Qualification/Apply/Add/index.js @@ -121,20 +121,28 @@ const StepOneComponent = (props) => { setQualificationsListAll(data); }; - const getCorpInfoList = async (type) => { - const { data } = await props["corpInfoList"]({ pageIndex: 1, pageSize: 1000, eqType: type || 1 }); + const getCorpInfoList = async (type, exCludeSelf) => { + const { data } = await props["corpInfoList"]({ pageIndex: 1, pageSize: 1000, eqType: type || 1, exCludeSelf: exCludeSelf || 1 }); setCorpInfoList(data); }; useEffect(() => { - getCorpInfoList(1); + getCorpInfoList(1,0); form.setFieldsValue(props.formValues); }, []); useEffect(() => { - if (qualificationsTypeId && stakeholderLevel) + if (qualificationsTypeId && stakeholderLevel) { + if (stakeholderLevel === 'two-level') { + getCorpInfoList(1,1); + }else { + getCorpInfoList(1,0); + } getQualificationsListAll(); - else setQualificationsListAll([]); + } + else { + setQualificationsListAll([]); + } }, [qualificationsTypeId, stakeholderLevel]); useEffect(() => {