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
b3191480
Commit
b3191480
authored
Dec 14, 2021
by
季圣华
Browse files
消息通知页面增加全部设置未已读的功能
parent
674eb203
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/system/MsgList.vue
View file @
b3191480
...
...
@@ -30,9 +30,9 @@
</a-row>
</a-form>
</div>
<!--
<div class="table-operator">
-->
<!--
<a-button type="primary" @click="readAll" icon="book">全部标注已读</a-button>
-->
<!--
</div>
-->
<div
class=
"table-operator"
>
<a-button
type=
"primary"
@
click=
"readAll"
icon=
"book"
>
全部标注已读
</a-button>
</div>
<div
style=
"margin-top: 5px"
>
<a-table
ref=
"table"
...
...
@@ -59,8 +59,7 @@
</template>
<
script
>
import
{
filterObj
}
from
'
@/utils/util
'
import
{
getAction
,
putAction
,
postAction
}
from
'
@/api/manage
'
import
{
postAction
}
from
'
@/api/manage
'
import
ShowAnnouncement
from
'
@/components/tools/ShowAnnouncement
'
import
{
JeecgListMixin
}
from
'
@/mixins/JeecgListMixin
'
import
DynamicNotice
from
'
../../components/tools/DynamicNotice
'
...
...
@@ -111,8 +110,7 @@
url
:
{
list
:
"
/msg/list
"
,
batchUpdateStatus
:
"
/msg/batchUpdateStatus
"
,
editCementSend
:
"
sys/sysAnnouncementSend/editByAnntIdAndUserId
"
,
readAllMsg
:
"
sys/sysAnnouncementSend/readAll
"
,
readAllMsg
:
"
/msg/readAllMsg
"
,
},
loading
:
false
,
openPath
:
''
,
...
...
@@ -127,7 +125,6 @@
postAction
(
this
.
url
.
batchUpdateStatus
,{
ids
:
record
.
id
,
status
:
'
2
'
}).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
===
200
){
this
.
loadData
();
//this.syncHeadNotic(record.anntId)
}
});
if
(
record
.
openType
===
'
component
'
){
...
...
@@ -138,20 +135,16 @@
this
.
$refs
.
ShowAnnouncement
.
detail
(
record
);
}
},
syncHeadNotic
(
anntId
){
getAction
(
"
sys/annountCement/syncNotic
"
,{
anntId
:
anntId
})
},
readAll
(){
var
that
=
this
;
let
that
=
this
;
that
.
$confirm
({
title
:
"
确认操作
"
,
content
:
"
是否全部标注已读?
"
,
onOk
:
function
(){
p
u
tAction
(
that
.
url
.
readAllMsg
).
then
((
res
)
=>
{
if
(
res
.
success
){
that
.
$message
.
success
(
res
.
message
);
p
os
tAction
(
that
.
url
.
readAllMsg
).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
===
200
){
that
.
$message
.
success
(
res
.
data
);
that
.
loadData
();
that
.
syncHeadNotic
();
}
});
}
...
...
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