Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
25f2196c
Commit
25f2196c
authored
Aug 08, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息通知fixed
parent
50031e21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
src/pages/user/notice/notice.vue
src/pages/user/notice/notice.vue
+16
-1
No files found.
src/pages/user/notice/notice.vue
View file @
25f2196c
...
@@ -103,6 +103,7 @@ export default {
...
@@ -103,6 +103,7 @@ export default {
pageSize
:
10
,
pageSize
:
10
,
currentPage
:
1
,
currentPage
:
1
,
initDisabled
:
false
,
initDisabled
:
false
,
allMeassageCount
:
0
,
}),
}),
computed
:
{
computed
:
{
...
mapState
({
...
mapState
({
...
@@ -145,6 +146,8 @@ export default {
...
@@ -145,6 +146,8 @@ export default {
if
(
data
.
success
===
1
)
{
if
(
data
.
success
===
1
)
{
if
(
unread
)
{
if
(
unread
)
{
this
.
setUnreadMessageCount
(
data
.
data
.
total
||
0
);
this
.
setUnreadMessageCount
(
data
.
data
.
total
||
0
);
}
else
{
this
.
allMeassageCount
=
data
.
data
.
total
;
}
}
typeof
callback
===
"
function
"
&&
callback
(
data
.
data
);
typeof
callback
===
"
function
"
&&
callback
(
data
.
data
);
}
}
...
@@ -201,7 +204,6 @@ export default {
...
@@ -201,7 +204,6 @@ export default {
this
.
initList
();
// 刷新列表
this
.
initList
();
// 刷新列表
if
(
!
this
.
unread
)
{
if
(
!
this
.
unread
)
{
console
.
log
(
"
刷新未读消息数
"
);
this
.
getMessage
({
this
.
getMessage
({
unread
:
true
,
unread
:
true
,
});
});
...
@@ -246,14 +248,27 @@ export default {
...
@@ -246,14 +248,27 @@ export default {
this
.
removeAction
([
item
.
id
]);
this
.
removeAction
([
item
.
id
]);
},
},
readAll
()
{
readAll
()
{
if
(
this
.
unreadMessageCount
===
0
)
{
this
.
$message
.
warning
(
"
暂无未读消息
"
);
return
;
}
this
.
readAction
([]);
this
.
readAction
([]);
},
},
removeAll
()
{
removeAll
()
{
if
(
this
.
allMeassageCount
===
0
)
{
this
.
$message
.
warning
(
"
暂无消息通知
"
);
return
;
}
this
.
removeAction
([]);
this
.
removeAction
([]);
},
},
},
},
created
()
{
created
()
{
this
.
initList
();
this
.
initList
();
this
.
getMessage
({
unread
:
false
,
// 初始化消息总数
});
},
},
};
};
</
script
>
</
script
>
...
...
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