From 8295f740417cf6fa162e89547f25cd39b1b7b73c Mon Sep 17 00:00:00 2001 From: 13718154103 <1161593628@qq.com> Date: Mon, 23 Dec 2024 19:56:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=201=E3=80=81=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pm-web-app/src/pages/Project/Edit/EditActive/index.tsx | 6 +++++- pm-web-app/src/pages/Project/Edit/RevenueConfirm/index.tsx | 6 +++++- pm-web-app/src/pages/Project/View/index.tsx | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/pm-web-app/src/pages/Project/Edit/EditActive/index.tsx b/pm-web-app/src/pages/Project/Edit/EditActive/index.tsx index a1bffb0..eb32525 100644 --- a/pm-web-app/src/pages/Project/Edit/EditActive/index.tsx +++ b/pm-web-app/src/pages/Project/Edit/EditActive/index.tsx @@ -154,7 +154,11 @@ const Project: React.FC = () => { ...query, ...params, page, - group: '', + group: params.group.length !== 0 + ? params.group.reduce((accumulator: string, currentValue: string) => { + return `${accumulator}/${currentValue}`; + }, '') + : '', }); }; diff --git a/pm-web-app/src/pages/Project/Edit/RevenueConfirm/index.tsx b/pm-web-app/src/pages/Project/Edit/RevenueConfirm/index.tsx index d30b551..4dd4100 100644 --- a/pm-web-app/src/pages/Project/Edit/RevenueConfirm/index.tsx +++ b/pm-web-app/src/pages/Project/Edit/RevenueConfirm/index.tsx @@ -303,7 +303,11 @@ const Project: React.FC = () => { ...query, ...params, page, - group: '', + group: params.group.length !== 0 + ? params.group.reduce((accumulator: string, currentValue: string) => { + return `${accumulator}/${currentValue}`; + }, '') + : '', }); }; const searchBtn = () => { diff --git a/pm-web-app/src/pages/Project/View/index.tsx b/pm-web-app/src/pages/Project/View/index.tsx index 724dad1..90981c4 100644 --- a/pm-web-app/src/pages/Project/View/index.tsx +++ b/pm-web-app/src/pages/Project/View/index.tsx @@ -139,7 +139,11 @@ const Project: React.FC = (props) => { }; const pageChange = (page: any) => { setParams({ ...params, page }); - let obj = { group: '' }; + let obj = { group: params.group.length !== 0 + ? params.group.reduce((accumulator: string, currentValue: string) => { + return `${accumulator}/${currentValue}`; + }, '') + : '',}; setQuery({ ...query, ...params,