Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
ReactWeb5
CivWeb
Commits
dce66cbc
Commit
dce66cbc
authored
Jul 28, 2022
by
崔佳豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复一页够展示10条时无法滚动问题
parent
23b07ac3
Pipeline
#56380
passed with stages
in 2 minutes 24 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
index.js
src/pages/system/notifications/index.js
+9
-8
index.less
src/pages/system/notifications/index.less
+1
-1
No files found.
src/pages/system/notifications/index.js
View file @
dce66cbc
...
...
@@ -36,6 +36,7 @@ const CheckAllMessage = props => {
const
[
isRes
,
setIsRes
]
=
useState
(
false
);
const
total
=
useRef
(
0
);
const
pageIndex
=
useRef
(
1
);
const
pageSize
=
useRef
(
20
);
const
infoType
=
useRef
(
'全部'
);
useEffect
(()
=>
{
loadMoreData
();
...
...
@@ -61,7 +62,7 @@ const CheckAllMessage = props => {
obj
=
{
userID
:
window
.
globalConfig
.
userInfo
.
OID
,
pageIndex
:
pageIndex
.
current
,
pageSize
:
10
,
pageSize
:
pageSize
.
current
,
sort
:
sortType
}
}
else
{
...
...
@@ -69,7 +70,7 @@ const CheckAllMessage = props => {
type
:
infoType
.
current
,
userID
:
window
.
globalConfig
.
userInfo
.
OID
,
pageIndex
:
pageIndex
.
current
,
pageSize
:
10
,
pageSize
:
pageSize
.
current
,
sort
:
sortType
}
}
...
...
@@ -129,7 +130,7 @@ const CheckAllMessage = props => {
obj
=
{
userID
:
window
.
globalConfig
.
userInfo
.
OID
,
pageIndex
:
pageIndex
.
current
,
pageSize
:
10
,
pageSize
:
pageSize
.
current
,
sort
:
sortType
}
}
else
{
...
...
@@ -137,7 +138,7 @@ const CheckAllMessage = props => {
type
:
infoType
.
current
,
userID
:
window
.
globalConfig
.
userInfo
.
OID
,
pageIndex
:
pageIndex
.
current
,
pageSize
:
10
,
pageSize
:
pageSize
.
current
,
sort
:
sortType
}
}
...
...
@@ -206,7 +207,7 @@ const CheckAllMessage = props => {
obj
=
{
userID
:
window
.
globalConfig
.
userInfo
.
OID
,
pageIndex
:
pageIndex
.
current
,
pageSize
:
10
,
pageSize
:
pageSize
.
current
,
sort
:
value
};
}
else
{
...
...
@@ -214,7 +215,7 @@ const CheckAllMessage = props => {
type
:
infoType
.
current
,
userID
:
window
.
globalConfig
.
userInfo
.
OID
,
pageIndex
:
pageIndex
.
current
,
pageSize
:
10
,
pageSize
:
pageSize
.
current
,
sort
:
value
};
}
...
...
@@ -253,7 +254,7 @@ const CheckAllMessage = props => {
obj
=
{
userID
:
window
.
globalConfig
.
userInfo
.
OID
,
pageIndex
:
pageIndex
.
current
,
pageSize
:
10
,
pageSize
:
pageSize
.
current
,
sort
:
sortType
};
}
else
{
...
...
@@ -261,7 +262,7 @@ const CheckAllMessage = props => {
type
:
infoType
.
current
,
userID
:
window
.
globalConfig
.
userInfo
.
OID
,
pageIndex
:
pageIndex
.
current
,
pageSize
:
10
,
pageSize
:
pageSize
.
current
,
sort
:
sortType
};
}
...
...
src/pages/system/notifications/index.less
View file @
dce66cbc
...
...
@@ -4,7 +4,7 @@
.contentPage {
width: 100%;
height: 100%;
background: url('@{imgSrc}/messageBg.png') no-repeat;
background: url('@{imgSrc}/messageBg.png')
center/100% 100%
no-repeat;
// padding: 20px 300px 0 300px;
.messageBox {
...
...
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