|
@@ -70,7 +70,9 @@ const TaskList: React.FC<IPropsType> = (props) => {
|
|
|
currentPage: mandatePage.current,
|
|
|
},
|
|
|
],
|
|
|
+ onSuccess: (data, params)=>{},
|
|
|
formatResult: (result) => {
|
|
|
+ console.log(mandatePage);
|
|
|
if (result.data.pagination.current === 1) {
|
|
|
setMandateList(result.data.list);
|
|
|
} else {
|
|
@@ -156,8 +158,17 @@ const TaskList: React.FC<IPropsType> = (props) => {
|
|
|
setCurrentParams(params);
|
|
|
};
|
|
|
|
|
|
+ const loadMoreData = () => {
|
|
|
+ getList(currentParams);
|
|
|
+ console.log(currentParams);
|
|
|
+ setCurrentParams({
|
|
|
+ ...currentParams,
|
|
|
+ currentPage: currentParams.currentPage+1
|
|
|
+ })
|
|
|
+ };
|
|
|
+
|
|
|
const loadMoreMandate =
|
|
|
- !loadData && mandateListShow.length > mandatePage.total ? (
|
|
|
+ !loadData ? (
|
|
|
<div
|
|
|
style={{
|
|
|
textAlign: 'center',
|
|
@@ -171,6 +182,7 @@ const TaskList: React.FC<IPropsType> = (props) => {
|
|
|
type="text"
|
|
|
size="large"
|
|
|
style={{ fontSize: '28px', height: '56px', width: '160px' }}
|
|
|
+ onClick={loadMoreData}
|
|
|
>
|
|
|
加载更多
|
|
|
</Button>
|