diff --git a/src/forge/Information/Pages/apply.jsx b/src/forge/Information/Pages/apply.jsx index 2c07bb12..89e674ed 100644 --- a/src/forge/Information/Pages/apply.jsx +++ b/src/forge/Information/Pages/apply.jsx @@ -39,13 +39,6 @@ console.log(props); callback(); } - - // function checkIndentity(rule, value, callback){ - // if(value && !idenReg.test(value)){ - // callback("专区标识长度2-20,只能以字母开头结尾,可包含数字、下划线、中划线"); - // } - // callback(); - // } return(
diff --git a/src/forge/Information/Pages/selfList.jsx b/src/forge/Information/Pages/selfList.jsx index dbce4ccd..f6b9312a 100644 --- a/src/forge/Information/Pages/selfList.jsx +++ b/src/forge/Information/Pages/selfList.jsx @@ -25,14 +25,27 @@ function SelfList(props){ useEffect(()=>{ if(id){ setIsSpin(true); - if(source===true){ - getSource(); - } - if(source===false){ - getNew(); - } + getFunc(source); } - },[status, page , id,source]) + },[id,source,page]) + + function getFunc(s){ + if(s===true){ + getSource(); + } + if(s===false){ + getNew(); + } + } + + useEffect(()=>{ + if(page===1){ + setIsSpin(true); + getFunc(source); + }else{ + setPage(1); + } + },[status]) useEffect(()=>{ diff --git a/src/forge/Information/api.js b/src/forge/Information/api.js index 2496268c..1dcdea4d 100644 --- a/src/forge/Information/api.js +++ b/src/forge/Information/api.js @@ -172,6 +172,8 @@ export function delSourceMyList(id){ export function postCreateZone(data) { return fetch({ url: `/zone/application`, + method: 'post', + data: data }) }