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

27050 基础信息修改--提交页面卡顿

上级 775316a6
...@@ -17,6 +17,7 @@ import { callbackApplyData } from '@/webPublic/one_stop_public/models/callbackEx ...@@ -17,6 +17,7 @@ import { callbackApplyData } from '@/webPublic/one_stop_public/models/callbackEx
import { isJSON } from '@/webPublic/one_stop_public/tableCompon/Split_Index/staticInfo'; import { isJSON } from '@/webPublic/one_stop_public/tableCompon/Split_Index/staticInfo';
import { getModal } from '@/webPublic/one_stop_public/utils/utils'; import { getModal } from '@/webPublic/one_stop_public/utils/utils';
import beforeApplySubmit from '@/webPublic/one_stop_public/utils/beforeApplySubmit'; import beforeApplySubmit from '@/webPublic/one_stop_public/utils/beforeApplySubmit';
import { uaaRequest } from '@/webPublic/one_stop_public/utils/request';
const Modal = getModal(); const Modal = getModal();
...@@ -66,19 +67,11 @@ class SponsorForm extends Component { ...@@ -66,19 +67,11 @@ class SponsorForm extends Component {
* 提交完成后用户提示 * 提交完成后用户提示
*/ */
info = (applySubmitModalProps = undefined) => { info = (applySubmitModalProps = undefined) => {
let top = this.countHeight();
let style = {};
if (top) {
style = {
top: 10,
};
}
let method = applySubmitModalProps && applySubmitModalProps.method ? applySubmitModalProps.method : 'info'; // 从流程发起回调里面拿配置项 let method = applySubmitModalProps && applySubmitModalProps.method ? applySubmitModalProps.method : 'info'; // 从流程发起回调里面拿配置项
let config = (applySubmitModalProps && applySubmitModalProps.config) || {}; let config = (applySubmitModalProps && applySubmitModalProps.config) || {};
Modal[method]({ Modal[method]({
title: '提交申请', title: '提交申请',
centered: true, centered: true,
style,
content: ( content: (
<div> <div>
<p <p
...@@ -95,16 +88,13 @@ class SponsorForm extends Component { ...@@ -95,16 +88,13 @@ class SponsorForm extends Component {
), ),
okText: '确定', okText: '确定',
onOk: () => { onOk: () => {
if(this.props.returnList){
this.props.returnList(true);
}
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.setState({
disabled: true,
});
if(this.props.returnList){
this.props.returnList(true);
}
resolve(true); resolve(true);
return true; })
}); return true;
}, },
...config, ...config,
}); });
...@@ -232,17 +222,19 @@ class SponsorForm extends Component { ...@@ -232,17 +222,19 @@ class SponsorForm extends Component {
let applySubmitModalProps = resParams?.applySubmitModalProps || undefined; let applySubmitModalProps = resParams?.applySubmitModalProps || undefined;
delete resParams.applySubmitModalProps; delete resParams.applySubmitModalProps;
message.info('正在提交申请,请等待'); message.info('正在提交申请,请等待');
dispatch({ uaaRequest('UnifiedAppFormApi/startProcess', resParams).then((val) => {
type: 'affair/startProcess', if (val) {
payload: resParams, this.info(applySubmitModalProps);
callback: val => { } else {
if (val) { openToast('error', '保存失败', '请尝试');
this.info(applySubmitModalProps); }
} else { })
openToast('error', '保存失败', '请尝试'); // dispatch({
} // type: 'affair/startProcess',
}, // payload: resParams,
}); // callback: val => {
// },
// });
}); });
} }
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论