|
@@ -58,6 +58,7 @@ function Approved(props) {
|
|
run: conAuditedRun,
|
|
run: conAuditedRun,
|
|
loading: conAduitedLoading,
|
|
loading: conAduitedLoading,
|
|
} = useRequest((data) => queryApprovedList(data), {
|
|
} = useRequest((data) => queryApprovedList(data), {
|
|
|
|
+ defaultParams: [{ currentPage: 1, pageSize: 10 }]
|
|
// formatResult: contractResult,
|
|
// formatResult: contractResult,
|
|
});
|
|
});
|
|
// //合同 我审批过的列表
|
|
// //合同 我审批过的列表
|
|
@@ -68,7 +69,7 @@ function Approved(props) {
|
|
// } = useRequest((data) => queryGetContractList(data), {
|
|
// } = useRequest((data) => queryGetContractList(data), {
|
|
// manual: true,
|
|
// manual: true,
|
|
// formatResult: contractResult,
|
|
// formatResult: contractResult,
|
|
- // });
|
|
|
|
|
|
+ // });0
|
|
// const applyData = useMemo(() => {
|
|
// const applyData = useMemo(() => {
|
|
// let result = [];
|
|
// let result = [];
|
|
// if (conAuditedData?.data && conAuditedData?.data.length > 0) result = [...conAuditedData?.data];
|
|
// if (conAuditedData?.data && conAuditedData?.data.length > 0) result = [...conAuditedData?.data];
|
|
@@ -86,11 +87,10 @@ function Approved(props) {
|
|
console.log(values);
|
|
console.log(values);
|
|
OAApplyRun(values);
|
|
OAApplyRun(values);
|
|
};
|
|
};
|
|
- const handleProfilePaginationChange = (pagination) => {
|
|
|
|
- conApplyRun({
|
|
|
|
|
|
+ const handleApplyPaginationChange = (pagination) => {
|
|
|
|
+ conAuditedRun({
|
|
currentPage: pagination.current,
|
|
currentPage: pagination.current,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
-
|
|
|
|
});
|
|
});
|
|
};
|
|
};
|
|
const columns = [
|
|
const columns = [
|
|
@@ -178,8 +178,8 @@ function Approved(props) {
|
|
columns={columns}
|
|
columns={columns}
|
|
dataSource={conAuditedData?.list}
|
|
dataSource={conAuditedData?.list}
|
|
loading={conAduitedLoading}
|
|
loading={conAduitedLoading}
|
|
- // pagination={queryApplyListRequest?.data?.pagination}
|
|
|
|
- // onChange={handleApplyPaginationChange}
|
|
|
|
|
|
+ pagination={conAuditedData?.pagination}
|
|
|
|
+ onChange={handleApplyPaginationChange}
|
|
/>
|
|
/>
|
|
</>
|
|
</>
|
|
);
|
|
);
|
|
@@ -234,7 +234,7 @@ function Approved(props) {
|
|
return (
|
|
return (
|
|
<PageContainer
|
|
<PageContainer
|
|
header={{
|
|
header={{
|
|
- title: '已审批',
|
|
|
|
|
|
+ title: `已审批(${conAuditedData?.pagination?.total || 0})`,
|
|
}}
|
|
}}
|
|
// tabList={[
|
|
// tabList={[
|
|
// {
|
|
// {
|