Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
016c3cda
Commit
016c3cda
authored
Dec 15, 2021
by
季圣华
Browse files
给消息通知进行截取排序
parent
0c131601
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/components/tools/HeaderNotice.vue
View file @
016c3cda
...
...
@@ -103,6 +103,10 @@
getAction
(
this
.
url
.
getMsgByStatus
,
{
status
:
'
1
'
}).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
===
200
)
{
this
.
announcement1
=
res
.
data
;
if
(
this
.
announcement1
.
length
>
5
)
{
this
.
announcement1
=
this
.
announcement1
.
reverse
()
this
.
announcement1
=
this
.
announcement1
.
slice
(
0
,
5
)
}
this
.
msg1Count
=
res
.
data
.
length
;
this
.
msg1Title
=
"
通知(
"
+
res
.
data
.
length
+
"
)
"
;
}
...
...
Write
Preview
Supports
Markdown
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