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

解决一站式web端一直重复调接口的bug

上级 6409e148
......@@ -3,7 +3,7 @@
* 2019年9月19日
* 查看详情页面
*/
import React, { Component, Fragment } from 'react';
import React, { Component, Fragment, useRef } from 'react';
import {
Row,
Col,
......@@ -36,7 +36,12 @@ import styles from './styles.less';
import TrunToDetail from './trunToDetail';
import Countersign from './components/Countersign';
import ChildTaskModel from './ChildTaskModel';
import { checkNeedFormValidateFieldsAndScroll, must, submitValues, checkNeedWriteAuditInfo } from './splitDetailSplit';
import {
checkNeedFormValidateFieldsAndScroll,
must,
submitValues,
checkNeedWriteAuditInfo,
} from './splitDetailSplit';
import { queryApiVersion, queryApiActionPath } from '@/webPublic/one_stop_public/utils/queryConfig';
import { isJSON } from '@/webPublic/zyd_public/utils/utils';
import HistoryFormList from '@/webPublic/one_stop_public/DetailForAudit/HistoryFormList';
......@@ -130,12 +135,15 @@ class DetailSplit extends Component {
componentDidMount() {
this.getInit();
if (this.props.onRef) {
this.props.onRef(this);
}
}
// getInit2 = () => {
// console.log('getInit2');
// }
/**
* @function 默认请求
*/
......@@ -228,8 +236,6 @@ class DetailSplit extends Component {
});
}
},
});
......@@ -246,7 +252,7 @@ class DetailSplit extends Component {
closeAutoSign,
});
if(!closeAutoSign){
if (!closeAutoSign) {
/**
* 获取设置的数据
*/
......@@ -687,7 +693,7 @@ class DetailSplit extends Component {
''
)}
{isEmpty(data) === false ? (
<ZdyTable
<GetZdyTable
key={data.taskFormKey}
postData={data}
get='web'
......@@ -978,10 +984,13 @@ class DetailSplit extends Component {
}
}
export default function Index(props){
console.log(window.zdyTableTemplateWillMountProps?.formCreateOptions);
const DetailSplitFormNew = Form.create(
export default function Index(props) {
return <DetailSplit {...props} />;
}
function GetZdyTable(props) {
const ZdyTableFormNew = Form.create(
window.zdyTableTemplateWillMountProps?.formCreateOptions || undefined,
)(DetailSplit);
return <DetailSplitFormNew {...props}/>;
)(ZdyTable);
return <ZdyTableFormNew {...props}/>
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论