Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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
shenshaokai
jinfa-admin
Commits
5e1f254f
Commit
5e1f254f
authored
Dec 31, 2020
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改消息bug
parent
4febc025
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
index.tsx
src/pages/message/index.tsx
+10
-2
No files found.
src/pages/message/index.tsx
View file @
5e1f254f
...
...
@@ -36,7 +36,7 @@ const Message: React.FC<{}> = () => {
}
const
handleRead
=
(
id
,
url
:
string
)
=>
{
PublicApi
.
ge
tReportMessagePlatformRead
({
id
:
id
})
PublicApi
.
pos
tReportMessagePlatformRead
({
id
:
id
})
.
then
((
data
)
=>
{
if
(
url
)
{
if
(
/http/
.
test
(
url
))
{
...
...
@@ -51,6 +51,14 @@ const Message: React.FC<{}> = () => {
}
})
}
const
handleAllMessageRead
=
()
=>
{
PublicApi
.
postReportMessagePlatformReadAll
()
.
then
(({
code
,
data
})
=>
{
if
(
code
===
1000
)
{
getList
(
pagination
);
}
})
}
const
renderMessage
=
(
data
)
=>
{
return
(
...
...
@@ -70,7 +78,7 @@ const Message: React.FC<{}> = () => {
<
Card
>
<
div
className=
{
styles
.
header
}
>
<
Button
type=
"primary"
icon=
{
<
PlusOutlined
/>
}
onClick=
{
()
=>
history
.
push
(
'/message/messageList/add'
)
}
>
新建
</
Button
>
<
Button
type=
"link"
>
全部已读
</
Button
>
<
Button
type=
"link"
onClick=
{
handleAllMessageRead
}
>
全部已读
</
Button
>
</
div
>
<
List
itemLayout=
"horizontal"
...
...
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