Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
merchant-manage-ui
Commits
fb46f2dc
Commit
fb46f2dc
authored
Nov 02, 2022
by
李腾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 优化售后订单管理页面滚动条区域
parent
80e5f1db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
index.jsx
src/pages/AfterSaleManage/index.jsx
+19
-1
No files found.
src/pages/AfterSaleManage/index.jsx
View file @
fb46f2dc
...
...
@@ -55,6 +55,9 @@ const AfterSale = props => {
returnWaitAuditNum
:
0
,
afterSalseDoneNum
:
0
,
});
const
scrollYRef
=
useRef
();
const
[
tableScrollY
,
setTableScrollY
]
=
useState
(
0
);
// 申诉
const
[
proofsData
,
setProofsData
]
=
useState
([]);
const
[
proofsVisible
,
setProofsVisible
]
=
useState
(
false
);
...
...
@@ -270,6 +273,17 @@ const AfterSale = props => {
}
},
[
location
]);
const
calculationLayoutHeight
=
()
=>
{
setTableScrollY
(
scrollYRef
.
current
.
offsetTop
+
330
);
};
useEffect
(()
=>
{
setTableScrollY
(
scrollYRef
.
current
.
offsetTop
+
350
);
},
[]);
window
.
removeEventListener
(
'
resize
'
,
calculationLayoutHeight
);
window
.
addEventListener
(
'
resize
'
,
calculationLayoutHeight
);
const
columns
=
getColumns
({
openAudit
,
viewAppeal
,
...
...
@@ -290,7 +304,7 @@ const AfterSale = props => {
columns
,
params
:
tableParams
,
bordered
:
true
,
scroll
:
{
x
:
'
100%
'
,
y
:
'
calc(100vh - 580px)
'
},
scroll
:
{
x
:
'
100%
'
,
y
:
`calc(100vh -
${
tableScrollY
}
px)`
},
rowKey
:
r
=>
r
.
serviceNo
,
request
:
async
params
=>
{
const
[
start
,
end
]
=
params
.
afterTime
||
afterTime
;
...
...
@@ -373,6 +387,7 @@ const AfterSale = props => {
/>
</
Tabs
>
</
div
>
<
div
ref=
{
scrollYRef
}
></
div
>
<
ProTable
{
...
tableProps
}
actionRef=
{
actionRef
}
...
...
@@ -381,6 +396,9 @@ const AfterSale = props => {
// toolBarRender={false}
/>
{
/* 底部占位-防止消息提醒按钮挡住翻页 */
}
{
/* <div style={{ height: '80px' }}></div> */
}
<
AuditModal
visible=
{
visible
}
onCancel=
{
closeModal
}
formData=
{
auditInfo
}
/>
<
DetailTable
visible=
{
detailVisible
}
onCancel=
{
closeModal
}
dataSource=
{
detailInfo
}
/>
<
ProofsModal
visible=
{
proofsVisible
}
onCancel=
{
closeModal
}
data=
{
proofsData
}
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment