提交 92a08f44 authored 作者: 钟是志's avatar 钟是志

28887 北电]学生事务-学生医保管理,审核通过后停留在当前页面

上级 4ecc5efb
...@@ -177,7 +177,7 @@ class DetailSplit extends Component { ...@@ -177,7 +177,7 @@ class DetailSplit extends Component {
}); });
}); });
} }
if (val && !val.taskInfo) { if (val) {
permRequest('/UnifiedAppFormApi/getTaskInfos', { permRequest('/UnifiedAppFormApi/getTaskInfos', {
// 获取每一步的审核人. // 获取每一步的审核人.
id: queryId ? queryId : id, // 审批表Id id: queryId ? queryId : id, // 审批表Id
...@@ -971,6 +971,10 @@ function Index(props) { ...@@ -971,6 +971,10 @@ function Index(props) {
const [prepare, setPrepare] = useState(false); const [prepare, setPrepare] = useState(false);
const DetailSplitFormNew = useRef(); const DetailSplitFormNew = useRef();
useEffect(() => { useEffect(() => {
getFormDetailData();
}, []);
const getFormDetailData = () => {
const id = history.location.state && history.location.state.id; const id = history.location.state && history.location.state.id;
const code = history.location.state && history.location.state.code; const code = history.location.state && history.location.state.code;
const queryId = history.location.query && history.location.query.id; const queryId = history.location.query && history.location.query.id;
...@@ -1002,12 +1006,14 @@ function Index(props) { ...@@ -1002,12 +1006,14 @@ function Index(props) {
} }
}, },
}); });
}, []); }
if (!prepare) { if (!prepare) {
return <Spin size="large" spinning={true} />; return <Spin size="large" spinning={true} />;
} }
return <DetailSplitFormNew.current {...props} formPrepareData={prepare} />; return <DetailSplitFormNew.current {...props} formPrepareData={prepare} getFormDetailData={getFormDetailData}/>;
} }
export default connect(() => { export default connect(() => {
......
...@@ -119,7 +119,7 @@ const submitValues = ({ ...@@ -119,7 +119,7 @@ const submitValues = ({
payload: resParams, payload: resParams,
callback: val => { callback: val => {
if (val) { if (val) {
that.getInit(); // that.getInit();
that.setState({ that.setState({
isHandle: false, isHandle: false,
isSumbitLoading: false, isSumbitLoading: false,
...@@ -133,7 +133,7 @@ const submitValues = ({ ...@@ -133,7 +133,7 @@ const submitValues = ({
</div> </div>
), ),
onOk: () => { onOk: () => {
that.getInit(); that.props.getFormDetailData();
}, },
okText: '确认', okText: '确认',
}); });
......
...@@ -25,7 +25,6 @@ export function getVisitorToken(){ ...@@ -25,7 +25,6 @@ export function getVisitorToken(){
const res = { const res = {
headers: {}, headers: {},
}; };
console.log(process.env.NODE_ENV);
if(process.env.NODE_ENV === 'development' && getIsBei_Dian()){ if(process.env.NODE_ENV === 'development' && getIsBei_Dian()){
res.headers.env = 'test'; res.headers.env = 'test';
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论