fixed:14972 【集团端-准入资质申请】二级审核人不能选择自己
parent
af59333709
commit
75313e950c
|
|
@ -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(() => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue