|
|
@@ -30,11 +30,11 @@
|
|
|
</a-list-item>
|
|
|
</a-list>-->
|
|
|
<a-tabs size="small" class="header_notice">
|
|
|
- <a-tab-pane tab="房间消息" key="1">
|
|
|
+ <a-tab-pane :tab='"房间消息(" + roomAnnouncements.length + ")"' key="1">
|
|
|
<a-list>
|
|
|
<a-list-item
|
|
|
:key="index"
|
|
|
- v-for="(record, index) in announcement1"
|
|
|
+ v-for="(record, index) in roomAnnouncements"
|
|
|
>
|
|
|
<div style="margin-left: 5%; width: 80%">
|
|
|
<p>
|
|
|
@@ -78,11 +78,11 @@
|
|
|
<a-tab-pane tab="资产消息" key="3">
|
|
|
|
|
|
</a-tab-pane>
|
|
|
- <a-tab-pane tab="订单消息" key="4">
|
|
|
+ <a-tab-pane :tab='"订单消息(" + orderAnnouncements.length + ")"' key="4">
|
|
|
<a-list>
|
|
|
<a-list-item
|
|
|
:key="index"
|
|
|
- v-for="(record, index) in announcement2"
|
|
|
+ v-for="(record, index) in orderAnnouncements"
|
|
|
>
|
|
|
<div style="margin-left: 5%; width: 80%">
|
|
|
<p>
|
|
|
@@ -180,6 +180,8 @@ export default {
|
|
|
hovered: false,
|
|
|
announcement1: [],
|
|
|
announcement2: [],
|
|
|
+ roomAnnouncements: [],
|
|
|
+ orderAnnouncements: [],
|
|
|
msg1Count: "0",
|
|
|
msg2Count: "0",
|
|
|
msg1Title: "通知(0)",
|
|
|
@@ -228,6 +230,8 @@ export default {
|
|
|
.then((res) => {
|
|
|
if (res.success) {
|
|
|
this.announcement1 = res.result.anntMsgList;
|
|
|
+ this.roomAnnouncements = res.result.anntMsgList.filter(e => e.msgCategoryDetail === '1');
|
|
|
+ this.orderAnnouncements = res.result.anntMsgList.filter(e => e.msgCategoryDetail === '4');
|
|
|
this.msg1Count = res.result.anntMsgTotal;
|
|
|
this.msg1Title = "通知(" + res.result.anntMsgTotal + ")";
|
|
|
this.announcement2 = res.result.sysMsgList;
|